silx
silx copied to clipboard
warning with silxs 1.1.2 during test on Debian unstable
Hello, I just report a bunch of warning generated during the build process on Debian unstable.
https://buildd.debian.org/status/package.php?p=silx
I do not know when theses warning will become real errors.
Thanks for considering
Fred
silx/gui/colors.py:183
silx/gui/colors.py:183
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_silx/build/silx/gui/colors.py:183: PendingDeprecationWarning: The get_cmap function will be deprecated in a future version. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap(obj)`` instead.
colormap = _matplotlib_cm.get_cmap(name)
silx/opencl/test/test_array_utils.py:51
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_silx/build/silx/opencl/test/test_array_utils.py:51: DeprecationWarning: Please use `laplace` from the `scipy.ndimage` namespace, the `scipy.ndimage.filters` namespace is deprecated.
from scipy.ndimage.filters import laplace
silx/opencl/test/test_linalg.py:50
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_silx/build/silx/opencl/test/test_linalg.py:50: DeprecationWarning: Please use `laplace` from the `scipy.ndimage` namespace, the `scipy.ndimage.filters` namespace is deprecated.
from scipy.ndimage.filters import laplace
silx/opencl/test/test_medfilt.py:68
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_silx/build/silx/opencl/test/test_medfilt.py:68: DeprecationWarning: Please use `median_filter` from the `scipy.ndimage` namespace, the `scipy.ndimage.filters` namespace is deprecated.
median_filter = filters.median_filter
.pybuild/cpython3_3.11_silx/build/silx/math/fft/test/test_fft.py::TestFFT::test_norms_numpy
.pybuild/cpython3_3.11_silx/build/silx/math/fft/test/test_fft.py::TestNumpyFFT::test
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_silx/build/silx/math/fft/test/test_fft.py:115: DeprecationWarning: scipy.misc.ascent has been deprecated in SciPy v1.10.0; and will be completely removed in SciPy v1.12.0. Dataset methods have moved into the scipy.datasets module. Use scipy.datasets.ascent instead.
self.data = ascent().astype("float32")
.pybuild/cpython3_3.11_silx/build/silx/math/medianfilter/test/test_medianfilter.py::TestVsScipy::testAscentOrLena
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_silx/build/silx/math/medianfilter/test/test_medianfilter.py:702: DeprecationWarning: scipy.misc.ascent has been deprecated in SciPy v1.10.0; and will be completely removed in SciPy v1.12.0. Dataset methods have moved into the scipy.datasets module. Use scipy.datasets.ascent instead.
img = scipy.misc.ascent()
.pybuild/cpython3_3.11_silx/build/silx/math/test/test_colormap.py: 16 warnings
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_silx/build/silx/math/test/test_colormap.py:203: DeprecationWarning: NumPy will stop allowing conversion of out-of-bound Python integers to integer arrays. The conversion of -5 to uint8 will fail in the future.
For the old behavior, usually:
np.array(value).astype(dtype)`
will give the desired result (the cast overflows).
data = numpy.arange(-5, 15, dtype=dtype).reshape(4, 5)
.pybuild/cpython3_3.11_silx/build/silx/math/test/test_colormap.py: 16 warnings
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_silx/build/silx/math/test/test_colormap.py:203: DeprecationWarning: NumPy will stop allowing conversion of out-of-bound Python integers to integer arrays. The conversion of -4 to uint8 will fail in the future.
For the old behavior, usually:
np.array(value).astype(dtype)`
will give the desired result (the cast overflows).
data = numpy.arange(-5, 15, dtype=dtype).reshape(4, 5)
.pybuild/cpython3_3.11_silx/build/silx/math/test/test_combo.py::TestMinMax::test_different_datasets
.pybuild/cpython3_3.11_silx/build/silx/math/test/test_combo.py::TestMinMax::test_different_datasets
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_silx/build/silx/math/test/test_combo.py:140: DeprecationWarning: NumPy will stop allowing conversion of out-of-bound Python integers to integer arrays. The conversion of 999 to int8 will fail in the future.
For the old behavior, usually:
np.array(value).astype(dtype)`
will give the desired result (the cast overflows).
data = numpy.arange(
.pybuild/cpython3_3.11_silx/build/silx/math/test/test_combo.py::TestMinMax::test_different_datasets
.pybuild/cpython3_3.11_silx/build/silx/math/test/test_combo.py::TestMinMax::test_different_datasets
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_silx/build/silx/math/test/test_combo.py:140: DeprecationWarning: NumPy will stop allowing conversion of out-of-bound Python integers to integer arrays. The conversion of 998 to int8 will fail in the future.
For the old behavior, usually:
np.array(value).astype(dtype)`
will give the desired result (the cast overflows).
data = numpy.arange(
.pybuild/cpython3_3.11_silx/build/silx/math/test/test_combo.py::TestMinMax::test_different_datasets
.pybuild/cpython3_3.11_silx/build/silx/math/test/test_combo.py::TestMinMax::test_different_datasets
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_silx/build/silx/math/test/test_combo.py:140: DeprecationWarning: NumPy will stop allowing conversion of out-of-bound Python integers to integer arrays. The conversion of 500 to int8 will fail in the future.
For the old behavior, usually:
np.array(value).astype(dtype)`
will give the desired result (the cast overflows).
data = numpy.arange(
.pybuild/cpython3_3.11_silx/build/silx/math/test/test_combo.py::TestMinMax::test_different_datasets
.pybuild/cpython3_3.11_silx/build/silx/math/test/test_combo.py::TestMinMax::test_different_datasets
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_silx/build/silx/math/test/test_combo.py:140: DeprecationWarning: NumPy will stop allowing conversion of out-of-bound Python integers to integer arrays. The conversion of 499 to int8 will fail in the future.
For the old behavior, usually:
np.array(value).astype(dtype)`
will give the desired result (the cast overflows).
data = numpy.arange(
.pybuild/cpython3_3.11_silx/build/silx/math/test/test_combo.py::TestMinMax::test_different_datasets
.pybuild/cpython3_3.11_silx/build/silx/math/test/test_combo.py::TestMinMax::test_different_datasets
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_silx/build/silx/math/test/test_combo.py:140: DeprecationWarning: NumPy will stop allowing conversion of out-of-bound Python integers to integer arrays. The conversion of 999 to uint8 will fail in the future.
For the old behavior, usually:
np.array(value).astype(dtype)`
will give the desired result (the cast overflows).
data = numpy.arange(
.pybuild/cpython3_3.11_silx/build/silx/math/test/test_combo.py::TestMinMax::test_different_datasets
.pybuild/cpython3_3.11_silx/build/silx/math/test/test_combo.py::TestMinMax::test_different_datasets
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_silx/build/silx/math/test/test_combo.py:140: DeprecationWarning: NumPy will stop allowing conversion of out-of-bound Python integers to integer arrays. The conversion of 998 to uint8 will fail in the future.
For the old behavior, usually:
np.array(value).astype(dtype)`
will give the desired result (the cast overflows).
data = numpy.arange(
.pybuild/cpython3_3.11_silx/build/silx/utils/test/test_number.py::TestConversionTypes::testExponent32
.pybuild/cpython3_3.11_silx/build/silx/utils/test/test_number.py::TestConversionTypes::testExponent64
.pybuild/cpython3_3.11_silx/build/silx/utils/test/test_number.py::TestConversionTypes::testIntegerExponential
.pybuild/cpython3_3.11_silx/build/silx/utils/test/test_number.py::TestConversionTypes::testIntegerPositiveExponential
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_silx/build/silx/utils/number.py:112: RuntimeWarning: overflow encountered in cast
reduced_value = numpy_type(value)
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
Everything related to scipy should only be part of the tests (not part of the lib), so it should be ok.
But i have no idea if this could be fixed.
Thanks for the report!
We'll try to fix as much issues as possible, but some might stay in order to keep compatibility with older versions of our dependencies (unless we bump the minimum required versions).