Code Monkey home page Code Monkey logo

Comments (3)

kexinrong avatar kexinrong commented on August 16, 2024

Thanks for reporting this! I just pushed a fix for this problem (i was from a previous commit error). Let me know whether the fix works for you.

from fast.

jdimech avatar jdimech commented on August 16, 2024

Thanks for quick reply! It's a step in the right direction but the program is still generating errors for me:

Fingerprinting ../parameters/fingerprint/fp_input_CI_TPC_EHZ.json
/nas/active/ops/nmp/research/jesse/FAST/fingerprint/feature_extractor.py:172: SyntaxWarning: "is" with a literal. Did you mean "=="?
if type is 'MAD':
/nas/active/ops/nmp/research/jesse/FAST/fingerprint/feature_extractor.py:186: SyntaxWarning: "is" with a literal. Did you mean "=="?
if type is 'Zscore':
/nas/active/ops/nmp/research/jesse/FAST/fingerprint/feature_extractor.py:192: SyntaxWarning: "is" with a literal. Did you mean "=="?
if type is 'Zscore':
/nas/active/ops/nmp/research/jesse/FAST/fingerprint/feature_extractor.py:195: SyntaxWarning: "is" with a literal. Did you mean "=="?
elif type is 'MAD':
Traceback (most recent call last):
File "MAD.py", line 10, in
from feature_extractor import *
File "/nas/active/ops/nmp/research/jesse/FAST/fingerprint/feature_extractor.py", line 19, in
from scipy.misc import imresize
ImportError: cannot import name 'imresize' from 'scipy.misc' (/nas/active/ops/nmp/research/jesse/anaconda3/envs/fast/lib/python3.8/site-packages/scipy/misc/init.py)
Traceback (most recent call last):
File "finger_print.py", line 7, in
from feature_extractor import *
File "/nas/active/ops/nmp/research/jesse/FAST/fingerprint/feature_extractor.py", line 19, in
from scipy.misc import imresize
ImportError: cannot import name 'imresize' from 'scipy.misc' (/nas/active/ops/nmp/research/jesse/anaconda3/envs/fast/lib/python3.8/site-packages/scipy/misc/init.py)
sh: ../data/waveformsTPC/fingerprints/TPC.EHZ.fp: No such file or directory
sh: ../data/waveformsTPC/timestamps/TPC.EHZ.ts: No such file or directory
Traceback (most recent call last):
File "gen_fp.py", line 60, in
num_lines = sum(1 for line in open(ts_file))
FileNotFoundError: [Errno 2] No such file or directory: '../data/waveformsTPC/timestamps/ts_Deci5.Pick.19991015130000.CI.TPC.EHZ.sac'
Processing for MAD

I installed the older pre-python 3 version of FAST in a separate conda environment and that command seems to work as it should with no errors or warnings.

Also I think the dependency "sklearn" in requirements.txt should be "scikit-learn", unless I am mistaken?

Thanks again for your help

from fast.

kexinrong avatar kexinrong commented on August 16, 2024

It seems that the imresize function was removed in scipy 1.3.0. You might want to downgrade scipy to an earlier version, or use the new function instead. For reference, I was testing using scipy version 1.1.0.

from fast.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.