Skip to content

Commit

Permalink
fix signal length issue
Browse files Browse the repository at this point in the history
  • Loading branch information
MarinerQ committed May 25, 2024
1 parent 212560e commit 50423b2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion sealgw/simulation/sealinterferometers.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,13 @@ def get_detector_response(
dec_array = np.zeros(L)+ parameters['dec']
psi_array = np.zeros(L)+ parameters['psi']
fp, fc, dt = self.antenna_func.resp_and_dt(ra_array, dec_array, times, psi_array)
antenna_response_array_dict = {'plus':fp, 'cross':fc}
antenna_response_array_dict = dict()
for mode in waveform_polarizations.keys():
antenna_response_array_dict[mode] = np.zeros(
len(waveform_polarizations[mode])
)
antenna_response_array_dict['plus'][masked_length:] = fp
antenna_response_array_dict['cross'][masked_length:] = fc
time_shift = dt
else: # use segment calculation. assume earth is fixed within each segment
print('use segment calculation. assume earth is fixed within each segment')
Expand Down

0 comments on commit 50423b2

Please sign in to comment.