Skip to content

Commit

Permalink
fix thinko in pycbc_injection_minifollowup
Browse files Browse the repository at this point in the history
  • Loading branch information
GarethCabournDavies committed May 3, 2024
1 parent d9b4920 commit 887722c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/minifollowups/pycbc_injection_minifollowup
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ for num_event in range(num_events):
return_data=False,
)

if len(idx) == 0:
if numpy.count_nonzero(idx) == 0:
# No events in the injection window for this detector
continue

Expand Down

0 comments on commit 887722c

Please sign in to comment.