Skip to content

Commit

Permalink
fix threshold_off setting threshold_on between 3 and 5 sigma
Browse files Browse the repository at this point in the history
removes erroneous self._resolution (which is also undefined)
  • Loading branch information
slwatkins authored Nov 1, 2024
1 parent 7060568 commit ec828c8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/splendaq/daq/_offline_trigger.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,8 +475,9 @@ def acquire_pulses(self, template, psd, threshold_on, tchan, threshold_off=None,
if abs(self._nthreshold_on) > 5:
self._nthreshold_off = threshold_on - sign * 2
elif abs(self._nthreshold_on) > 3:
self._nthreshold_off = 3 * sign * self._resolution
else: self._nthreshold_off = threshold_on
self._nthreshold_off = 3 * sign
else:
self._nthreshold_off = threshold_on
else:
self._nthreshold_off = threshold_off

Expand Down

0 comments on commit ec828c8

Please sign in to comment.