Skip to content

Commit

Permalink
added later initial t
Browse files Browse the repository at this point in the history
  • Loading branch information
mkatz authored and mkatz committed Mar 31, 2023
1 parent 9d0f517 commit 655b4f2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions bbhx/waveforms/phenomhm.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ class PhenomHMAmpPhase:
interpolation. (Default: ``1e-4``)
mf_max (double, optional): Dimensionless maximum frequency to use when performing
interpolation. (Default: ``6e-1``)
initial_t_val (double, optional): Time at the start of the
time window. This shifts the phase accordingly but does
not shift the tf correspondence so that the response
is still accurately reflected. (Default: ``0.0``)
Attributes:
allowable_modes (list): Allowed list of mode tuple pairs ``(l,m)`` for
Expand Down Expand Up @@ -100,7 +104,7 @@ class PhenomHMAmpPhase:
"""

def __init__(self, use_gpu=False, run_phenomd=False, mf_min=1e-4, mf_max=0.6):
def __init__(self, use_gpu=False, run_phenomd=False, mf_min=1e-4, mf_max=0.6, initial_t_val=0.0):

self.run_phenomd = run_phenomd
if use_gpu:
Expand Down Expand Up @@ -134,6 +138,8 @@ def __init__(self, use_gpu=False, run_phenomd=False, mf_min=1e-4, mf_max=0.6):
self.mf_min = mf_min
self.mf_max = mf_max

self.initial_t_val = initial_t_val

# prepare the PhenomD spline info for fRD and fDM
self._init_phenomd_fring_spline()

Expand Down Expand Up @@ -473,7 +479,7 @@ def __call__(
# do this inplace
temp = (
self.freqs.reshape(self.num_bin_all, -1)
* self.xp.asarray(t_ref[:, self.xp.newaxis])
* self.xp.asarray(t_ref[:, self.xp.newaxis] - self.initial_t_val)
* 2
* np.pi
)
Expand Down

0 comments on commit 655b4f2

Please sign in to comment.