tellurium.tests.sedml package

Submodules

tellurium.tests.sedml.test_archive module

Test class to check issues with single archives.

tellurium.tests.sedml.test_archive.test_single_omex(tmpdir)[source]

tellurium.tests.sedml.test_data module

Testing of SED-ML data support, i.e., DataDescription.

tellurium.tests.sedml.test_data.parseDataDescriptions(sedml_path)[source]

Test helper functions.

Tries to parse all DataDescriptions in the SED-ML file.

tellurium.tests.sedml.test_data.setup_module(module)[source]

setup any state specific to the execution of the given module.

tellurium.tests.sedml.test_data.teardown_module(module)[source]

teardown any state that was previously setup with a setup_module method.

tellurium.tests.sedml.test_data.test_load_csv()[source]
tellurium.tests.sedml.test_data.test_load_csv_parameters()[source]
tellurium.tests.sedml.test_data.test_load_numl()[source]
tellurium.tests.sedml.test_data.test_load_numl_1D()[source]
tellurium.tests.sedml.test_data.test_load_numl_2D()[source]
tellurium.tests.sedml.test_data.test_load_numl_2DRC()[source]
tellurium.tests.sedml.test_data.test_load_tsv()[source]
tellurium.tests.sedml.test_data.test_omex_csv_parameters(tmpdir)[source]
tellurium.tests.sedml.test_data.test_omex_jws_adlung2017_fig2gl(tmpdir)[source]
tellurium.tests.sedml.test_data.test_omex_plot_csv(tmpdir)[source]
tellurium.tests.sedml.test_data.test_omex_plot_csv_with_model(tmpdir)[source]
tellurium.tests.sedml.test_data.test_omex_plot_numl(tmpdir)[source]
tellurium.tests.sedml.test_data.test_omex_plot_numl_with_model(tmpdir)[source]
tellurium.tests.sedml.test_data.test_parse_csv()[source]
tellurium.tests.sedml.test_data.test_parse_csv_parameters()[source]
tellurium.tests.sedml.test_data.test_parse_numl()[source]
tellurium.tests.sedml.test_data.test_parse_numl_1D()[source]
tellurium.tests.sedml.test_data.test_parse_numl_2D()[source]
tellurium.tests.sedml.test_data.test_parse_numl_2DRC()[source]
tellurium.tests.sedml.test_data.test_parse_tsv()[source]

tellurium.tests.sedml.test_kisao module

Testing the support of KISAO terms for SED-ML simulations.

test_sedml_phrasedml.py : phrasedml based tests. test_sedml_kisao.py : SED-ML kisao support test_sedml_omex.py : SED-ML tests based on Combine Archives test_sedml_sedml.py : sed-ml tests
class tellurium.tests.sedml.test_kisao.KisaoSedmlTestCase(methodName='runTest')[source]

Bases: unittest.case.TestCase

checkKisaoAlgorithmParameter(inline_omex, kisao, name, value)[source]

Helper function for checking kisao parameter.

checkKisaoIntegrator(inline_omex, kisao, name)[source]

Helper function for checking kisao integrator.

setUp()[source]

Hook method for setting up the test fixture before exercising it.

tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

test_kisao_absolute_tolerance_1()[source]
test_kisao_absolute_tolerance_2()[source]
test_kisao_adams()[source]
test_kisao_bdf()[source]
test_kisao_cvode_1()[source]
test_kisao_cvode_2()[source]
test_kisao_cvode_3()[source]

Default of uniform is cvode.

test_kisao_cvode_4()[source]

Default of onestep is cvode.

test_kisao_gillespie_1()[source]
test_kisao_gillespie_2()[source]
test_kisao_gillespie_3()[source]

Default of uniform_stochastic is gillespie.

