Skip to content

Commit

Permalink
changed_apply_fd_time_shift_to_apply_fseries_time_shift_in_FDomainDet…
Browse files Browse the repository at this point in the history
…FrameTwoPolNoRespGenerator (#4825)

* changed_apply_fd_time_shift_to_apply_fseries_time_shift_in_FDomainDetFrameTwoPolNoRespGenerator

* change in generate function

* deleted_unnecessary_files

* removing_whitespace
  • Loading branch information
labani-01 committed Sep 9, 2024
1 parent d520f7f commit 32030e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pycbc/waveform/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
from pycbc import transforms
from pycbc.types import TimeSeries
from pycbc.waveform import parameters
from pycbc.waveform.utils import apply_fd_time_shift, taper_timeseries, \
ceilpow2
from pycbc.waveform.utils import apply_fseries_time_shift, taper_timeseries, \
ceilpow2, apply_fd_time_shift
from pycbc.detector import Detector
from pycbc.pool import use_mpi
import lal as _lal
Expand Down Expand Up @@ -927,8 +927,8 @@ def generate(self, **kwargs):
# happens at the end of the time series (as they are for f-domain),
# so we add an additional shift to account for it
tshift = 1./df - abs(hp._epoch)
hp = apply_fd_time_shift(hp, tshift, copy=True)
hc = apply_fd_time_shift(hc, tshift, copy=True)
hp = apply_fseries_time_shift(hp, tshift, copy=True)
hc = apply_fseries_time_shift(hc, tshift, copy=True)

hp._epoch = hc._epoch = self._epoch
h = {}
Expand Down

0 comments on commit 32030e0

Please sign in to comment.