Skip to content
Snippets Groups Projects
Commit e9d72733 authored by Moritz Huebner's avatar Moritz Huebner
Browse files

Merge branch 'fix_roq_timeres' into 'master'

bilby/gw/likelihood.py: Fix a bug in the algorithm to determine time resolution of ROQ

See merge request !967
parents 906175d3 f62d8dfd
No related branches found
No related tags found
1 merge request!967bilby/gw/likelihood.py: Fix a bug in the algorithm to determine time resolution of ROQ
Pipeline #231476 passed
......@@ -1625,7 +1625,7 @@ class ROQGravitationalWaveTransient(GravitationalWaveTransient):
inj_snr_sq = 0
for ifo in self.interferometers:
inj_snr_sq += min(10, getattr(ifo.meta_data, 'optimal_SNR', 30))**2
inj_snr_sq += max(10, ifo.meta_data.get('optimal_SNR', 30))**2
psd = ifo.power_spectral_density_array[ifo.frequency_mask]
freq = ifo.frequency_array[ifo.frequency_mask]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment