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

Have default fallback for units and shape #55

Closed ksunden closed 3 years ago

ksunden commented 3 years ago

See also https://gitlab.com/yaq/yaqd-ni/-/issues/7

This is the quick and dirty fix for a problem encountered with the NI daq... A more proper fix would occur with that daemon, but this is both easier and ensures that other daemons which should define those but don't still will work as expected...

Another consideration would be to use https://docs.python.org/3/library/collections.html?highlight=defaultdict#collections.defaultdict though that does not serialize, of course, so likely not the right call...

untzag commented 3 years ago

@ksunden please update CHANGELOG.md, then self-merge :smile: