Skip to content

Commit

Permalink
test_dmx_exception
Browse files Browse the repository at this point in the history
  • Loading branch information
abhisrkckl committed Dec 19, 2024
1 parent 875edab commit 008d5c4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pyvela/tests/test_exceptions_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,11 @@ def test_open_prior_file():
assert all(
[pr1 == pr2 for pr1, pr2 in zip(spnta1.model.priors, spnta2.model.priors)]
)


def test_dmx_exception():
parfile, timfile = f"{datadir}/sim_dmx.par", f"{datadir}/sim_dmx.tim"
m, t = get_model_and_toas(parfile, timfile, planets=True)
m.DMXR2_0001.value = m.DMXR2_0002.value
with pytest.raises(ValueError):
SPNTA.from_pint(m, t)

0 comments on commit 008d5c4

Please sign in to comment.