Skip to content

Commit

Permalink
Merge pull request #7410 from ayshih/asdf_memmap
Browse files Browse the repository at this point in the history
Make sure asdf arrays are copied rather than memory mapped in two unit tests
  • Loading branch information
nabobalis committed Jan 26, 2024
2 parents 2116e5d + fa4a90b commit 709257c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sunpy/io/special/asdf/tests/test_genericmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def test_genericmap_mask(aia171_test_map, tmpdir):
@asdf_entry_points
def test_load_100_file_with_shift():
fname = get_test_filepath("aiamap_shift_genericmap_1.0.0.asdf")
with asdf.open(fname) as af:
with asdf.open(fname, copy_arrays=True) as af:
aiamap = af['object']
assert isinstance(aiamap, sunpy.map.sources.AIAMap)
assert "crval1" in aiamap.meta.modified_items
Expand All @@ -59,7 +59,7 @@ def test_load_100_file_with_shift():
@asdf_entry_points
def test_load_100_file_with_no_shift():
fname = get_test_filepath("aiamap_genericmap_1.0.0.asdf")
with asdf.open(fname) as af:
with asdf.open(fname, copy_arrays=True) as af:
aiamap = af['object']
assert isinstance(aiamap, sunpy.map.sources.AIAMap)
assert "crval1" not in aiamap.meta.modified_items
Expand Down

0 comments on commit 709257c

Please sign in to comment.