Skip to content

Commit

Permalink
Clean up merge mess
Browse files Browse the repository at this point in the history
  • Loading branch information
aarchiba committed Aug 23, 2021
1 parent b644dc5 commit 4552ef4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
1 change: 0 additions & 1 deletion tests/test_astrometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from pinttestdata import datadir

from pint.models import get_model
from pinttestdata import datadir


@pytest.fixture
Expand Down
17 changes: 7 additions & 10 deletions tests/test_timing_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@
import astropy.units as u
import numpy as np
import pytest
from numpy.testing import assert_allclose
from pinttestdata import datadir
from pint.simulation import make_fake_toas_uniform
from pint.toa import get_TOAs
from astropy.time import Time
from numpy.testing import assert_allclose
from pinttestdata import datadir

from pint.models import (
Expand Down Expand Up @@ -343,6 +340,12 @@ def test_jump_flags_to_params(timfile_jumps, timfile_nojumps, model_0437):
m.jump_flags_to_params(t)
assert "PhaseJump" in m.components
assert len(m.components["PhaseJump"].jumps) == 2
assert ("jump", "1") in [
(j.flag, j.flag_value) for j in m.components["PhaseJump"].jumps
]
assert ("jump", "2") in [
(j.flag, j.flag_value) for j in m.components["PhaseJump"].jumps
]


def test_supports_rm():
Expand All @@ -357,9 +360,3 @@ def test_assumes_dmepoch_equals_pepoch():
t = make_fake_toas_uniform(57000, 59000, 10, m_assume)

assert_allclose(m_assume.dm_value(t), m_given.dm_value(t))
assert ("jump", "1") in [
(j.flag, j.flag_value) for j in m.components["PhaseJump"].jumps
]
assert ("jump", "2") in [
(j.flag, j.flag_value) for j in m.components["PhaseJump"].jumps
]

0 comments on commit 4552ef4

Please sign in to comment.