Skip to content

Commit

Permalink
add TDI version to sequence test
Browse files Browse the repository at this point in the history
  • Loading branch information
mj-will committed May 13, 2024
1 parent 3020268 commit c35104c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ def ref_frame(request):
return request.param


@pytest.fixture(params=["1.5", "2.0"])
def tdi(request):
return request.param


@pytest.fixture()
def params():
params = {}
Expand Down Expand Up @@ -41,7 +46,6 @@ def params():
return params


@pytest.mark.parametrize("tdi", ["1.5", "2.0"])
def test_get_fd_det_waveform(params, ref_frame, approximant, tdi):
params["tdi"] = tdi
params["ref_frame"] = ref_frame
Expand All @@ -51,8 +55,9 @@ def test_get_fd_det_waveform(params, ref_frame, approximant, tdi):
assert len(wf) == 3


def test_get_fd_det_waveform_sequence(params, approximant):
def test_get_fd_det_waveform_sequence(params, approximant, tdi):
params["ifos"] = "LISA_A"
params["tdi"] = tdi
params["approximant"] = approximant
freqs = np.array([1-4, 1e-3, 1e-2])
wf = get_fd_det_waveform_sequence(sample_points=freqs, **params)
Expand Down

0 comments on commit c35104c

Please sign in to comment.