Skip to content

Commit cb30716

Browse files
committed
1 parent 90af167 commit cb30716

70 files changed

Lines changed: 255 additions & 253 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/main/_downloads/08c44fd02fe5378fc05e9aecf2e433ce/phasorpy_phasor_from_signal.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"\n# Benchmark phasor_from_signal\n\nBenchmark the ``phasor_from_signal`` function.\n\nThe :py:func:`phasorpy.phasor.phasor_from_signal` function to calculate phasor\ncoordinates from time-resolved or spectral signals can operate in two modes:\n\n- using an internal Cython function optimized for calculating a small number\n of harmonics, optionally using multiple threads.\n\n- using a real forward Fast Fourier Transform (FFT), ``numpy.fft.rfft`` or\n a drop-in replacement function like ``scipy.fft.rfft``\n or ``mkl_fft._numpy_fft.rfft``.\n\nThis tutorial compares the performance of the two modes.\n\nImport required modules and functions:\n"
7+
"\n# Benchmark phasor_from_signal\n\nBenchmark the ``phasor_from_signal`` function.\n\nThe :py:func:`phasorpy.phasor.phasor_from_signal` function to calculate phasor\ncoordinates from time-resolved or spectral signals can operate in two modes:\n\n- using an internal Cython function optimized for calculating a small number\n of harmonics, optionally using multiple threads.\n\n- using a real forward Fast Fourier Transform (FFT), ``numpy.fft.rfft`` or\n a drop-in replacement function like ``scipy.fft.rfft``\n or ``mkl_fft.interfaces.numpy_fft.rfft``.\n\nThis tutorial compares the performance of the two modes.\n\nImport required modules and functions:\n"
88
]
99
},
1010
{
@@ -15,7 +15,7 @@
1515
},
1616
"outputs": [],
1717
"source": [
18-
"from timeit import timeit\n\nimport numpy\nfrom numpy.fft import rfft as numpy_fft # noqa\n\nfrom phasorpy.phasor import phasor_from_signal # noqa\nfrom phasorpy.utils import number_threads\n\ntry:\n from scipy.fft import rfft as scipy_fft\nexcept ImportError:\n scipy_fft = None\n\ntry:\n from mkl_fft._numpy_fft import rfft as mkl_fft\nexcept ImportError:\n mkl_fft = None"
18+
"from timeit import timeit\n\nimport numpy\nfrom numpy.fft import rfft as numpy_fft # noqa\n\nfrom phasorpy.phasor import phasor_from_signal # noqa\nfrom phasorpy.utils import number_threads\n\ntry:\n from scipy.fft import rfft as scipy_fft\nexcept ImportError:\n scipy_fft = None\n\ntry:\n from mkl_fft.interfaces.numpy_fft import rfft as mkl_fft\nexcept ImportError:\n mkl_fft = None"
1919
]
2020
},
2121
{
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

docs/main/_downloads/4b100735f1ce295b1a5b489b3a2ed128/phasorpy_phasor_from_signal.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
1313
- using a real forward Fast Fourier Transform (FFT), ``numpy.fft.rfft`` or
1414
a drop-in replacement function like ``scipy.fft.rfft``
15-
or ``mkl_fft._numpy_fft.rfft``.
15+
or ``mkl_fft.interfaces.numpy_fft.rfft``.
1616
1717
This tutorial compares the performance of the two modes.
1818
@@ -34,7 +34,7 @@
3434
scipy_fft = None
3535

3636
try:
37-
from mkl_fft._numpy_fft import rfft as mkl_fft
37+
from mkl_fft.interfaces.numpy_fft import rfft as mkl_fft
3838
except ImportError:
3939
mkl_fft = None
4040

Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)