Skip to content

Commit

Permalink
Add check to make sure heterodyned likelihood frequency grid is correct
Browse files Browse the repository at this point in the history
  • Loading branch information
kazewong committed Jan 3, 2024
1 parent de17d53 commit 002fec0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/jimgw/single_event/likelihood.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,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 002fec0

Please sign in to comment.