laszukdawid / PyEMD

Python implementation of Empirical Mode Decompoisition (EMD) method
https://pyemd.readthedocs.io/
Apache License 2.0
867 stars 224 forks source link

'module' object is not callable, even when I use the example code #167

Closed jelmervangestel closed 1 week ago

jelmervangestel commented 1 week ago

Describe the bug Type error: 'module' object is not callable, even when I use the example code.

To Reproduce `from PyEMD import EMD import numpy as np

s = np.random.random(100) emd = EMD() IMFs = emd(s)`

Expected behavior I expect the example code to run, but it wont

Screenshots image

Running environment Windows 11, PyEMD version 1.0.0., anaconda environment using VS Code (Jupyter Notebook).

Additional context I also don't understand if I should use pyemd or PyEMD, and if i need emd or EMD

laszukdawid commented 1 week ago

Double check installed the package properly it's meant to be pip install EMD-signal (https://pypi.org/project/EMD-signal/). Otherwise, check countless of other similar. I can guarantee that examples work.

jelmervangestel commented 5 days ago

image

I have installed the module just fine. Looking at other Githubs doesnt get me very far, seeing that the most simple example does not work.

laszukdawid commented 4 days ago

You did install a module just fine; but likely not the correct one. Please check others' issues and see if the similar affects you (https://github.com/laszukdawid/PyEMD/issues?q=is%3Aissue+is%3Aclosed).

I just installed pyemd from scratch and used your code as an example. image