Source: astropy, spectral-cube Control: found -1 astropy/5.2-1 Control: found -1 spectral-cube/0.6.0-1 Severity: serious Tags: sid bookworm User: [email protected] Usertags: breaks needs-update
Dear maintainer(s),With a recent upload of astropy the autopkgtest of spectral-cube fails in testing when that autopkgtest is run with the binary packages of astropy from unstable. It passes when run with only packages from testing. In tabular form:
pass fail
astropy from testing 5.2-1
spectral-cube from testing 0.6.0-1
all others from testing from testing
I copied some of the output at the bottom of this report.
Currently this regression is blocking the migration of astropy to
testing [1]. Due to the nature of this issue, I filed this bug report
against both packages. Can you please investigate the situation and
reassign the bug to the right package?
More information about this bug and the reason for filing it can be found on https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation Paul [1] https://qa.debian.org/excuses.php?package=astropy https://ci.debian.net/data/autopkgtest/testing/amd64/s/spectral-cube/29791507/log.gz=================================== FAILURES =================================== _________________________ test_spectral_smooth[False] __________________________
data_522_delta = PosixPath('/tmp/pytest-of-debci/pytest-0/test_spectral_smooth_False_0/522_delta.fits')
use_dask = False
def test_spectral_smooth(data_522_delta, use_dask):
cube, data = cube_and_raw(data_522_delta, use_dask=use_dask)
result =
cube.spectral_smooth(kernel=convolution.Gaussian1DKernel(1.0),
use_memmap=False)
> np.testing.assert_almost_equal(result[:,0,0].value,
convolution.Gaussian1DKernel(1.0,
x_size=5).array,
4)
E AssertionError: E Arrays are not almost equal to 4 decimals
E E Mismatched elements: 5 / 5 (100%)
E Max absolute difference: 0.00367648
E Max relative difference: 0.00913138
E x: array([0.054 , 0.242 , 0.3989, 0.242 , 0.054 ])
E y: array([0.0545, 0.2442, 0.4026, 0.2442, 0.0545])
/usr/lib/python3/dist-packages/spectral_cube/tests/test_regrid.py:131:
AssertionError
__________________________ test_spectral_smooth[True]
__________________________
data_522_delta = PosixPath('/tmp/pytest-of-debci/pytest-0/test_spectral_smooth_True_0/522_delta.fits')
use_dask = True
def test_spectral_smooth(data_522_delta, use_dask):
cube, data = cube_and_raw(data_522_delta, use_dask=use_dask)
result =
cube.spectral_smooth(kernel=convolution.Gaussian1DKernel(1.0),
use_memmap=False)
> np.testing.assert_almost_equal(result[:,0,0].value,
convolution.Gaussian1DKernel(1.0,
x_size=5).array,
4)
E AssertionError: E Arrays are not almost equal to 4 decimals
E E Mismatched elements: 5 / 5 (100%)
E Max absolute difference: 0.00367648
E Max relative difference: 0.00913138
E x: array([0.054 , 0.242 , 0.3989, 0.242 , 0.054 ])
E y: array([0.0545, 0.2442, 0.4026, 0.2442, 0.0545])
/usr/lib/python3/dist-packages/spectral_cube/tests/test_regrid.py:131:
AssertionError
_________________________ test_spectral_smooth_4cores
__________________________
data_522_delta = PosixPath('/tmp/pytest-of-debci/pytest-0/test_spectral_smooth_4cores0/522_delta.fits')
@pytest.mark.skipif('WINDOWS')
def test_spectral_smooth_4cores(data_522_delta):
pytest.importorskip('joblib')
cube, data = cube_and_raw(data_522_delta, use_dask=False)
result =
cube.spectral_smooth(kernel=convolution.Gaussian1DKernel(1.0),
num_cores=4, use_memmap=True)
> np.testing.assert_almost_equal(result[:,0,0].value,
convolution.Gaussian1DKernel(1.0,
x_size=5).array,
4)
E AssertionError: E Arrays are not almost equal to 4 decimals
E E Mismatched elements: 5 / 5 (100%)
E Max absolute difference: 0.00367648
E Max relative difference: 0.00913138
E x: array([0.054 , 0.242 , 0.3989, 0.242 , 0.054 ])
E y: array([0.0545, 0.2442, 0.4026, 0.2442, 0.0545])
/usr/lib/python3/dist-packages/spectral_cube/tests/test_regrid.py:163:
AssertionError
OpenPGP_signature
Description: OpenPGP digital signature

