Skip to content

Commit

Permalink
bump gwcs version check in test (#346)
Browse files Browse the repository at this point in the history
* bump gwcs version chekc in test

* Skip dev gwcs test

* Update test_dataset.py

---------

Co-authored-by: Stuart Mumford <[email protected]>
  • Loading branch information
braingram and Cadair authored Mar 19, 2024
1 parent 38b6829 commit 24d71fd
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 24d71fd

Please sign in to comment.