create_sensor#
- lsst.ts.ess.common.sensor.create_sensor(device_configuration, log)#
Create the sensor to connect to by using the specified configuration.
- Parameters:
device_configuration (
dict) – A dict representing the device to connect to. The format of the dict is described in the devices part oflsst.ts.ess.common.CONFIG_SCHEMA.log (
logging.Logger) – The logger to pass on to the sensor.
- Returns:
sensor – The sensor to connect to.
- Return type:
- Raises:
KeyError – In case the device configuration doesn’t have the sensor type key or the sensor type is not present in the sensor registry.