Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
dachengx committed Dec 16, 2024
1 parent d3d47da commit 8e31de9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions straxen/plugins/peaks/peak_nearest_triggering.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import straxen

from .peak_ambience import _quick_assign
from ..events import Events
from ..events import Events, is_triggering

export, __all__ = strax.exporter()

Expand Down Expand Up @@ -75,7 +75,13 @@ def compute_triggering(self, peaks, current_peak):
if self.only_trigger_min_area:
_is_triggering = _peaks["area"] > self.trigger_min_area
else:
_is_triggering = self._is_triggering(_peaks)
_is_triggering = is_triggering(
_peaks,
self.trigger_min_area,
self.trigger_max_competing,
self.exclude_s1_as_triggering_peaks,
self.event_s1_min_coincidence,
)
_peaks = _peaks[_is_triggering]
# init result
result = np.zeros(len(current_peak), self.dtype)
Expand Down

0 comments on commit 8e31de9

Please sign in to comment.