Comments (3)
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.
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.
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)
- dt_fp = fp_lag * spec_lag HOT 2
- Fingerprints of waveforms + Jaccard similarity
- Python 3 support HOT 1
- finger print json files HOT 1
- Generating Fingerprint HOT 3
- sklearn vs. scikit-learn HOT 1
- scipy.misc.imresize is deprecated HOT 1
- Question about writing modules HOT 1
- "fingerprint.util" import error in run_simsearch.py HOT 2
- SimilaritySearch.cpp OpenMP Issue HOT 3
- Error in execution of run_simsearch.py HOT 1
- combine_HectorMine_pairs.sh execution error
- Simsearch issue with command make
- About single-station network results
- simsearch_input_HectorMine.sh CDY EHZ error
- ValueError: time data '' does not match format '%y-%m-%dT%H:%M:%S.%f'
- Warning while creating MAD file for stations
- plotting fingerprint
- INPUT FILE for combine_HectorMine_pairs.sh HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fast.