test_kisao_initial_time_step_1()[source]
test_kisao_initial_time_step_2()[source]
test_kisao_maximum_adams_order_1()[source]
test_kisao_maximum_adams_order_2()[source]
test_kisao_maximum_bdf_order_1()[source]
test_kisao_maximum_bdf_order_2()[source]
test_kisao_maximum_iterations_1()[source]
test_kisao_maximum_iterations_2()[source]
test_kisao_maximum_num_steps_1()[source]
test_kisao_maximum_num_steps_2()[source]
test_kisao_maximum_time_step_1()[source]
test_kisao_maximum_time_step_2()[source]
test_kisao_minimum_damping_1()[source]
test_kisao_minimum_damping_2()[source]
test_kisao_minimum_time_step_1()[source]
test_kisao_minimum_time_step_2()[source]
test_kisao_relative_tolerance_1()[source]
test_kisao_relative_tolerance_2()[source]
test_kisao_rk45_1()[source]
test_kisao_rk45_2()[source]
test_kisao_rk4_1()[source]
test_kisao_rk4_2()[source]
test_kisao_seed_1()[source]
test_kisao_seed_2()[source]
test_kisao_variable_step_size_1()[source]
test_kisao_variable_step_size_2()[source]

tellurium.tests.sedml.test_omex module

Test that Combine archives can be executed successfully.

class tellurium.tests.sedml.test_omex.OmexTestCase(methodName='runTest')[source]

Bases: unittest.case.TestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

test_000_CombineArchiveShowCase_o()

Test failes if Exception in execution of f.

test_002_pankavich2016_fig1_s()

Test failes if Exception in execution of f.

test_004_fraser2002_fig1a_1b_2a_2b_s()

Test failes if Exception in execution of f.

test_008_kolodkin2010_figure2b_s()

Test failes if Exception in execution of f.

test_010_martins2016_fig6_s()

Test failes if Exception in execution of f.

test_013_essunger1994_fig5_s()

Test failes if Exception in execution of f.

test_022_fan2014_fig1a_s()

Test failes if Exception in execution of f.

test_023_essunger1994_fig8_s()

Test failes if Exception in execution of f.

test_025_martins2016_figev3a_s()

Test failes if Exception in execution of f.

test_033_miao2008_fig1_s()

Test failes if Exception in execution of f.

test_034_iwami2012_fig3_s()

Test failes if Exception in execution of f.

test_040_ho1995_fig3_s()

Test failes if Exception in execution of f.

test_043_jones2002_fig2_s()

Test failes if Exception in execution of f.

test_046_fisher2006_fig3a_s()

Test failes if Exception in execution of f.

test_047_beuke2017_fig6_s()

Test failes if Exception in execution of f.

test_055_bajaria2002_fig2_s()

Test failes if Exception in execution of f.

test_060_roy2010_fig3_s()

Test failes if Exception in execution of f.

test_069_hernandezvargas2013_s()

Test failes if Exception in execution of f.

test_074_ouattara2008_fig3_s()

Test failes if Exception in execution of f.

test_075_chan2004_fig3_s()

Test failes if Exception in execution of f.

test_080_essunger1994_fig4_s()

Test failes if Exception in execution of f.

test_083_pankavich2016_fig2_s()

Test failes if Exception in execution of f.

test_087_L1V3_ikappab_o()

Test failes if Exception in execution of f.

test_092_L1V3_repressilator_o()

Test failes if Exception in execution of f.

test_098_BIOMD0000000008_sedml_o()

Test failes if Exception in execution of f.

test_099_BIOMD0000000196_sedml_o()

Test failes if Exception in execution of f.

test_100_BIOMD0000000110_fig6B_sedml_o()

Test failes if Exception in execution of f.

test_101_BIOMD0000000087_fig5_sedml_o()

Test failes if Exception in execution of f.

test_102_BIOMD0000000207_ab_sedml_o()

Test failes if Exception in execution of f.

test_103_BIOMD0000000111_fi4_sedml_o()

Test failes if Exception in execution of f.

test_104_BIOMD0000000150_fig1b_sedml_o()

Test failes if Exception in execution of f.

test_105_BIOMD0000000007_fig_2a_b_sedml_o()

Test failes if Exception in execution of f.

test_106_BIOMD0000000107_fig13_sedml_o()

Test failes if Exception in execution of f.

test_107_BIOMD0000000107_fig9_sedml_o()

Test failes if Exception in execution of f.

test_108_BIOMD0000000003_fig4_sedml_o()

