Bug in coherence test when specifying individual detector frequencies
I got errors like bilby_pipe.utils.BilbyPipeError: Input minimum frequency required for detector H1
when using the coherence test with minimum-frequency={H1: 40, L1: 60}
. I think these lines are the issue and that the logic isn't quite right. I fixed it by making the following change
for det in minimum_frequency_dict.keys():
if det not in self.detectors:
to
for det in self.detectors:
if det not in minimum_frequency_dict.keys():
This should test that for every detector being analysed, the minimum frequency is specified, rather than the current behaviour which checks that for every minimum frequency specified that detector is being analysed.