Utility functions#
- pybamm.get_git_commit_info()[source]#
Get the git commit info for the current PyBaMM version, e.g. v22.8-39-gb25ce8c41 (version 22.8, commit b25ce8c41)
- class pybamm.Timer[source]#
Provides accurate timing.
Example
timer = pybamm.Timer() print(timer.time())
- pybamm.install_jax(arguments=None)[source]#
Install compatible versions of jax, jaxlib.
Command Line Interface:
$ pybamm_install_jax
optional arguments:-h, –help show help message-f, –force force install compatible versions of jax and jaxlib