Settings

myokit.ini

Myokit can be configured by editing the configuration file ~/.config/myokit/myokit.ini, where ~ denotes the user home directory. This file is generated automatically when Myokit is installed, and can be modified to indicate e.g. the version and location of the Sundials (CVODES) library or the location of OpenCL libraries and header files.

System information

The system() method can be used to check if the system meets the requirements to use Myokit and run simulations.

myokit.system(live_printing=False)

Returns a (long) string with system information.

If live_printing is set to True, no string is returned but the results are printed to screen as they come in.

The version() method provides information about the current Myokit version.

myokit.version(raw=False)

Returns the current Myokit version.

By default, a formatted multi-line string is returned. To get a simpler one-line string set the optional argument raw=True.

The same version info can be accessed using myokit.__version__. Unformatted info is available in myokit.__version_tuple__, which contains the major, minor, and revision number respectively, all as int objects. For development versions of Myokit, it may contain a 4th element "dev".

Myokit uses standard formats for date and time. The current date and time can be obtained using date() and time().

myokit.date()

Returns the current date and time, in the format used throughout Myokit.

myokit.time()

Returns the current time, in the format used throughout Myokit.