Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Simulator #sims calculation for NFsim #445

Merged
merged 2 commits into from May 10, 2019
Merged

Conversation

alubbock
Copy link
Member

Network free simulators use initials_dict instead of initials,
as they don't always have a full list of species available.
The Simulator class calculates the number of simulations by
checking the number of initials and parameter sets defined.
With one parameter set and multiple initials defined, only
one NFsim simulation was run (with the first set of initials).

This PR fixes this issue and adds multiple unit tests for NFsim.

Network free simulators use initials_dict instead of initials,
as they don't always have a full list of species available.
The Simulator class calculates the number of simulations by
checking the number of initials and parameter sets defined.
With one parameter set and multiple initials defined, only
one simulation was run (with the first set of initials).

This PR fixes this issue and adds multiple unit tests for NFsim.
@alubbock alubbock added the bug label Apr 26, 2019
@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 78.31% when pulling 42c7186 on alubbock:nfsim_fixes into 4c51327 on pysb:master.

@coveralls
Copy link

coveralls commented Apr 26, 2019

Coverage Status

Coverage increased (+0.9%) to 79.262% when pulling 4640070 on alubbock:nfsim_fixes into 26a51a0 on pysb:master.

@alubbock alubbock mentioned this pull request Apr 26, 2019
@alubbock alubbock merged commit ed304ee into pysb:master May 10, 2019
@alubbock alubbock deleted the nfsim_fixes branch May 10, 2019 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants