We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa9e5bc commit de6f956Copy full SHA for de6f956
1 file changed
mkl_fft/interfaces/numpy_fft.py
@@ -24,9 +24,6 @@
24
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
27
-# Added for completing the namespaces
28
-from numpy.fft import fftfreq, fftshift, ifftshift, rfftfreq
29
-
30
# pylint: disable=no-name-in-module
31
from ._numpy_fft import (
32
fft,
@@ -60,8 +57,11 @@
60
57
"irfftn",
61
58
"hfft",
62
59
"ihfft",
63
- "fftshift",
64
- "ifftshift",
65
- "fftfreq",
66
- "rfftfreq",
67
]
+
+# It is important to put the following import here to avoid circular imports
+# when patching numpy with mkl_fft
+# Added for completing the namespaces
+from numpy.fft import fftfreq, fftshift, ifftshift, rfftfreq
+__all__ += ["fftshift", "ifftshift", "fftfreq", "rfftfreq"]
0 commit comments