Skip to content

Commit

Permalink
Check Stokes headers of Stokes-cropped datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
SolarDrew committed Jan 6, 2025
1 parent 9ed86f0 commit ebfdbe5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions dkist/dataset/tests/test_crop_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ def test_crop_visp_by_only_stokes(croppable_visp_dataset):

assert cropped.wcs.pixel_n_dim == croppable_visp_dataset.wcs.pixel_n_dim - 1
assert cropped.data.shape == croppable_visp_dataset.data.shape[1:]
# This won't be true yet because of bugs in the Stokes WCS
# assert (cropped.headers['DINDEX4'] == 1).all()
assert (cropped.headers['DINDEX4'] == 1).all()


def test_crop_visp_by_time(croppable_visp_dataset):
Expand Down Expand Up @@ -107,8 +106,7 @@ def test_crop_cryo_by_only_stokes(croppable_cryo_dataset):

assert cropped.wcs.pixel_n_dim == croppable_cryo_dataset.wcs.pixel_n_dim - 1
assert cropped.data.shape == croppable_cryo_dataset.data.shape[1:]
# This won't be true yet because of bugs in the Stokes WCS
# assert (cropped.headers['DINDEX4'] == 1).all()
assert (cropped.headers['DINDEX4'] == 1).all()


def test_crop_cryo_by_time(croppable_cryo_dataset):
Expand Down

0 comments on commit ebfdbe5

Please sign in to comment.