yaq/traits/has-mapping


Mappings define additional context for the channel arrays defined by is-sensor.

requires

is-sensor

messages

Daemons with the has-mapping trait expose the following public messages:

get_channel_mappings ➜ {'type': 'map', 'values': {'type': 'array', 'items': 'string'}}
Defines which mapping keys apply to which channel keys. Each channel may have zero or many mappings. Mappings must broadcast into corresponding channels.

get_mapping_id ➜ int
Mapping ID. This integer increments every time the mapping is updated. Clients can safely check this id to verify that their cached mappings are correct, if desired.

get_mapping_units ➜ {'type': 'map', 'values': ['null', 'string']}
Must return units for every mapping. Units can be null.

get_mappings ➜ {'type': 'map', 'values': ['null', 'ndarray', 'double']}
Mappings themselves.

daemons

The following daemons implement the has-mapping trait:

andor-neo
andor-simcam
becker-hickl-spc130
fake-camera
fake-spectrometer
picotech-adc-triggered
rgb-qmini
seabreeze
wright-ingaas


built 2024-02-09 01:44:16                                      CC0: no copyright