- Author:
- David Nickerson <david.nickerson@gmail.com>
- Date:
- 2020-08-25 11:25:22+12:00
- Desc:
- adding python script to run simulations required for Fig 6.
- Permanent Source URI:
- https://models.cellml.org/workspace/5c6/rawfile/15e891636d833c916209a30d7e5246c4206d000b/Fig06.py
# To reproduce the data needed for Figure 6 in associated Physiome paper,
# execute this script in the Python console in OpenCOR. This can be done
# with the following commands at the prompt in the OpenCOR Python console:
#
# In [1]: cd path/to/folder_this_file_is_in
# In [2]: %run Fig06.py
#
import opencor as opencor
simulation = opencor.open_simulation("Fig06.sedml")
# reset everything in case we are running interactively and have existing results
simulation.reset(True)
# clear the results
simulation.clear_results()
# run once to get to a steady starting point
simulation.run()
simulation.clear_results()
# and run the steady-state simulation
simulation.run()