usnistgov / mass

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

Can't always read external trigger binary files #262

Closed joefowler closed 7 months ago

joefowler commented 7 months ago

Original report by Joseph Fowler (Bitbucket: joe_fowler, ).


Mass opens the external trigger file in "r" mode and then reads one line, leaving all data after the first \n to be read as binary via numpy. That fails if the first byte after the newline is not a printable character. I think the solution is just to open in "rb" mode.

joefowler commented 7 months ago

Original comment by Joseph Fowler (Bitbucket: joe_fowler, ).


Open ext trigger file in binary mode

Fixes #262.