Skip to content

scipy.integrate.trapz deprecated

Hi,

Looks like scipy.integrate.trapz has been deprecated in the last version of scipy. I need to downgrade scipy to version 1.13.1 to be able to load mbtrack2.

I get the error:

from scipy.integrate import trapz ImportError: cannot import name 'trapz' from 'scipy.integrate'

The name has to be changed to trapezoid to work with never versions of scipy according to this https://github.com/xarray-contrib/xarray-tutorial/issues/243