Skip to content

Problems with compute_cc #295

Discussion options

You must be logged in to vote

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…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ThomasLecocq
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants