Utility functions#
- class pybamm.Timer[source]#
Provides accurate timing.
Example
timer = pybamm.Timer() print(timer.time())
- class pybamm.FuzzyDict[source]#
-
- search(keys: str | list[str], print_values: bool = False, min_similarity: float = 0.4)[source]#
Search dictionary for keys containing all terms in ‘keys’. If print_values is True, both the keys and values will be printed. Otherwise, just the keys will be printed. If no results are found, the best matches are printed.
- pybamm.has_jax()[source]#
Check if jax and jaxlib are installed with the correct versions
- Returns:
True if jax and jaxlib are installed with the correct versions, False if otherwise
- Return type: