simul.pl_simul

Module Contents

class simul.pl_simul.PLSimul(lang=None, lang_err_msg="No programming language is set!", options="")

A generic simulator for models coded in a programming language.

__init__(lang=None, lang_err_msg="No programming language is set!", options="")

A constructor for a simulator of models coded in a programming language :param lang: the programming language name (e.g. python, Copasi) :param lang_err_msg: the message to print if lang is not found. :param options: the options to use when invoking the command (e.g. “” for python).

get_lang()

Return the programming language name :return: the name

get_lang_err_msg()

Return the error if the programming language is not found :return: the error message

get_lang_options()

Return the options for the programming language command :return: the options. Return None, if no options are used.

sim(model, inputdir, outputdir, cluster="local", local_cpus=1, runs=1, output_msg=False)
ps1(model, scanned_par, simulate_intervals, single_param_scan_intervals, inputdir, outputdir, cluster="local", local_cpus=1, runs=1, output_msg=False)
ps2(model, sim_length, inputdir, outputdir, cluster="local", local_cpus=1, runs=1, output_msg=False)
pe(model, inputdir, cluster, local_cpus, runs, outputdir, sim_data_dir, output_msg=False)
_run_par_comput(model, inputdir, outputdir, cluster="local", local_cpus=1, runs=1, output_msg=False)
replace_str_in_report(report)