-
-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Example log: https://github.com/astropy/extension-helpers/actions/runs/18472591444/job/52629786869
________ test_read_memmap ________
def test_read_memmap():
data, _ = _fits.read(TEST_AIA_IMAGE, memmap=True)[0]
assert data.base is not None
> assert isinstance(data.base, mmap.mmap)
E AssertionError: assert False
E + where False = isinstance(array([[3.09557e-319, 0.00000e+000, 3.03865e-319, ..., 0.00000e+000,\n 2.83628e-319, 2.94379e-319],\n [2.93... [2.93747e-319, 3.13984e-319, 2.94379e-319, ..., 0.00000e+000,\n 2.84261e-319, 2.83628e-319]], shape=(128, 128)), <class 'mmap.mmap'>)
E + where array([[3.09557e-319, 0.00000e+000, 3.03865e-319, ..., 0.00000e+000,\n 2.83628e-319, 2.94379e-319],\n [2.93... [2.93747e-319, 3.13984e-319, 2.94379e-319, ..., 0.00000e+000,\n 2.84261e-319, 2.83628e-319]], shape=(128, 128)) = array([[-1.25, 0. , 1. , ..., 0. , 0.5 , -0.75],\n [ 0.75, -0.25, -0.5 , ..., 0.25, 0. , -0.25],\n ....., 0.75, -0.75, 0. ],\n [ 0.75, 1.5 , -0.75, ..., 0. , -0.5 , 0.5 ]],\n shape=(128, 128), dtype='>f8').base
E + and <class 'mmap.mmap'> = mmap.mmap
sunpy/io/tests/test_fits.py:183: AssertionError
________ test_map_fits ________
def test_map_fits():
fits_map = sunpy.map.Map(AIA_171_IMAGE, memmap=False)
assert isinstance(fits_map, sunpy.map.GenericMap)
# The base of an array that owns its memory is None
> assert fits_map.data.base is None
E AssertionError: assert array([3.09557e-319, 0.00000e+000, 3.03865e-319, ..., 0.00000e+000,\n 2.84261e-319, 2.83628e-319], shape=(16384,)) is None
E + where array([3.09557e-319, 0.00000e+000, 3.03865e-319, ..., 0.00000e+000,\n 2.84261e-319, 2.83628e-319], shape=(16384,)) = array([[-1.25, 0. , 1. , ..., 0. , 0.5 , -0.75],\n [ 0.75, -0.25, -0.5 , ..., 0.25, 0. , -0.25],\n ....., 0.75, -0.75, 0. ],\n [ 0.75, 1.5 , -0.75, ..., 0. , -0.5 , 0.5 ]],\n shape=(128, 128), dtype='>f8').base
E + where array([[-1.25, 0. , 1. , ..., 0. , 0.5 , -0.75],\n [ 0.75, -0.25, -0.5 , ..., 0.25, 0. , -0.25],\n ....., 0.75, -0.75, 0. ],\n [ 0.75, 1.5 , -0.75, ..., 0. , -0.5 , 0.5 ]],\n shape=(128, 128), dtype='>f8') = <sunpy.map.sources.sdo.AIAMap object at 0x7f6385563cb0>\nSunPy Map\n---------\nObservatory: SDO\nInstrument: AIA 3\nDet....., 0.75, -0.75, 0. ],\n [ 0.75, 1.5 , -0.75, ..., 0. , -0.5 , 0.5 ]],\n shape=(128, 128), dtype='>f8').data
sunpy/map/tests/test_map_factory.py:390: AssertionError
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working