Problems with compute_cc #295
-
After installing MSNOISE in a UBUNTU virtual machine, I have loaded my SeisComP structured data (SDS) in db and I created the cross-correlation jobs correctly from data_availability.. (msnoise) sysop at ogcvm01:~$ msnoise -v compute_cc The path to my data is correct, but I seem to have a problem. You can help? Thaks |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
The /nfs/respaldo1/CANARIAS/2017/ES/EGOM/HHZ.D/ES.EGOM..HHZ.D.2017.039 loads correctly in obspy when you open it directly? |
Beta Was this translation helpful? Give feedback.
-
Dear Thomas, we discovered the problem. In /opt/conda/envs/msnoise/lib/python3.11/site-packages/msnoise/preprocessing.py, line 144, the miniseed file is opened with the option "dtype=np.float". Since the numpy installed version is 1.24.2 the above datatype is no longer valid (https://stackoverflow.com/questions/74844262/how-can-i-solve-error-module-numpy-has-no-attribute-float-in-python) and must be replaced with the python's builtin float. Changing all the ocurrences in all the affected files did the trick. Another issue we found is in "api.py" regarding the import of scipy versions:
The installed version of scipy is 1.10.0 and the version check by string comparation is not valid Using:
and changing all the references of sf to sff in the affected files solved the problem. Best regards, Jaime |
Beta Was this translation helpful? Give feedback.
-
Thanks Jaime, thanks thomas. |
Beta Was this translation helpful? Give feedback.
-
Hey, thanks for finding the solution. Indeed, 1.6.x branch is getting old and I should release msnoise2 that is ready somehow in the master branch ... |
Beta Was this translation helpful? Give feedback.
Dear Thomas,
we discovered the problem.
In /opt/conda/envs/msnoise/lib/python3.11/site-packages/msnoise/preprocessing.py, line 144, the miniseed file is opened with the option "dtype=np.float".
Since the numpy installed version is 1.24.2 the above datatype is no longer valid (https://stackoverflow.com/questions/74844262/how-can-i-solve-error-module-numpy-has-no-attribute-float-in-python) and must be replaced with the python's builtin float.
Changing all the ocurrences in all the affected files did the trick.
Another issue we found is in "api.py" regarding the import of scipy versions:
if sp.__version__ < "1.4.0"
The installed version of scipy is 1.10.0 and the version check by string comp…