Skip to content

Commit

Permalink
Add flux span test
Browse files Browse the repository at this point in the history
  • Loading branch information
bgyori committed Jul 13, 2023
1 parent beccf19 commit 8951193
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/test_flux_span.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import os
import json
from mira.sources.askenet.flux_span import reproduce_ode_semantics

HERE = os.path.dirname(os.path.abspath(__file__))
DATA = os.path.join(HERE, 'sir_flux_span.json')


def test_flux_span_ode_semantics():
with open(DATA) as fh:
flux_span = json.load(fh)
tm = reproduce_ode_semantics(flux_span)
assert len(tm.templates) == 10
assert len(tm.parameters) == 4
assert all(t.rate_law for t in tm.templates)

0 comments on commit 8951193

Please sign in to comment.