Skip to content

Commit

Permalink
Merge branch 'main' of github.com:DKISTDC/dkist into profiling
Browse files Browse the repository at this point in the history
  • Loading branch information
SolarDrew committed Mar 21, 2024
2 parents d7f2887 + 24d71fd commit caecaa5
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 caecaa5

Please sign in to comment.