Skip to content

Commit

Permalink
Re-generated reference files for tests due to a slight change in Sunp…
Browse files Browse the repository at this point in the history
…y 6.0.1 related to dates
  • Loading branch information
astrofrog committed Oct 3, 2024
1 parent 93e7fcb commit d8d7f18
Show file tree
Hide file tree
Showing 14 changed files with 12 additions and 14 deletions.
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions reproject/adaptive/tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -764,15 +764,15 @@ def test_invald_bad_value_mode():


def prepare_test_data(file_format):
pytest.importorskip("sunpy", minversion="2.1.0")
pytest.importorskip("sunpy", minversion="6.0.1")
from sunpy.coordinates.ephemeris import get_body_heliographic_stonyhurst
from sunpy.map import Map

if file_format == "fits":
map_aia = Map(os.path.join(DATA, "aia_171_level1.fits"))
data = map_aia.data
wcs = map_aia.wcs
date = map_aia.date
date = map_aia.reference_date
target_wcs = wcs.deepcopy()
elif file_format == "asdf":
pytest.importorskip("astropy", minversion="4.0")
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified reproject/interpolation/tests/reference/test_small_cutout.fits
Binary file not shown.
5 changes: 2 additions & 3 deletions reproject/interpolation/tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,8 +528,7 @@ def test_reproject_roundtrip(file_format):
# pixels based on round-tripping works correctly. Using asdf is not just
# about testing a different format but making sure that GWCS works.

# The observer handling changed in 2.1.
pytest.importorskip("sunpy", minversion="2.1.0")
pytest.importorskip("sunpy", minversion="6.0.1")
from sunpy.coordinates.ephemeris import get_body_heliographic_stonyhurst
from sunpy.map import Map

Expand Down Expand Up @@ -583,7 +582,7 @@ def test_reproject_roundtrip_kwarg():
# is a regression test for a bug that caused the keyword argument to be
# ignored when in parallel/blocked mode.

pytest.importorskip("sunpy", minversion="2.1.0")
pytest.importorskip("sunpy", minversion="6.0.1")
from sunpy.coordinates.ephemeris import get_body_heliographic_stonyhurst
from sunpy.map import Map

Expand Down
Binary file modified reproject/mosaicking/tests/reference/test_coadd_solar_map.fits
Binary file not shown.
4 changes: 1 addition & 3 deletions reproject/mosaicking/tests/test_coadd.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,9 +371,7 @@ def test_coadd_solar_map():
# and combine them into a single one. This uses weight maps that are not
# uniform and also include NaN values.

# The reference image was generated for sunpy 6.0.0 - it will not work
# for previous versions.
pytest.importorskip("sunpy", minversion="6.0.0")
pytest.importorskip("sunpy", minversion="6.0.1")
from sunpy.map import Map, all_coordinates_from_map

# Load in three images from different viewpoints around the Sun
Expand Down
2 changes: 1 addition & 1 deletion reproject/mosaicking/tests/test_wcs_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def test_solar_wcs():
# Regression test for issues that occurred when trying to find
# the optimal WCS for a set of solar WCSes

pytest.importorskip("sunpy", minversion="2.1.0")
pytest.importorskip("sunpy", minversion="6.0.1")

# Make sure the WCS <-> frame functions are registered

Expand Down
8 changes: 4 additions & 4 deletions reproject/tests/data/aia_171_level1.asdf
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ history:
extension_uri: asdf://asdf-format.org/core/extensions/core-1.5.0
manifest_software: !core/software-1.0.0 {name: asdf_standard, version: 1.1.1}
software: !core/software-1.0.0 {name: asdf-astropy, version: 0.6.1}
- !core/extension_metadata-1.0.0
extension_class: asdf.extension._manifest.ManifestExtension
extension_uri: asdf://astropy.org/astropy/extensions/units-1.0.0
software: !core/software-1.0.0 {name: asdf-astropy, version: 0.6.1}
- !core/extension_metadata-1.0.0
extension_class: asdf.extension._manifest.ManifestExtension
extension_uri: asdf://asdf-format.org/astronomy/gwcs/extensions/gwcs-1.2.0
Expand All @@ -26,6 +22,10 @@ history:
extension_uri: asdf://asdf-format.org/transform/extensions/transform-1.5.0
manifest_software: !core/software-1.0.0 {name: asdf_transform_schemas, version: 0.5.0}
software: !core/software-1.0.0 {name: asdf-astropy, version: 0.6.1}
- !core/extension_metadata-1.0.0
extension_class: asdf.extension._manifest.ManifestExtension
extension_uri: asdf://astropy.org/astropy/extensions/units-1.0.0
software: !core/software-1.0.0 {name: asdf-astropy, version: 0.6.1}
- !core/extension_metadata-1.0.0
extension_class: asdf.extension._manifest.ManifestExtension
extension_uri: asdf://sunpy.org/extensions/sunpy-1.1.1
Expand Down
1 change: 1 addition & 0 deletions reproject/tests/data/generate_asdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ def generate_asdf(input_file="aia_171_level1.fits", output_file="aia_171_level1.
crval=aia_map.wcs.wcs.crval * u.deg,
)


input_frame = cf.Frame2D()
output_frame = cf.CelestialFrame(
reference_frame=aia_map.coordinate_frame,
Expand Down
2 changes: 1 addition & 1 deletion reproject/tests/test_high_level.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ def test_dask_schedulers(reproject_function, scheduler, wcs_type):
wcs_out = WCS(hdu_out.header)
shape_out = hdu_out.data.shape
elif wcs_type == "gwcs":
pytest.importorskip("sunpy", minversion="2.1.0")
pytest.importorskip("sunpy", minversion="6.0.1")
asdf = pytest.importorskip("asdf")
if reproject_function == reproject_exact:
pytest.skip()
Expand Down

0 comments on commit d8d7f18

Please sign in to comment.