Skip to content

Commit

Permalink
deal with reference_date additions
Browse files Browse the repository at this point in the history
  • Loading branch information
wtbarnes committed Sep 24, 2024
1 parent 369dc98 commit 9161613
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions aiapy/calibrate/tests/test_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
def test_fix_observer_location(aia_171_map):
smap_fixed = fix_observer_location(aia_171_map)
# NOTE: AIAMap already fixes the .observer_coordinate property with HAE
assert smap_fixed.meta["hgln_obs"] == smap_fixed.observer_coordinate.lon.value
assert smap_fixed.meta["hglt_obs"] == smap_fixed.observer_coordinate.lat.value
assert smap_fixed.meta["dsun_obs"] == smap_fixed.observer_coordinate.radius.value
assert u.allclose(smap_fixed.meta["hgln_obs"], smap_fixed.observer_coordinate.lon.value, atol=None, rtol=1e-6)
assert u.allclose(smap_fixed.meta["hglt_obs"], smap_fixed.observer_coordinate.lat.value, atol=None, rtol=1e-6)
assert u.allclose(smap_fixed.meta["dsun_obs"], smap_fixed.observer_coordinate.radius.value, atol=None, rtol=1e-6)


@pytest.fixture()
Expand Down Expand Up @@ -86,6 +86,7 @@ def test_update_pointing_accuracy(aia_171_map, pointing_table, t_delt_factor, ex
assert aia_map_updated.reference_pixel.y == pointing_table[expected_entry]["A_171_Y0"]


@pytest.mark.skip() # Because sunpy pulls reference_date from T_OBS, this test will always fail. Maybe remove?
@pytest.mark.remote_data()
def test_update_pointing_submap_raises_exception(aia_171_map, pointing_table):
m = aia_171_map.submap(
Expand Down

0 comments on commit 9161613

Please sign in to comment.