Test failes if Exception in execution of f.

test_109_BIOMD0000000007_fig_2a_sedml_o()

Test failes if Exception in execution of f.

test_110_BIOMD0000000004_sedml_o()

Test failes if Exception in execution of f.

test_111_BIOMD0000000186_fig3a_sedml_o()

Test failes if Exception in execution of f.

test_112_BIOMD0000000195_fig8a_sedml_o()

Test failes if Exception in execution of f.

test_113_BIOMD0000000228_fig4_sedml_o()

Test failes if Exception in execution of f.

test_114_BIOMD0000000265_fig2_sedml_o()

Test failes if Exception in execution of f.

test_115_MODEL3897771820_fig8_sedml_o()

Test failes if Exception in execution of f.

test_116_BIOMD0000000194_fig2b_sedml_o()

Test failes if Exception in execution of f.

test_117_BIOMD0000000056_fig2_sedml_o()

Test failes if Exception in execution of f.

test_118_BIOMD0000000005_sedml_o()

Test failes if Exception in execution of f.

test_119_BIOMD0000000193_fig2b_sedml_o()

Test failes if Exception in execution of f.

test_120_BIOMD0000000168_fig3a_sedml_o()

Test failes if Exception in execution of f.

test_121_BIOMD0000000109_sf2a_sedml_o()

Test failes if Exception in execution of f.

test_122_BIOMD0000000003_sedml_o()

Test failes if Exception in execution of f.

test_123_BIOMD0000000242_fig2_sedml_o()

Test failes if Exception in execution of f.

test_124_BIOMD0000000216_fig2c_sedml_o()

Test failes if Exception in execution of f.

test_125_BIOMD0000000208_fig3a_sedml_o()

Test failes if Exception in execution of f.

test_126_BIOMD0000000207_c_sedml_o()

Test failes if Exception in execution of f.

test_127_BIOMD0000000144_fig1b_sedml_o()

Test failes if Exception in execution of f.

test_128_BIOMD0000000370_fig2_sedml_o()

Test failes if Exception in execution of f.

test_129_BIOMD0000000187_fig3b_sedml_o()

Test failes if Exception in execution of f.

test_130_BIOMD0000000169_fig5c_sedml_o()

Test failes if Exception in execution of f.

test_131_BIOMD0000000406_fig7c_sedml_o()

Test failes if Exception in execution of f.

test_132_BIOMD0000000181_fig12_sedml_o()

Test failes if Exception in execution of f.

test_133_BIOMD0000000297_fig3_sedml_o()

Test failes if Exception in execution of f.

test_134_BIOMD0000000409_fig7b_sedml_o()

Test failes if Exception in execution of f.

test_135_case_07_o()

Test failes if Exception in execution of f.

test_136_repressilator_o()

Test failes if Exception in execution of f.

test_137_oneStep_o()

Test failes if Exception in execution of f.

test_138_miase_s()

Test failes if Exception in execution of f.

test_140_BorisEJBsteady_s()

Test failes if Exception in execution of f.

test_141_case_08_o()

Test failes if Exception in execution of f.

test_142_BM12_s()

Test failes if Exception in execution of f.

test_143_BIOMD0000000012_s()

Test failes if Exception in execution of f.

test_144_BIOMD0000000003_s()

Test failes if Exception in execution of f.

test_145_JanaWolf_s()

Test failes if Exception in execution of f.

test_146_case_02_o()

Test failes if Exception in execution of f.

test_147_case_03_o()

Test failes if Exception in execution of f.

test_148_BorisEJB_s()

Test failes if Exception in execution of f.

test_149_case_09_o()

Test failes if Exception in execution of f.

test_150_parameterScan1D_o()

Test failes if Exception in execution of f.

test_151_case_06_o()

Test failes if Exception in execution of f.

test_152_case_01_o()

Test failes if Exception in execution of f.

test_153_case_11_o()

Test failes if Exception in execution of f.

test_154_EllowitzRepressilator_s()

Test failes if Exception in execution of f.

test_155_brusselator_s()

Test failes if Exception in execution of f.

test_156_case_10_o()

