odin-detector / odin-data

DAQ software libraries for capturing and storing data from parallel detector systems
https://odin-detector.github.io/odin-data/
Apache License 2.0
8 stars 11 forks source link

odin-data FileWriterPlugin does not accept 0 frames as a config setting. #306

Closed ajgdls closed 3 weeks ago

ajgdls commented 1 year ago

When submitting a configuration to the FileWriter plugin for odin-data FP applications, there is a check that the number of frames (FileWriterPlugin::CONFIG_FRAMES) requested is greater than 0.

However, event based detectors require that the number of frames is set to 0. If the number of frames is mistakenly set to something greater than 0 in this case, it can then no longer be set back to zero. This is also the case for frame detectors which are run in continuous mode.