pcdshub / pcdsdaq

Utilities for using the DAQ's pydaq, pycdb, and pyami libraries in conjunction with Bluesky
https://pcdshub.github.io/pcdsdaq
Other
0 stars 9 forks source link

Daq class interprets negative events as finite-length scans #82

Closed ZLLentz closed 3 years ago

ZLLentz commented 4 years ago

Expected Behavior

events=-1 should work as an infinite length scan and be identified as such in all cases OR events=-1 should be a rejected input

Current Behavior

events=-1 does work as an infinite length scan, but is identified as finite-length because bool(-1) is True

ZryletTC commented 4 years ago

I vote for the first option: events=-1 works as infinite length

klauer commented 4 years ago

So:

ZLLentz commented 4 years ago

:+1: I may work on this today, but it would wait till the PAMM to do a full test.