laszukdawid / PyEMD

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

AttributeError: 'NoneType' object has no attribute 'shape' when using JitEMD class with CEEMDAN #147

Open mat-moten opened 10 months ago

mat-moten commented 10 months ago

Describe the bug When i'm trying to use JitEMD class on CEEMDAN i get this error.

To Reproduce

import numpy as np

from PyEMD import CEEMDAN
from PyEMD.experimental.jitemd import JitEMD, get_timeline

s = np.random.random(100)
t = get_timeline(len(s), s.dtype)

emd = JitEMD()
ceemdan = CEEMDAN(ext_EMD=emd)
imfs = ceemdan(s, t)

print(imfs)
print(imfs.shape)

Expected behavior i except this code to work like the JIT EEMD example 'jit_eemd_example.py'

Running environment My OS environment is Windows 10 and i'm using EMD-signal version 1.5.2

More context when i print the variable T in thejitemd.py in the function emd i get None I also saw some commented lines between lines 803-814 I suspect the issue comes from here.