PyWavelets / pywt

PyWavelets - Wavelet Transforms in Python
http://pywavelets.readthedocs.org
MIT License
2.04k stars 470 forks source link

Getting ValueError while using get_level #587

Closed V18006 closed 3 years ago

V18006 commented 3 years ago

Hello, I am trying to decompose and reconstruct an complex input set of data using pywt.WaveletPacket

  1. The complex input set (x) is from a csv file, I am reading it via pandas x=pandas.io.parsers.read_csv("<filename>.csv",sep=",",index_col=0)

  2. And doing the the following operation wp=pywt.WaveletPacket(data=x, wavelet='db1') .

  3. I am getting corresponding output. But when I want to extract the node path using the code: npa=[node.path for node in wp.get_level(wml, 'natural')] (wml=wp.maxlevel ) I am getting getting an error sswpdr_d1_gh