Bug#1079787: python-fluids: tests fail with scipy 1.14

Drew Parsons dparsons at debian.org
Tue Aug 27 12:44:30 BST 2024


Source: python-fluids
Version: 1.0.22-2
Severity: normal

python-fluids is failing tests with scipy 1.14 (from experimental)
due to a change in API.

The problem is fixed in the latest upstream release.


The error looks like

 84s __________________________ test_integrate_drag_sphere __________________________
 84s 
 84s     @pytest.mark.scipy
 84s     def test_integrate_drag_sphere():
 84s >       ans = integrate_drag_sphere(D=0.001, rhop=2200., rho=1.2, mu=1.78E-5, t=0.5, V=30.0, distance=True)
 84s 
 84s tests/test_drag.py:177: 
 84s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
 84s 
 84s D = 0.001, rhop = 2200.0, rho = 1.2, mu = 1.78e-05, t = 0.5, V = 30.0
 84s Method = None, distance = True
 84s 
 84s     def integrate_drag_sphere(D, rhop, rho, mu, t, V=0, Method=None,
 84s                               distance=False):
 84s         r'''Integrates the velocity and distance traveled by a particle moving
 84s         at a speed which will converge to its terminal velocity.
 84s     
 84s         Performs an integration of the following expression for acceleration:
 ...
 84s         # Delayed import of necessaray functions
 84s >       from scipy.integrate import odeint, cumtrapz
 84s E       ImportError: cannot import name 'cumtrapz' from 'scipy.integrate' (/usr/lib/python3/dist-packages/scipy/integrate/__init__.py)
 84s 
 84s /usr/lib/python3/dist-packages/fluids/drag.py:1507: ImportError



Full log at
https://ci.debian.net/packages/p/python-fluids/unstable/amd64/51043564/



More information about the debian-science-maintainers mailing list