register_sensor#
- lsst.ts.ess.common.sensor.register_sensor(sensor_type, sensor_class)#
Register a BaseSensor subclass against a SensorType.
- Parameters:
sensor_type (
SensorType) – The SensorType to register against.sensor_class (
Type) – The BaseSensor subclass to register.
- Raises:
TypeError – In case a class, that is not a subclass of BaseSensor, is registered.
ValueError – In case a SensorType already was registered.
- Return type: