Skip to content

Commit

Permalink
Merge branch 'main' into sunpy_package_template
Browse files Browse the repository at this point in the history
  • Loading branch information
Cadair authored Mar 19, 2024
2 parents 79a0e5c + 24d71fd commit 0176c1c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions dkist/io/asdf/tests/test_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

import numpy as np
import pytest
from packaging.version import Version

import asdf
import astropy.table
Expand Down Expand Up @@ -189,7 +188,8 @@ def test_read_wcs_with_backwards_affine():
# Assert that our stokes fixing code has worked.
assert world_outputs[-1] == 1

if Version(gwcs.__version__) > Version("0.21.dev0"):
pixel_outputs = wcs.world_to_pixel_values(*world_outputs)

assert np.allclose(pixel_inputs, pixel_outputs, atol=1e-6)
# TODO: Requires https://github.com/spacetelescope/gwcs/pull/457
# if Version(gwcs.__version__) > Version("0.22.dev0"):
# pixel_outputs = wcs.world_to_pixel_values(*world_outputs)
#
# assert np.allclose(pixel_inputs, pixel_outputs, atol=1e-6)

0 comments on commit 0176c1c

Please sign in to comment.