usnistgov / mass

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

Property `p_peak_time` bug when peak is during pre trigger period #259

Closed joefowler closed 10 months ago

joefowler commented 10 months ago

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


The definition of the property p_peak_time subtracts two unsigned integers, which gives incorrect results if the peak index happens to be during the pre trigger period.

joefowler commented 10 months ago

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


Fix the bug in p_peak_time property

Fixes #259