levisim.core¶
levisim.core¶
A module to handle the shared utilities used throughout levisim, including physical constants and units
Submodules
Named colour hex codes used in levisim's plots (matplotlib's tab10 palette, RGB primaries and secondaries, and a few others) |
|
Physical constants (from scipy.constants) and the properties of air used throughout levisim |
|
|
|
An instance of |
|
Matplotlib style (inspired by xmgrace) and figure-size helpers for thesis-ready plots |
|
A small helper (Test) that announces the start and end of a named test, with its duration and result, in the log, on the console and as an optional desktop notification |
|
Unit conversion factors: divide a value in SI units by a factor to express it in that unit, e.g. x / μm. |
|
General helpers: pickling, time arrays and slices, filtering, and generating and finding kicks |
|
Decorators for timing, profiling and showing a progress bar |