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 (gwastro#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 authored and prayush committed Nov 21, 2024
1 parent 1fddb62 commit 76b69df
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 76b69df

Please sign in to comment.