Skip to content

Commit

Permalink
...and comment out more Smoldyn tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
luciansmith committed Jul 9, 2024
1 parent 4eacf9b commit d3e4fc6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
21 changes: 11 additions & 10 deletions tests/sedml/test_sedml_model_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,17 @@ def test_get_parameters_variables_for_simulation(self):
symbol=Symbol.time.value,
)))

# Smoldyn
filename = os.path.join(self.FIXTURES_DIRNAME, 'smoldyn', 'bounce1.txt')
params, sims, vars, plots = model_utils.get_parameters_variables_outputs_for_simulation(
filename, ModelLanguage.Smoldyn, UniformTimeCourseSimulation, None)
self.assertTrue(params[0].is_equal(ModelAttributeChange(
id='difc_red',
name='Diffusion coefficient of species "red"',
target='difc red',
new_value='3',
)))
# "Smoldyn won't load in github; 'ModuleNotFoundError: No module named 'biosimulators_simularium''"
# # Smoldyn
# filename = os.path.join(self.FIXTURES_DIRNAME, 'smoldyn', 'bounce1.txt')
# params, sims, vars, plots = model_utils.get_parameters_variables_outputs_for_simulation(
# filename, ModelLanguage.Smoldyn, UniformTimeCourseSimulation, None)
# self.assertTrue(params[0].is_equal(ModelAttributeChange(
# id='difc_red',
# name='Diffusion coefficient of species "red"',
# target='difc red',
# new_value='3',
# )))

# XPP
filename = os.path.join(self.FIXTURES_DIRNAME, 'xpp', 'wilson-cowan.ode')
Expand Down
11 changes: 6 additions & 5 deletions tests/sedml/test_sedml_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -914,11 +914,12 @@ def test_validate_model_with_language(self):
self.assertIn("expected '>'", flatten_nested_list_of_strings(errors))
self.assertEqual(warnings, [])

# Smoldyn
filename = os.path.join(os.path.dirname(__file__), '..', 'fixtures', 'smoldyn', 'bounce1.txt')
errors, warnings, _ = validation.validate_model_with_language(filename, data_model.ModelLanguage.Smoldyn)
self.assertEqual(errors, [])
self.assertEqual(warnings, [])
# "Smoldyn won't load in github; 'ModuleNotFoundError: No module named 'biosimulators_simularium''"
# # Smoldyn
# filename = os.path.join(os.path.dirname(__file__), '..', 'fixtures', 'smoldyn', 'bounce1.txt')
# errors, warnings, _ = validation.validate_model_with_language(filename, data_model.ModelLanguage.Smoldyn)
# self.assertEqual(errors, [])
# self.assertEqual(warnings, [])

filename = os.path.join(os.path.dirname(__file__), '..', 'fixtures', 'smoldyn', 'invalid.txt')
errors, warnings, _ = validation.validate_model_with_language(filename, data_model.ModelLanguage.Smoldyn)
Expand Down

0 comments on commit d3e4fc6

Please sign in to comment.