-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix eqn_mode='python' with local fxns (#495)
* Fix eqn_mode='python' with local fxns Fixes an issue when a model with local functions is used with the ScipyOdeSimulator eqn_mode='python'. Lambdify would show a NameError and wouldn't pick up model parameters, due to those not being referenced when local functions are read back in from BNG during network generation. Includes a unit test as an example. * Fix repr of expressions containing one expr/param PySB currently prints expressions consisting of one parameter or expression like so: Expression('e', Parameter('p', 1.0)) Whereas, for consistency, export etc., it should be: Expression('e', p)
- Loading branch information
Showing
4 changed files
with
15 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters