Skip to content

Commit

Permalink
Test for the simulate util function.
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeaw committed Jan 30, 2025
1 parent db8fac5 commit ed54ccc
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/test_util.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import numpy as np
from pysb.pkpd.pk_models import twocomp
from pysb.pkpd import simulate


def test_simulate():
tspan = np.arange(10)
sim_traj = simulate(twocomp, tspan)
assert len(sim_traj) == 10
assert len(sim_traj[0]) == 2


if __name__ == "__main__":
test_simulate()

0 comments on commit ed54ccc

Please sign in to comment.