Skip to content

Commit

Permalink
Add regression test for fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bgyori committed Apr 24, 2024
1 parent 5bd9944 commit 72003d1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/test_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,3 +548,16 @@ def condition(template):

assert len(tm.templates) == 2
assert tm.templates[1].rate_law.args[0] == sympy.core.numbers.Zero()


def test_stratify_excluded_species():
from mira.examples.sir import sir_parameterized

tm = stratify(sir_parameterized,
key='vax',
strata=['vax', 'unvax'],
structure=[],
cartesian_control=True,
concepts_to_stratify=['susceptible_population'])

assert len(tm.templates) == 5, templates

0 comments on commit 72003d1

Please sign in to comment.