quantity_tools

File Purpose: misc. tools related to QuantityLoader

Classes

CallDepthMixin()

Mixin class for tracking call depth.

DecoratingCalcs([known_calcs])

Decorating functions to put loadable quantities into a dict (self.known_calcs).

DecoratingPatterns([known_calcs])

DecoratingVars but for patterns; name should be an re.Pattern (or str; and will apply re.compile()),

DecoratingSetters([known_setters])

Decorating functions to put them into a dict (self.known_setters).

DecoratingVars([known_calcs])

Decorating functions to put loadable vars into a dict (self.known_calcs).

LoadablePattern(fname, *[, deps, attr_deps, ...])

quantity which can be loaded from a QuantityLoader.

LoadableQuantity(fname, *[, deps, ...])

quantity which can be loaded from a QuantityLoader.

LoadableVar(fname, *[, deps, attr_deps, ...])

quantity which can be loaded from a QuantityLoader.

MatchedPattern(var[, loadable, _match, ...])

LoadableVar matched to a var, which can be loaded from a QuantityLoader.

MatchedQuantity(var[, loadable, _match, ...])

LoadableQuantity matched to a var, which can be loaded from a QuantityLoader.

MatchedVar(var[, loadable, _match, fname, ...])

LoadableVar matched to a var, which can be loaded from a QuantityLoader.

Pattern(pattern)

stores re.Pattern and represents it nicely.