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)
- pybamm.rmse(x, y)[source]#
Calculate the root-mean-square-error between two vectors x and y, ignoring NaNs
- class pybamm.Timer[source]#
Provides accurate timing.
Example
timer = pybamm.Timer() print(timer.time())