Closed thurinj closed 3 months ago
Very strange, here is the main problem (some kind of scipy regression?):
ImportError: module 'scipy.signal' has no attribute 'hann'
For the full traceback: https://github.com/uafgeotools/mtuq/actions/runs/8565130022/job/23472731288#step:6:23
There is also a nonfatal typo, from a while back: https://github.com/uafgeotools/mtuq/blob/5ebdd7976ad3b71ae1cb78517caa79b4f4106dcb/data/examples/unpack.bash#L12
tar (child): 20SPECFEM3D_SGT.tgz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
Scipy 1.13.0 was released on April 2nd, so not impossible that the error is coming from there. I'll work on it. I'll also include the unpack fix.
The problem seems to be coming from the dictionary entry in the obspy plugin system. I've tested it by modifying the entry_points.txt
in obspy-1.4.0.dist-info from:
hann = scipy.signal:hann
to
hann = scipy.signal.windows:hann
and the taper function called in process_data.py
is working again.
The new doc for scipy.signal.hann
says it is deprecated and that we should be using scipy.signal.windos.hann
instead.
A quick temporary fix would be to lock the scipy version to <= 1.12.0 and wait for an obspy fix before removing this version constraint.
The problem seems to be coming from the dictionary entry in the obspy plugin system. I've tested it by modifying the
entry_points.txt
in obspy-1.4.0.dist-info from:
hann = scipy.signal:hann
tohann = scipy.signal.windows:hann
and the taper function called in
process_data.py
is working again.The new doc for
scipy.signal.hann
says it is deprecated and that we should be usingscipy.signal.windos.hann
instead. A quick temporary fix would be to lock the scipy version to <= 1.12.0 and wait for an obspy fix before removing this version constraint.
Very helpful thanks!
See PR #252 for complete discussion.
This also comes with minor fixes for the waveform plots.