rminstr.utilities.importer¶
Importer utilities for calorimeter-python.
Functions¶
|
Import an instrument model/functionality by string. |
Iterate over all the instrument implementations available in rminstr. |
Module Contents¶
- rminstr.utilities.importer.import_instrument(model_name: str, functionality: str) type¶
Import an instrument model/functionality by string.
- Parameters:
- model_namestr
Name of of instrument model to import.
- functionalitystr
Name of measurement functionality to import.
- Returns:
- type
Instrument class of given model/functionality.
- rminstr.utilities.importer.instrument_iterator()¶
Iterate over all the instrument implementations available in rminstr.
- Yields:
- namedtuple
Has fields model, impl, abc, statemodel. Field model is a str of the model name. Field impl is the class object of a measurment functionality implementation. Field abc is the measurement functionality abstraction class object. Fiel statemodel is the statemodel definition the functionality abstraction uses.