danilobellini / audiolazy

Expressive Digital Signal Processing (DSP) package for Python
GNU General Public License v3.0
689 stars 74 forks source link

AttributeError: module 'audiolazy.lazy_lpc' has no attribute 'nautocor' #12

Open lfgogogo opened 2 years ago

lfgogogo commented 2 years ago

Hi,i'm using audiolazy to process lpc feature,but i get error below: image AttributeError: module 'audiolazy.lazy_lpc' has no attribute 'nautocor' Anyone knows the reason,please help me.

danilobellini commented 2 years ago

Probably you loaded it with from audiolazy import lazy_lpc as lpc or import audiolazy.lazy_lpc as lpc, but the lpc from the documentation isn't that module. Instead, you should use from audiolazy import lpc (or from audiolazy.lazy_lpc import lpc, which might be required for certain IDE autocomplete features).

lfgogogo commented 2 years ago

I had truely loaded it using import audiolazy.lazy_lpc as lpc,but i also tried from audiolazy import lpc or from audiolazy.lazy_lpc import lpc,i got the same error.

lfgogogo commented 2 years ago

I moved the block which contain strategy-nautocor under the 'code lpc = StrategyDict("lpc")' in lazy_lpc.py,then my code runs,although i don't know the reason.