QONMetricRegistry#
Module: iqm.station_control.client.qon
- class QONMetricRegistry#
Bases:
objectRegistry for QONMetric subclasses, mapping method names to parser classes.
Allows extensible registration of new metric parsing strategies for new methods.
Methods
Retrieve the parser class for a given method name.
Decorator for registering a QONMetric subclass as the parser for one or more method names.
Get a list of all registered method names.
- classmethod register(method_names)#
Decorator for registering a QONMetric subclass as the parser for one or more method names.
- classmethod get_parser(method_name)#
Retrieve the parser class for a given method name.
- Parameters:
method_name (str) – The method name to look up.
- Returns:
The QONMetric subclass registered for the method.
- Raises:
UnknownObservationError –
method_nameis not registered.- Return type:
Inheritance
