pikipity / Toolbox-for-Adaptive-Fourier-Decomposition

Toolbox of adaptive Fourier decomposition (AFD) including MATLAB and Python versions. The MAFD has been published in IEEE TSP (DOI: 10.1109/TSP.2022.3143723)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

_io.py "cannot import name 'object' from 'numpy'

smoussally opened this issue · comments

The first line in file _io.py
from numpy import ndarray, object creates an importation error when running sample codes.
ImportError: cannot import name 'object' from 'numpy'
Removing the import of module object solves the issue.

Sorry for replying you late. I do not suggest you removing "object" because such operation will make some functions error. You can use numpy v1.23. In the later version, we will try to fix this problem