Closed Fred-Ad closed 1 week ago
Hi @Fred-Ad!
Indeed, HyperSpy have changed this in v2. I'm working on us supporting that version. Until then, the solution is to install scipy < 1.14, where scipy.integrate.simps
is still importable.
The same problem was reported by @yuanh6 in https://github.com/pyxem/kikuchipy/issues/685 and this seemed to fix his issue.
For the moment I changed simps
by simpson
and cumtrpz
by cumulative_trapezoid
in _Hyperspy/_signals/dielectric_function_ and it works.
Hi @Fred-Ad!
Indeed, HyperSpy have changed this in v2. I'm working on us supporting that version. Until then, the solution is to install scipy < 1.14, where
scipy.integrate.simps
is still importable.The same problem was reported by @yuanh6 in #685 and this seemed to fix his issue.
Oh, sorry I missed this one. Thanks Hakon !
Not at all, thanks for reporting! I've made the title more descriptive and pinned the issue so that others who experience the same issue sees it.
@Fred-Ad, kikuchipy v0.11.0 with HyperSpy v2 support is now available from PyPI. So this shouldn't be a problem for newer environments.
In a new enviroonment I have : Kikuchipy 0.10.0, Python 3.12.6, Hyperspy 1.7.6
When loading a master pattern generated by EMsoft,
I have this error :
It seems that scipy changed scipy.integrate.simps to scipy.integrate.simpson since 1.6, but I bet hyperspy would have change it for a while, no ?