Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: expected dtype object, got 'numpy.dtype[float32]' #106

Closed
EnriqueGautoSand opened this issue Jun 2, 2024 · 2 comments
Closed

Comments

@EnriqueGautoSand
Copy link

Description

i got this error TypeError: expected dtype object, got 'numpy.dtype[float32]'
at this line wavelet = Wavelet('morlet')

Code for reproduction

import numpy as np
from ssqueezepy import Wavelet, cwt, icwt

np.random.seed(0)
x = np.random.randn(2048)
wavelet = Wavelet('morlet')

Wx, scales = cwt(x, wavelet)
xrec = icwt(Wx, wavelet, scales)

print("Mean Squared Error: %.3g" % np.mean(np.abs(x - xrec)**2))
@OverLordGoldDragon
Copy link
Owner

I couldn't reproduce this. Are you using the latest ssqueezepy?

import ssqueezepy
print(ssqueezepy.__version__)
0.6.5

@OverLordGoldDragon
Copy link
Owner

This shouldn't be happening; please double-check the installation. Feel free to re-open, but with the full error trace included.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants