levisim.core

levisim.core

A module to handle the shared utilities used throughout levisim, including physical constants and units

Submodules

colours

Named colour hex codes used in levisim's plots (matplotlib's tab10 palette, RGB primaries and secondaries, and a few others)

constants

Physical constants (from scipy.constants) and the properties of air used throughout levisim

elk

levisim-logs: Elasticsearch and Kibana for levisim's logs, without Docker

logger

An instance of Logger from loguru; see that package's documentation.

plotting

Matplotlib style (inspired by xmgrace) and figure-size helpers for thesis-ready plots

testing

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

units

Unit conversion factors: divide a value in SI units by a factor to express it in that unit, e.g. x / μm.

utils

General helpers: pickling, time arrays and slices, filtering, and generating and finding kicks

wrappers

Decorators for timing, profiling and showing a progress bar