Skip to content

Commit

Permalink
BUG: change not equals to less than
Browse files Browse the repository at this point in the history
  • Loading branch information
mj-will committed Oct 11, 2024
1 parent 4634a0f commit 76e96b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bilby/gw/likelihood/relative.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def compute_summary_data(self):
# For the last bin, make sure to include
# the last point in the frequency array
# if it is not already included
if masked_bin_inds[-1] != (len(masked_frequency_array) - 1):
if masked_bin_inds[-1] < (len(masked_frequency_array) - 1):
masked_bin_inds[-1] += 1

masked_strain = interferometer.frequency_domain_strain[mask]
Expand Down

0 comments on commit 76e96b4

Please sign in to comment.