This repository holds the files required to build a Docker image that runs a simulation of a CellML model using OpenCOR with Python.
You will need to get a copy of the OpenCOR binary from here. Save this in the directory where the 'Dockerfile' file exists.
docker build --rm -t hsorby/opencor-python .
docker run hsorby/opencor-python 1000.0
Where the number '1000.0' passed in as an argument which controls the stimulation period for the model in milliseconds. Any number suitable for a stimulation period can be used to generate different outputs.
The model outputs the membrane potential 'v' at each time step. The output is in json format.