diff --git a/bilby/gw/likelihood/relative.py b/bilby/gw/likelihood/relative.py index 4cab054f..06927b46 100644 --- a/bilby/gw/likelihood/relative.py +++ b/bilby/gw/likelihood/relative.py @@ -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]