stanford-futuredata / FAST

End-to-end earthquake detection pipeline via efficient time series similarity search
Apache License 2.0
145 stars 55 forks source link

scipy.misc.imresize is deprecated #25

Open dylanmikesell opened 3 years ago

dylanmikesell commented 3 years ago

FYI, the call to imresize() in feature_extractor.py is not working when I am running this on a mac with Python 3.

This function is deprecated, see this page. I found a replacement in skimage.transform.resize.

I am testing the change now. I am running the Hector Mine experiment with the Python 2.8 version and if my fix works I will submit a pull request.

kexinrong commented 3 years ago

If you downgrade your scipy to an earlier version, the code should still work for Python3. Please feel free to submit a pull request for the fix. In the meantime, I will update the requirements to include an earlier version of scipy.