From 199bda0215b9ff8c6580c840e4776d0e28f2fb7a Mon Sep 17 00:00:00 2001 From: ThibeauWouters Date: Wed, 3 Jan 2024 09:28:52 +0100 Subject: [PATCH] assured frequency grids have same length --- src/jimgw/likelihood.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/jimgw/likelihood.py b/src/jimgw/likelihood.py index f00cbabc..a47394cb 100644 --- a/src/jimgw/likelihood.py +++ b/src/jimgw/likelihood.py @@ -223,6 +223,10 @@ def __init__( self.freq_grid_low = self.freq_grid_low[mask_heterodyne_low] self.freq_grid_center = self.freq_grid_center[mask_heterodyne_center] + # Assure frequency grids have same length + if len(self.freq_grid_low) > len(self.freq_grid_center): + self.freq_grid_low = self.freq_grid_low[:len(self.freq_grid_center)] + h_sky_low = self.waveform(self.freq_grid_low, self.ref_params) h_sky_center = self.waveform(self.freq_grid_center, self.ref_params)