Open
Description
Description
When importing demosaicing_CFA_Bayer_bilinear in a pytest, pytest spews a lot of warnings. I don't know why python doesn't. I'm just writing this because they are noise to me.
Code for Reproduction
Let's call it test_camera.py:
from colour_demosaicing import demosaicing_CFA_Bayer_bilinear
Command:
pytest test_camera.py
Unwanted output
=========== test session starts ============
platform linux -- Python 3.12.9, pytest-8.3.4, pluggy-1.5.0
rootdir: /tmp/deprecation
plugins: anyio-4.8.0
collected 0 items
============= warnings summary =============
~/.local/lib/python3.12/site-packages/colour_demosaicing/bayer/demosaicing/bilinear.py:19
~/.local/lib/python3.12/site-packages/colour_demosaicing/bayer/demosaicing/bilinear.py:19: DeprecationWarning: Please import `convolve` from the `scipy.ndimage` namespace; the `scipy.ndimage.filters` namespace is deprecated and will be removed in SciPy 2.0.0.
from scipy.ndimage.filters import convolve
~/.local/lib/python3.12/site-packages/colour_demosaicing/bayer/demosaicing/malvar2004.py:21
~/.local/lib/python3.12/site-packages/colour_demosaicing/bayer/demosaicing/malvar2004.py:21: DeprecationWarning: Please import `convolve` from the `scipy.ndimage` namespace; the `scipy.ndimage.filters` namespace is deprecated and will be removed in SciPy 2.0.0.
from scipy.ndimage.filters import convolve
~/.local/lib/python3.12/site-packages/colour_demosaicing/bayer/demosaicing/menon2007.py:20
~/.local/lib/python3.12/site-packages/colour_demosaicing/bayer/demosaicing/menon2007.py:20: DeprecationWarning: Please import `convolve` from the `scipy.ndimage` namespace; the `scipy.ndimage.filters` namespace is deprecated and will be removed in SciPy 2.0.0.
from scipy.ndimage.filters import convolve, convolve1d
~/.local/lib/python3.12/site-packages/colour_demosaicing/bayer/demosaicing/menon2007.py:20
~/.local/lib/python3.12/site-packages/colour_demosaicing/bayer/demosaicing/menon2007.py:20: DeprecationWarning: Please import `convolve1d` from the `scipy.ndimage` namespace; the `scipy.ndimage.filters` namespace is deprecated and will be removed in SciPy 2.0.0.
from scipy.ndimage.filters import convolve, convolve1d
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========== 4 warnings in 0.62s ============