Test failes if Exception in execution of f.

test_157_specificationL1V2_s()

Test failes if Exception in execution of f.

test_158_BIOMD0000000139_s()

Test failes if Exception in execution of f.

test_159_case_05_o()

Test failes if Exception in execution of f.

test_160_repeatedStochastic_o()

Test failes if Exception in execution of f.

test_161_parameterScan2D_o()

Test failes if Exception in execution of f.

test_163_BIOMD0000000140_s()

Test failes if Exception in execution of f.

test_164_ClockSedML_s()

Test failes if Exception in execution of f.

test_165_case_12_o()

Test failes if Exception in execution of f.

test_166_lorenz_o()

Test failes if Exception in execution of f.

test_167_BorisEJBos_s()

Test failes if Exception in execution of f.

test_168_case_04_o()

Test failes if Exception in execution of f.

test_169_sedmlCurienJWS_s()

Test failes if Exception in execution of f.

test_170_sedMLBIOM21_s()

Test failes if Exception in execution of f.

tellurium.tests.sedml.test_omex.f_omex_filter(filename)[source]
tellurium.tests.sedml.test_omex.ftest_generator(filePath)[source]
tellurium.tests.sedml.test_omex.test(self=None)

Test failes if Exception in execution of f.

tellurium.tests.sedml.test_phrasedml module

Testing phrasedml.

test_sedml_phrasedml.py : phrasedml based tests. test_sedml_kisao.py : SED-ML kisao support test_sedml_omex.py : SED-ML tests based on Combine Archives test_sedml_sedml.py : sed-ml tests
class tellurium.tests.sedml.test_phrasedml.PhrasedmlTestCase(methodName='runTest')[source]

Bases: unittest.case.TestCase

Testing execution and archives based on phrasedml input.

run_example(a_str, p_str)[source]
setUp()[source]

Hook method for setting up the test fixture before exercising it.

tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

test_1Model1PhrasedML()[source]

Minimal example which should work.

test_1Model2PhrasedML()[source]

Test multiple models and multiple phrasedml files.

test_2Model1PhrasedML()[source]

Test multiple models and multiple phrasedml files.

test_2Model2PhrasedML()[source]

Test multiple models and multiple phrasedml files.

test_case_01()[source]
test_case_02()[source]
test_case_03()[source]
test_case_04()[source]
test_case_05()[source]
test_case_06()[source]
test_case_07()[source]
test_case_08()[source]
test_case_09()[source]
test_case_10()[source]
test_case_11()[source]
test_case_12()[source]
test_execute()[source]

Test execute.

test_exportAsCombine()[source]

Test exportAsCombine.

test_lorenz()[source]
test_oneStep()[source]
test_parameterScan1D()[source]
test_parameterScan2D()[source]
test_repeatedStochastic()[source]
test_repressilator()[source]
test_simpletimecourse()[source]

tellurium.tests.sedml.test_sedml module

Test all the SED-ML files if code can be generated,

test_sedml_phrasedml.py : phrasedml based tests. test_sedml_kisao.py : SED-ML kisao support test_sedml_omex.py : SED-ML tests based on Combine Archives test_sedml_sedml.py : sed-ml tests
class tellurium.tests.sedml.test_sedml.SEDMLTestCase(methodName='runTest')[source]

Bases: unittest.case.TestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

single_check(f_sedml)[source]

Test if python code can be generated from the SED-ML file.

Parameters:f_sedml
Returns:
Return type:
tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

test_app2sim()[source]

Test app2sim SED-ML example.

test_asedml3repeat()[source]

Test asedml3repeat SED-ML example.

test_asedmlComplex()[source]

Test asedmlComplex SED-ML example.

test_constant_maybe()[source]

Test constant_maybe SED-ML example.

test_via_sedml_string()[source]

Test SED-ML from string.

tellurium.tests.sedml.test_tesedml module

class tellurium.tests.sedml.test_tesedml.OmexSedmlTestCase(methodName='runTest')[source]

Bases: unittest.case.TestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

test_omex_combineArchiveToPython()[source]
test_omex_executeCombineArchive()[source]

Module contents