Skip to content

Commit

Permalink
numpy.where --> numpy.nonzero in pycbc_pygrb_plot_coh_ifosnr
Browse files Browse the repository at this point in the history
Co-authored-by: Tito Dal Canton <tito@dalcanton.it>
  • Loading branch information
pannarale and titodalcanton authored Nov 21, 2024
1 parent 92fcde4 commit 7d426fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/pygrb/pycbc_pygrb_plot_coh_ifosnr
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ for key in keys:
for ifo in ifos:
sorted_ifo_ids = numpy.array(
[
numpy.where(found_trigs[ifo+'/event_id'] == idx)[0][0]
numpy.nonzero(found_trigs[ifo + '/event_id'] == idx)[0][0]
for idx in found_trigs['network/event_id']
]
)
Expand Down

0 comments on commit 7d426fd

Please sign in to comment.