Location: Incorporation of sarcolemmal calcium transporters into the Shorten et al. (2007) model of skeletal muscle @ afd4d5cb20ec / Fig03(L).py

Author:
David Nickerson <david.nickerson@gmail.com>
Date:
2020-08-25 16:56:45+12:00
Desc:
finish comment on running the fig 7 script in the console
Permanent Source URI:
https://models.cellml.org/workspace/5c6/rawfile/afd4d5cb20ecdcbc0b10198fe31795520488a34e/Fig03(L).py

# To reproduce the data needed for Figure 3 (left panel) 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 Fig03(L).py
#

import opencor as opencor

simulation = opencor.open_simulation("Fig03(L).sedml")

# reset everything in case we are running interactively and have existing results
simulation.reset(True)

# clear the results
simulation.clear_results()

# and run the steady-state simulation
simulation.run()

# remove the sarcolemmal calcium transporters and re-run
simulation.reset(True)
simulation.data().constants()["wal_environment/theta"] = 0.0
simulation.run()