usnistgov / mass

Microcalorimeter pulse-analysis software
MIT License
6 stars 0 forks source link

MASS should not crash in `summarize_data` with a divide-by-zero error when `ds.subframe_divisions` = 0 #298

Open joefowler opened 2 months ago

joefowler commented 2 months ago

Reported to me by @adetoito. Apparently there are errors in MASS when they use the ZC111 µMUX systems at Dr-TES. The ds.summarize_data() is failing with a divide-by-zero error because ds.subframe_divisions=0.

Figure out where this is being set. Regardless, MASS should set this value to 1 if it would otherwise come out to be 0 and cause a channel to be declared bad.