Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Jan 6, 2024
1 parent 26176aa commit 9e9d300
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions python/tests/test_swig_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,7 @@ def test_copy_constructors(pysb_example_presimulation_module):
model_instance_settings0 = {
# setting name: [default value, custom value]
"AddSigmaResiduals": [False, True],
"AlwaysCheckFinite": [
False,
True,
],
"AlwaysCheckFinite": [False, True],
# Skipped due to model dependency in `'InitialStates'`.
"FixedParameters": None,
"InitialStates": [
Expand Down Expand Up @@ -132,6 +129,13 @@ def test_model_instance_settings(pysb_example_presimulation_module):
i_getter = 0
i_setter = 1

# the default setting for AlwaysCheckFinite depends on whether the amici
# extension has been built in debug mode
model_instance_settings0["AlwaysCheckFinite"] = [
model0.getAlwaysCheckFinite(),
not model0.getAlwaysCheckFinite(),
]

# All settings are tested.
assert set(model_instance_settings0) == set(
amici.swig_wrappers.model_instance_settings
Expand Down

0 comments on commit 9e9d300

Please sign in to comment.