Your message dated Thu, 02 Dec 2021 12:49:12 +0000
with message-id <e1mslws-000ghr...@fasolo.debian.org>
and subject line Bug#1000603: fixed in specutils 1.5.0-1
has caused the Debian Bug report #1000603,
regarding specutils FTBFS with astropy 5.0
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
1000603: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1000603
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: specutils
Version: 1.4.1-1
Severity: serious
Tags: ftbfs
https://buildd.debian.org/status/logs.php?pkg=specutils&ver=1.4.1-1%2Bb1
...
=================================== FAILURES ===================================
__________________________ test_continuum_calculation __________________________
def test_continuum_calculation():
"""
This test fits the first simulated spectrum from the fixture. The
initial guesses are manually set here with bounds that essentially make
sense as the functionality of the test is to make sure the fit works and
we get a reasonable answer out **given** good initial guesses.
"""
x_single_continuum, y_single_continuum = single_peak_continuum()
spectrum = Spectrum1D(flux=y_single_continuum*u.Jy,
spectral_axis=x_single_continuum*u.um)
g1_fit = fit_generic_continuum(spectrum)
> spectrum_normalized = spectrum / g1_fit(spectrum.spectral_axis)
specutils/tests/test_continuum.py:60:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
specutils/spectra/spectrum1d.py:568: in __truediv__
return self.divide(other)
/usr/lib/python3/dist-packages/astropy/nddata/mixins/ndarithmetic.py:536: in
divide
return self._prepare_then_do_arithmetic(np.true_divide, operand,
/usr/lib/python3/dist-packages/astropy/nddata/mixins/ndarithmetic.py:610: in
_prepare_then_do_arithmetic
operand2 = cls(operand2)
specutils/spectra/spectrum1d.py:288: in __init__
spec_axis = self.wcs.pixel_to_world(np.arange(self.flux.shape[-1]))
specutils/utils/wcs_utils.py:217: in pixel_to_world
return super().pixel_to_world(*args, **kwargs).to(
/usr/lib/python3/dist-packages/gwcs/api.py:299: in pixel_to_world
return self(*pixels, with_units=True)
/usr/lib/python3/dist-packages/gwcs/wcs.py:379: in __call__
result = self.output_frame.coordinates(result)
/usr/lib/python3/dist-packages/gwcs/coordinate_frames.py:463: in coordinates
return coord.SpectralCoord(*args).to(self.unit[0])
/usr/lib/python3/dist-packages/astropy/units/decorators.py:304: in wrapper
return_ = wrapped_function(*func_args, **func_kwargs)
/usr/lib/python3/dist-packages/astropy/coordinates/spectral_coordinate.py:193:
in __new__
obj = super().__new__(cls, value, unit=unit, **kwargs)
/usr/lib/python3/dist-packages/astropy/coordinates/spectral_quantity.py:57: in
__new__
obj = super().__new__(cls, value, unit=unit, **kwargs)
/usr/lib/python3/dist-packages/astropy/units/quantity.py:425: in __new__
value = value.view(cls)
/usr/lib/python3/dist-packages/astropy/coordinates/spectral_coordinate.py:242:
in __array_finalize__
super().__array_finalize__(obj)
/usr/lib/python3/dist-packages/astropy/coordinates/spectral_quantity.py:72: in
__array_finalize__
super().__array_finalize__(obj)
/usr/lib/python3/dist-packages/astropy/units/quantity.py:550: in
__array_finalize__
self._set_unit(unit)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <[AttributeError("SpectralCoord instance has no attribute
'radial_velocity'") raised in repr()] SpectralCoord object at 0x7f389f6d3d10>
unit = Unit(dimensionless)
def _set_unit(self, unit):
if unit is None or not unit.is_equivalent(self._equivalent_unit):
> raise UnitTypeError(
"{} instances require units equivalent to '{}'"
.format(type(self).__name__, self._equivalent_unit) +
(", but no unit was given." if unit is None else
f", so cannot set it to '{unit}'."))
E astropy.units.core.UnitTypeError: SpectralCoord instances require
units equivalent to '(Unit("Hz"), Unit("m"), Unit("J"), Unit("1 / m"), Unit("km
/ s"))', so cannot set it to ''.
/usr/lib/python3/dist-packages/astropy/units/quantity.py:1933: UnitTypeError
__________________________ test_continuum_full_window __________________________
def test_continuum_full_window():
"""
This test fits the first simulated spectrum from the fixture, but
with the fit_continuum function instead of fit_generic_continuum. Uses
a window to select the entire spectrum and checks that it recovers the
original, non-windowed fit.
"""
x_single_continuum, y_single_continuum = single_peak_continuum()
spectrum = Spectrum1D(flux=y_single_continuum*u.Jy,
spectral_axis=x_single_continuum*u.um)
# Smooth in the same way fit_generic_continuum does.
spectrum_smoothed = median_smooth(spectrum, 3)
# Check that a full width window recovers the original, non-windowed
fit.
g1_fit = fit_continuum(spectrum_smoothed, window=(0.*u.um, 10.*u.um))
g1_fit_orig = fit_continuum(spectrum_smoothed)
> sp_normalized = spectrum / g1_fit(spectrum.spectral_axis)
specutils/tests/test_continuum.py:88:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
specutils/spectra/spectrum1d.py:568: in __truediv__
return self.divide(other)
/usr/lib/python3/dist-packages/astropy/nddata/mixins/ndarithmetic.py:536: in
divide
return self._prepare_then_do_arithmetic(np.true_divide, operand,
/usr/lib/python3/dist-packages/astropy/nddata/mixins/ndarithmetic.py:610: in
_prepare_then_do_arithmetic
operand2 = cls(operand2)
specutils/spectra/spectrum1d.py:288: in __init__
spec_axis = self.wcs.pixel_to_world(np.arange(self.flux.shape[-1]))
specutils/utils/wcs_utils.py:217: in pixel_to_world
return super().pixel_to_world(*args, **kwargs).to(
/usr/lib/python3/dist-packages/gwcs/api.py:299: in pixel_to_world
return self(*pixels, with_units=True)
/usr/lib/python3/dist-packages/gwcs/wcs.py:379: in __call__
result = self.output_frame.coordinates(result)
/usr/lib/python3/dist-packages/gwcs/coordinate_frames.py:463: in coordinates
return coord.SpectralCoord(*args).to(self.unit[0])
/usr/lib/python3/dist-packages/astropy/units/decorators.py:304: in wrapper
return_ = wrapped_function(*func_args, **func_kwargs)
/usr/lib/python3/dist-packages/astropy/coordinates/spectral_coordinate.py:193:
in __new__
obj = super().__new__(cls, value, unit=unit, **kwargs)
/usr/lib/python3/dist-packages/astropy/coordinates/spectral_quantity.py:57: in
__new__
obj = super().__new__(cls, value, unit=unit, **kwargs)
/usr/lib/python3/dist-packages/astropy/units/quantity.py:425: in __new__
value = value.view(cls)
/usr/lib/python3/dist-packages/astropy/coordinates/spectral_coordinate.py:242:
in __array_finalize__
super().__array_finalize__(obj)
/usr/lib/python3/dist-packages/astropy/coordinates/spectral_quantity.py:72: in
__array_finalize__
super().__array_finalize__(obj)
/usr/lib/python3/dist-packages/astropy/units/quantity.py:550: in
__array_finalize__
self._set_unit(unit)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <[AttributeError("SpectralCoord instance has no attribute
'radial_velocity'") raised in repr()] SpectralCoord object at 0x7f389fa62ab0>
unit = Unit(dimensionless)
def _set_unit(self, unit):
if unit is None or not unit.is_equivalent(self._equivalent_unit):
> raise UnitTypeError(
"{} instances require units equivalent to '{}'"
.format(type(self).__name__, self._equivalent_unit) +
(", but no unit was given." if unit is None else
f", so cannot set it to '{unit}'."))
E astropy.units.core.UnitTypeError: SpectralCoord instances require
units equivalent to '(Unit("Hz"), Unit("m"), Unit("J"), Unit("1 / m"), Unit("km
/ s"))', so cannot set it to ''.
/usr/lib/python3/dist-packages/astropy/units/quantity.py:1933: UnitTypeError
...
=========================== short test summary info ============================
FAILED specutils/tests/test_continuum.py::test_continuum_calculation - astrop...
FAILED specutils/tests/test_continuum.py::test_continuum_full_window - astrop...
FAILED specutils/tests/test_continuum.py::test_continuum_spectral_region - as...
FAILED specutils/tests/test_continuum.py::test_continuum_window_no_noise - as...
FAILED specutils/tests/test_continuum.py::test_double_continuum_window - astr...
FAILED specutils/tests/test_continuum.py::test_double_continuum_window_alternate
FAILED specutils/tests/test_correlation.py::test_autocorrelation - astropy.un...
FAILED specutils/tests/test_correlation.py::test_correlation - astropy.units....
FAILED specutils/tests/test_correlation.py::test_correlation_zero_padding - a...
FAILED specutils/tests/test_correlation.py::test_correlation_random_lines - a...
FAILED specutils/tests/test_loaders.py::test_tabular_fits_writer[wavelength]
FAILED specutils/tests/test_loaders.py::test_tabular_fits_writer[frequency]
FAILED specutils/tests/test_loaders.py::test_tabular_fits_writer[energy] - As...
FAILED specutils/tests/test_loaders.py::test_tabular_fits_writer[wavenumber]
==== 14 failed, 336 passed, 101 skipped, 7 xfailed, 193 warnings in 44.14s =====
E: pybuild pybuild:354: test: plugin distutils failed with: exit code=1: cd
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build; python3.9 -m pytest
--remote-data=none --doctest-rst
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.10
3.9" returned exit code 13
make: *** [debian/rules:8: binary-arch] Error 25
--- End Message ---
--- Begin Message ---
Source: specutils
Source-Version: 1.5.0-1
Done: Ole Streicher <oleb...@debian.org>
We believe that the bug you reported is fixed in the latest version of
specutils, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 1000...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Ole Streicher <oleb...@debian.org> (supplier of updated specutils package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Thu, 02 Dec 2021 08:26:19 +0100
Source: specutils
Architecture: source
Version: 1.5.0-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Astronomy Team
<debian-astro-maintain...@lists.alioth.debian.org>
Changed-By: Ole Streicher <oleb...@debian.org>
Closes: 1000603
Changes:
specutils (1.5.0-1) unstable; urgency=medium
.
* New upstream version 1.5.0. Closes: #1000603
* Disable last assert in test_moment_cube to resolve FTBFS on i386
Checksums-Sha1:
9703ed77ad55d81ac7a7797077f4f80d3d5c980d 2315 specutils_1.5.0-1.dsc
e77aa64c6591ffc60b2f551ff46459c19a5ac8e1 657549 specutils_1.5.0.orig.tar.gz
e4257fe96aaa1ba0b2c74ce56c8b7c2ecc007c30 4720 specutils_1.5.0-1.debian.tar.xz
Checksums-Sha256:
6dcb6e1b01072368c9bb533672fa7dc1b05afa472de81b4162f301a8adee4c89 2315
specutils_1.5.0-1.dsc
8e768b885b516e4cf31668cee2742d0ef465c9af3baf0fb544c73a595350af04 657549
specutils_1.5.0.orig.tar.gz
55efe5842e0c610f4da34811d36f4d1e02fed57e5f69ca71d83ef0221be1a919 4720
specutils_1.5.0-1.debian.tar.xz
Files:
8f13415239b7c3e2bb0e28d8750f6e85 2315 python optional specutils_1.5.0-1.dsc
af883f8fa36a2e55d4e24284cbde7dcd 657549 python optional
specutils_1.5.0.orig.tar.gz
4d91f8123519d801e455c4201623474f 4720 python optional
specutils_1.5.0-1.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEuvxshffLFD/utvsVcRWv0HcQ3PcFAmGovaEACgkQcRWv0HcQ
3Pcl/RAAw32lgezSO8qjSftjoMTLB/WgaE3LkJZWSKKa+ajjrrCkGS2oU7s2B4BV
vOb8tA8HwusY1g3BJ7/8/KEzGNZsPC0Xl63IkE9+rP0y2K+PcxpUxFV1vmToqjkR
NdbzKDOzhPDBXRwYh/bpRX/rBUk8WBJJRhPEUOoo2SY67AgKHW8FWzExMkwnZQqe
9hWK58ao1qsu7aw6j4CycebokNW8DnjS2C5JsMJN1zokVU2LRNOeR8IFoOvXTWOE
Tw3nb4NzPf4/INSWRafDEabXHzSoJ6uZul62fkFLP7L67QaEI/yI00EBmyxiWUpU
T1KwaikOiImMwZN37gT6w2SjyAUeQvGcwpjkZnW1kuu9KziD1+wgiqPv4cVOcj+P
QRYa7FsoKKNDX/pChN+4soackBnBzD2pSxwZaqM4E1oJLkeVZVrYGrcCDoyYZsie
TbuNPFVojE6bGzdGG2UuRRj/PkwbqzyYfvDcN4czts9DxxFzi4pg/mtR7vF9puxx
9Cc6TO3TcwGbLchXr+jS6ki0QPYjR6bvnp3S6bbJlvCguugL3NHnz1UNycVTvDPp
lN6BHi0RdV8U+oUVSjH+OWEXEUvzWHvNJFa4RdkedwMu5fP4Ard/U8r9gQ4vSP5D
lP4D3ouH7Od173bNId3ANBnZE2Jd1iNA5gOAwDbAeL4LZkdZi9Q=
=hdYI
-----END PGP SIGNATURE-----
--- End Message ---