Skip to content

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

@Freshfresh-Hand

Description

@Freshfresh-Hand

According to the SciPy release notes, the trapz function has been removed in SciPy 1.14 in favour of trapezoid.

The following replacement in Mie.py and Inverse.py works for me:

from scipy.integrate import trapezoid as trapz

instead of
from scipy.integrate import trapz

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions