Skip to content

Commit

Permalink
Do not need to return anything
Browse files Browse the repository at this point in the history
  • Loading branch information
dachengx committed Dec 24, 2024
1 parent d03dc9f commit 6cc4fcb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions strax/processing/peak_building.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,9 +490,10 @@ def find_hit_integration_bounds(
boundaries. E.g. to negative samples for left side.
"""
result = np.zeros((len(hits), 2), dtype=np.int64)
if not len(hits):
return result
return

result = np.zeros((len(hits), 2), dtype=np.int64)

# By default, use save_outside_hits to determine bounds
result[:, 0] = hits["time"] - save_outside_hits[0]
Expand Down

0 comments on commit 6cc4fcb

Please sign in to comment.