Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation warning while running tests #2375

Closed
kif opened this issue Jan 9, 2025 · 0 comments · Fixed by #2376
Closed

Deprecation warning while running tests #2375

kif opened this issue Jan 9, 2025 · 0 comments · Fixed by #2376
Labels
packaging build, test, package or distribution

Comments

@kif
Copy link
Member

kif commented Jan 9, 2025

test separate with a mask. issue #209 regression test ... WARNING:pyFAI.DEPRECATION:Function medfilt1d_legacy is deprecated since pyFAI version 2024.12.0. Use 'medfilt1d_ng' instead.
test_dark (pyFAI.test.test_azimuthal_integrator.TestSetter.test_dark) ... WARNING:pyFAI.DEPRECATION:Function set_darkfiles is deprecated since pyFAI version 0.17. Reason: Not maintained.
WARNING:pyFAI.DEPRECATION:Function set_darkfiles is deprecated since pyFAI version 0.17. Reason: Not maintained.
WARNING:pyFAI.DEPRECATION:Function darkfiles is deprecated since pyFAI version 0.17. Reason: Not maintained.
test_flat (pyFAI.test.test_azimuthal_integrator.TestSetter.test_flat) ... WARNING:pyFAI.DEPRECATION:Function set_flatfiles is deprecated since pyFAI version 0.17. Reason: Not maintained.
WARNING:pyFAI.DEPRECATION:Function set_flatfiles is deprecated since pyFAI version 0.17. Reason: Not maintained.
WARNING:pyFAI.DEPRECATION:Function flatfiles is deprecated since pyFAI version 0.17. Reason: Not maintained.
test_legacy_mask (pyFAI.test.test_azimuthal_integrator.TestSaxs.test_legacy_mask) ... WARNING:pyFAI.DEPRECATION:pyFAI.integrator.common provided mask content is deprecated. Reason: The provided mask is not complient with other engines. The feature which automatically invert it will be removed soon. For more information see https://github.com/silx-kit/pyFAI/pull/868.
WARNING:pyFAI.DEPRECATION:Function integrate1d_legacy is deprecated since pyFAI version 0.20. Use 'integrate1d_ng' instead.
test_medfilt (pyFAI.test.test_azimuthal_integrator.TestRange.test_medfilt) ... WARNING:pyFAI.DEPRECATION:Function medfilt1d_legacy is deprecated since pyFAI version 2024.12.0. Use 'medfilt1d_ng' instead.
WARNING:py.warnings:/users/kieffer/workspace-400/pyFAI/build/lib/python3.11/site-packages/pyFAI/utils/mathutil.py:144: DeprecationWarning: Please import `gaussian_filter` from the `scipy.ndimage` namespace; the `scipy.ndimage.filters` namespace is deprecated and will be removed in SciPy 2.0.0.
WARNING:pyFAI.DEPRECATION:Module pyFAI.azimuthalIntegrator is deprecated since pyFAI version 2024.10. Use 'pyFAI.integrator.azimuthal' instead.
test_path (pyFAI.test.test_integrate_app.TestIntegrateApp.test_path) ... WARNING:py.warnings:/opt/conda/envs/py311/lib/python3.11/unittest/case.py:678: DeprecationWarning: It is deprecated to return a value!=None from a test case (<bound method TestIntegrateApp.test_path of <pyFAI.test.test_integrate_app.TestIntegrateApp testMethod=test_path>>)
WARNING:py.warnings:/users/kieffer/workspace-400/pyFAI/build/lib/python3.11/site-packages/pyFAI/distortion.py:335: DeprecationWarning: numpy.core is deprecated and has been renamed to numpy._core. The numpy._core namespace contains private NumPy internals and its use is discouraged, as NumPy internals can change without warning in any release. In practice, most real-world usage of numpy.core is to access functionality in the public NumPy API. If that is the case, use the public NumPy API. If not, you are using NumPy internals. If you would still like to access an internal attribute, use numpy._core.records.
test_manual (pyFAI.test.test_distortion.TestOther.test_manual) ... WARNING:py.warnings:/users/kieffer/workspace-400/pyFAI/build/lib/python3.11/site-packages/pyFAI/distortion.py:716: DeprecationWarning: Arrays of 2-dimensional vectors are deprecated. Use arrays of 3-dimensional vectors instead. (deprecated in NumPy 2.0)
test_gaussian_filter (pyFAI.test.test_convolution.TestConvolution.test_gaussian_filter) ... WARNING:py.warnings:/users/kieffer/workspace-400/pyFAI/build/lib/python3.11/site-packages/pyFAI/test/test_convolution.py:83: DeprecationWarning: Please import `gaussian_filter` from the `scipy.ndimage` namespace; the `scipy.ndimage.filters` namespace is deprecated and will be removed in SciPy 2.0.0.
test_horizontal_convolution (pyFAI.test.test_convolution.TestConvolution.test_horizontal_convolution) ... WARNING:py.warnings:/users/kieffer/workspace-400/pyFAI/build/lib/python3.11/site-packages/pyFAI/test/test_convolution.py:72: 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.
test_vertical_convolution (pyFAI.test.test_convolution.TestConvolution.test_vertical_convolution) ... WARNING:py.warnings:/users/kieffer/workspace-400/pyFAI/build/lib/python3.11/site-packages/pyFAI/test/test_convolution.py:78: 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.
WARNING:pyFAI.DEPRECATION:Function integrate1d_legacy is deprecated since pyFAI version 0.20. Use 'integrate1d_ng' instead.
WARNING:py.warnings:/users/kieffer/workspace-400/pyFAI/build/lib/python3.11/site-packages/pyFAI/test/test_bispev.py:72: DeprecationWarning: Please import `bisplev` from the `scipy.interpolate` namespace; the `scipy.interpolate.fitpack` namespace is deprecated and will be removed in SciPy 2.0.0.
WARNING:py.warnings:/users/kieffer/workspace-400/pyFAI/build/lib/python3.11/site-packages/pyFAI/utils/mathutil.py:144: DeprecationWarning: Please import `gaussian_filter` from the `scipy.ndimage` namespace; the `scipy.ndimage.filters` namespace is deprecated and will be removed in SciPy 2.0.0.
WARNING:pyFAI.DEPRECATION:Module pyFAI.azimuthalIntegrator is deprecated since pyFAI version 2024.10. Use 'pyFAI.integrator.azimuthal' instead.
WARNING:pyFAI.DEPRECATION:Module pyFAI.load_integrators is deprecated since pyFAI version 2024.10. Use 'pyFAI.integrator.load_engines' instead.
loading poni dictionary as a separate key in configuration ... WARNING:pyFAI.DEPRECATION:Class ConfigurationReader is deprecated since pyFAI version 2025.01.
WARNING:pyFAI.DEPRECATION:Class ConfigurationReader is deprecated since pyFAI version 2025.01.
Check gaussian filters applied via FFT ... WARNING:py.warnings:/users/kieffer/workspace-400/pyFAI/build/lib/python3.11/site-packages/pyFAI/test/test_utils_mathutil.py:130: DeprecationWarning: Please import `gaussian_filter` from the `scipy.ndimage` namespace; the `scipy.ndimage.filters` namespace is deprecated and will be removed in SciPy 2.0.0.
Test the half_ccd back and forth ... WARNING:py.warnings:/users/kieffer/workspace-400/pyFAI/build/lib/python3.11/site-packages/pyFAI/spline.py:448: DeprecationWarning: Please import `RectBivariateSpline` from the `scipy.interpolate` namespace; the `scipy.interpolate.fitpack2` namespace is deprecated and will be removed in SciPy 2.0.0.
WARNING:py.warnings:/users/kieffer/workspace-400/pyFAI/build/lib/python3.11/site-packages/pyFAI/spline.py:457: DeprecationWarning: Please import `RectBivariateSpline` from the `scipy.interpolate` namespace; the `scipy.interpolate.fitpack2` namespace is deprecated and will be removed in SciPy 2.0.0.
test_deprecated_api (pyFAI.test.test_pyfai_api.TestAzimuthalIntegrator.test_deprecated_api) ... ok
test_himask (pyFAI.test.test_massif.TestMassif.test_himask) ... WARNING:py.warnings:/users/kieffer/workspace-400/pyFAI/build/lib/python3.11/site-packages/pyFAI/utils/mathutil.py:144: DeprecationWarning: Please import `gaussian_filter` from the `scipy.ndimage` namespace; the `scipy.ndimage.filters` namespace is deprecated and will be removed in SciPy 2.0.0.
test_integrate1d_horizontal_deprecated_units (pyFAI.test.test_fiber_integrator.TestFiberIntegrator.test_integrate1d_horizontal_deprecated_units) ... WARNING:pyFAI.DEPRECATION:<class 'int'> npt_output is deprecated since pyFAI version 2024.11/12. Use 'npt_oop, npt_ip, vertical_integration instead' instead.
  File "/users/kieffer/workspace-400/pyFAI/build/lib/python3.11/site-packages/pyFAI/test/test_fiber_integrator.py", line 482, in test_integrate1d_horizontal_deprecated_units
    res1d_deprecated = self.fi.integrate1d_grazing_incidence(data=self.data,
    deprecated_params = get_deprecated_params_1d(**kwargs)
WARNING:pyFAI.DEPRECATION:<class 'int'> npt_integrated is deprecated since pyFAI version 2024.11/12. Use 'npt_oop, npt_ip, vertical_integration instead' instead.
  File "/users/kieffer/workspace-400/pyFAI/build/lib/python3.11/site-packages/pyFAI/test/test_fiber_integrator.py", line 482, in test_integrate1d_horizontal_deprecated_units
    res1d_deprecated = self.fi.integrate1d_grazing_incidence(data=self.data,
    deprecated_params = get_deprecated_params_1d(**kwargs)
WARNING:pyFAI.DEPRECATION:<class 'pyFAI.units.UnitFiber'> output_unit is deprecated since pyFAI version 2024.11/12. Use 'unit_oop, unit_ip, vertical_integration instead' instead.
  File "/users/kieffer/workspace-400/pyFAI/build/lib/python3.11/site-packages/pyFAI/test/test_fiber_integrator.py", line 482, in test_integrate1d_horizontal_deprecated_units
    res1d_deprecated = self.fi.integrate1d_grazing_incidence(data=self.data,
    deprecated_params = get_deprecated_params_1d(**kwargs)
WARNING:pyFAI.DEPRECATION:<class 'pyFAI.units.UnitFiber'> integrated_unit is deprecated since pyFAI version 2024.11/12. Use 'unit_oop, unit_ip, vertical_integration instead' instead.
  File "/users/kieffer/workspace-400/pyFAI/build/lib/python3.11/site-packages/pyFAI/test/test_fiber_integrator.py", line 482, in test_integrate1d_horizontal_deprecated_units
    res1d_deprecated = self.fi.integrate1d_grazing_incidence(data=self.data,
    deprecated_params = get_deprecated_params_1d(**kwargs)
WARNING:pyFAI.DEPRECATION:<class 'list'> output_unit_range is deprecated since pyFAI version 2024.11/12. Use 'oop_range, ip_range, vertical_integration instead' instead.
  File "/users/kieffer/workspace-400/pyFAI/build/lib/python3.11/site-packages/pyFAI/test/test_fiber_integrator.py", line 482, in test_integrate1d_horizontal_deprecated_units
    res1d_deprecated = self.fi.integrate1d_grazing_incidence(data=self.data,
    deprecated_params = get_deprecated_params_1d(**kwargs)
WARNING:pyFAI.DEPRECATION:<class 'list'> integrated_unit_range is deprecated since pyFAI version 2024.11/12. Use 'oop_range, ip_range, vertical_integration instead' instead.
  File "/users/kieffer/workspace-400/pyFAI/build/lib/python3.11/site-packages/pyFAI/test/test_fiber_integrator.py", line 482, in test_integrate1d_horizontal_deprecated_units
    res1d_deprecated = self.fi.integrate1d_grazing_incidence(data=self.data,
    deprecated_params = get_deprecated_params_1d(**kwargs)
test_integrate1d_vertical_deprecated_units (pyFAI.test.test_fiber_integrator.TestFiberIntegrator.test_integrate1d_vertical_deprecated_units) ... WARNING:pyFAI.DEPRECATION:<class 'int'> npt_output is deprecated since pyFAI version 2024.11/12. Use 'npt_oop, npt_ip, vertical_integration instead' instead.
  File "/users/kieffer/workspace-400/pyFAI/build/lib/python3.11/site-packages/pyFAI/test/test_fiber_integrator.py", line 455, in test_integrate1d_vertical_deprecated_units
    res1d_deprecated = self.fi.integrate1d_grazing_incidence(data=self.data,
    deprecated_params = get_deprecated_params_1d(**kwargs)
WARNING:pyFAI.DEPRECATION:<class 'int'> npt_integrated is deprecated since pyFAI version 2024.11/12. Use 'npt_oop, npt_ip, vertical_integration instead' instead.
  File "/users/kieffer/workspace-400/pyFAI/build/lib/python3.11/site-packages/pyFAI/test/test_fiber_integrator.py", line 455, in test_integrate1d_vertical_deprecated_units
    res1d_deprecated = self.fi.integrate1d_grazing_incidence(data=self.data,
    deprecated_params = get_deprecated_params_1d(**kwargs)
WARNING:pyFAI.DEPRECATION:<class 'pyFAI.units.UnitFiber'> output_unit is deprecated since pyFAI version 2024.11/12. Use 'unit_oop, unit_ip, vertical_integration instead' instead.
  File "/users/kieffer/workspace-400/pyFAI/build/lib/python3.11/site-packages/pyFAI/test/test_fiber_integrator.py", line 455, in test_integrate1d_vertical_deprecated_units
    res1d_deprecated = self.fi.integrate1d_grazing_incidence(data=self.data,
    deprecated_params = get_deprecated_params_1d(**kwargs)
WARNING:pyFAI.DEPRECATION:<class 'pyFAI.units.UnitFiber'> integrated_unit is deprecated since pyFAI version 2024.11/12. Use 'unit_oop, unit_ip, vertical_integration instead' instead.
  File "/users/kieffer/workspace-400/pyFAI/build/lib/python3.11/site-packages/pyFAI/test/test_fiber_integrator.py", line 455, in test_integrate1d_vertical_deprecated_units
    res1d_deprecated = self.fi.integrate1d_grazing_incidence(data=self.data,
    deprecated_params = get_deprecated_params_1d(**kwargs)
WARNING:pyFAI.DEPRECATION:<class 'list'> output_unit_range is deprecated since pyFAI version 2024.11/12. Use 'oop_range, ip_range, vertical_integration instead' instead.
  File "/users/kieffer/workspace-400/pyFAI/build/lib/python3.11/site-packages/pyFAI/test/test_fiber_integrator.py", line 455, in test_integrate1d_vertical_deprecated_units
    res1d_deprecated = self.fi.integrate1d_grazing_incidence(data=self.data,
    deprecated_params = get_deprecated_params_1d(**kwargs)
WARNING:pyFAI.DEPRECATION:<class 'list'> integrated_unit_range is deprecated since pyFAI version 2024.11/12. Use 'oop_range, ip_range, vertical_integration instead' instead.
  File "/users/kieffer/workspace-400/pyFAI/build/lib/python3.11/site-packages/pyFAI/test/test_fiber_integrator.py", line 455, in test_integrate1d_vertical_deprecated_units
    res1d_deprecated = self.fi.integrate1d_grazing_incidence(data=self.data,
    deprecated_params = get_deprecated_params_1d(**kwargs)
test_integrate2d_deprecated_parameters (pyFAI.test.test_fiber_integrator.TestFiberIntegrator.test_integrate2d_deprecated_parameters) ... WARNING:pyFAI.DEPRECATION:<class 'int'> npt_horizontal is deprecated since pyFAI version 2024.11/12. Use 'npt_ip' instead.
  File "/users/kieffer/workspace-400/pyFAI/build/lib/python3.11/site-packages/pyFAI/test/test_fiber_integrator.py", line 245, in test_integrate2d_deprecated_parameters
    res2d_deprecated = self.fi.integrate2d_grazing_incidence(data=self.data,
    deprecated_params = get_deprecated_params_2d(**kwargs)
WARNING:pyFAI.DEPRECATION:<class 'int'> npt_vertical is deprecated since pyFAI version 2024.11/12. Use 'npt_oop' instead.
  File "/users/kieffer/workspace-400/pyFAI/build/lib/python3.11/site-packages/pyFAI/test/test_fiber_integrator.py", line 245, in test_integrate2d_deprecated_parameters
    res2d_deprecated = self.fi.integrate2d_grazing_incidence(data=self.data,
    deprecated_params = get_deprecated_params_2d(**kwargs)
WARNING:pyFAI.DEPRECATION:<class 'pyFAI.units.UnitFiber'> horizontal_unit is deprecated since pyFAI version 2024.11/12. Use 'unit_ip' instead.
  File "/users/kieffer/workspace-400/pyFAI/build/lib/python3.11/site-packages/pyFAI/test/test_fiber_integrator.py", line 245, in test_integrate2d_deprecated_parameters
    res2d_deprecated = self.fi.integrate2d_grazing_incidence(data=self.data,
    deprecated_params = get_deprecated_params_2d(**kwargs)
WARNING:pyFAI.DEPRECATION:<class 'pyFAI.units.UnitFiber'> vertical_unit is deprecated since pyFAI version 2024.11/12. Use 'unit_oop' instead.
  File "/users/kieffer/workspace-400/pyFAI/build/lib/python3.11/site-packages/pyFAI/test/test_fiber_integrator.py", line 245, in test_integrate2d_deprecated_parameters
    res2d_deprecated = self.fi.integrate2d_grazing_incidence(data=self.data,
    deprecated_params = get_deprecated_params_2d(**kwargs)
WARNING:pyFAI.DEPRECATION:<class 'list'> horizontal_unit_range is deprecated since pyFAI version 2024.11/12. Use 'ip_range' instead.
  File "/users/kieffer/workspace-400/pyFAI/build/lib/python3.11/site-packages/pyFAI/test/test_fiber_integrator.py", line 245, in test_integrate2d_deprecated_parameters
    res2d_deprecated = self.fi.integrate2d_grazing_incidence(data=self.data,
    deprecated_params = get_deprecated_params_2d(**kwargs)
WARNING:pyFAI.DEPRECATION:<class 'list'> vertical_unit_range is deprecated since pyFAI version 2024.11/12. Use 'oop_range' instead.
  File "/users/kieffer/workspace-400/pyFAI/build/lib/python3.11/site-packages/pyFAI/test/test_fiber_integrator.py", line 245, in test_integrate2d_deprecated_parameters
    res2d_deprecated = self.fi.integrate2d_grazing_incidence(data=self.data,
    deprecated_params = get_deprecated_params_2d(**kwargs)
@kif kif added the packaging build, test, package or distribution label Jan 9, 2025
kif added a commit to kif/pyFAI that referenced this issue Jan 10, 2025
@kif kif closed this as completed in #2376 Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
packaging build, test, package or distribution
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant