Skip to content

Commit

Permalink
assured frequency grids have same length
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibeauWouters committed Jan 3, 2024
1 parent 0a45b88 commit 199bda0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/jimgw/likelihood.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 199bda0

Please sign in to comment.