Skip to content

Commit 75f2222

Browse files
committed
Update test_simulate_experiment_to_events for antimony 3.1.0
In antimony>=3.1.0, initial values for substanceOnly species are interpreted as amounts. Before, they were interpreted as concentrations. Update `test_simulate_experiment_to_events` accordingly and require >=3.1.0 for tests.
1 parent f30fe66 commit 75f2222

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ maintainers = [
3636

3737
[project.optional-dependencies]
3838
tests = [
39-
"antimony>=2.14.0",
39+
"antimony>=3.1.0",
4040
"copasi-basico>=0.85",
4141
"pysb",
4242
"pytest",

tests/v2/test_converters.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,12 @@ def test_simulate_experiment_to_events():
9696
species s2c_comp1 in comp1 = 3
9797
species s2c_comp2 in comp2 = 4
9898
# amount-based species
99-
# (note: the initial values are concentrations nonetheless)
100-
substanceOnly species s3a_comp1 in comp1 = 5
101-
substanceOnly species s3a_comp2 in comp2 = 6
102-
substanceOnly species s4a_comp1 in comp1 = 7
103-
substanceOnly species s4a_comp2 in comp2 = 8
99+
# (note that in antimony<3.1.0 the initial values are concentrations
100+
# nonetheless)
101+
substanceOnly species s3a_comp1 in comp1 = 5 * comp1
102+
substanceOnly species s3a_comp2 in comp2 = 6 * comp2
103+
substanceOnly species s4a_comp1 in comp1 = 7 * comp1
104+
substanceOnly species s4a_comp2 in comp2 = 8 * comp2
104105
105106
# something dynamic
106107
some_species in comp1 = 0

0 commit comments

Comments
 (0)