bluesky / yaqc-bluesky

A bluesky interface to the yaq instrument control framework.
https://yaq.fyi/
BSD 3-Clause "New" or "Revised" License
8 stars 4 forks source link

Channel shapes not provided in describe #56

Closed ksunden closed 3 years ago

ksunden commented 3 years ago
# fake spectrometer, c is yaqc.Client, d is yaqc_bluesky.Device
>>> c.id()
{'name': 'wa', 'kind': 'fake-spectrometer', 'make': None, 'model': None, 'serial': None}
>>> c.get_channel_shapes()
{'counts': [551]}
>>> d.describe()
OrderedDict([('wa_counts', OrderedDict([('source', 'yaq:wa'), ('yaq_port', 38989), ('yaq_host', '127.0.0.1'), ('shape', ()), ('dtype', 'number'), ('units', None)])), ('wa_wavelengths', OrderedDict([('source', 'yaq:wa'), ('yaq_port', 38989), ('yaq_host', '127.0.0.1'), ('shape', ()), ('dtype', 'number'), ('units', 'nm')]))])

Note that describes shape is always (), not (551) as expected for this channel (and mapping)