question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ENH: Determine current fft backend in use (for specified inputs)

See original GitHub issue

Is your feature request related to a problem? Please describe.

I would like a way to know which backend (e.g. scipy’s own fft or pyfftw.interfaces.scipy_fft) would be used when e.g. scipy.fft.fft(some_specified_object) is called. (See below for a proposed API.)

The reason is that I would like my library to use the explicit pyfftw class-based API iff the end user has configured the pyfftw backend on scipy (via scipy.fft.set_backend or a variant thereof), thus reusing the configuration on scipy and avoiding a separate configuration knob on my library.

Describe the solution you’d like.

A possible API would be something like scipy.fft.fft.get_backend(*args, **kwargs) returning the backend that scipy.fft.fft(*args, **kwargs) would dispatch to (as an object compatible with set_backend, so either “scipy” or pyfftw.interfaces.scipy_fft, in the case above).

Describe alternatives you’ve considered.

No response

Additional context (e.g. screenshots, GIFs)

No response

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:15 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
hameerabbasicommented, Nov 17, 2021

@anntzer I’m in the process of releasing wheels for 3.9 and 3.10. If you need examples, there are many in the Quansight-Labs/unumpy repo.

1reaction
anntzercommented, Sep 21, 2021

The point is to have deterministic behavior.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use pypocketfft as FFT backend? #10175 - scipy/scipy - GitHub
With a new module, the API for rfft could match that of numpy, and the function that returns a real array like scipy.fftpack.rfft...
Read more >
scipy.fft.fft — SciPy v1.9.3 Manual
This function computes the 1-D n-point discrete Fourier Transform (DFT) with the efficient Fast Fourier Transform (FFT) algorithm [1]. Parameters. xarray_like.
Read more >
Spectral Line Registration Backend Based on USRP X300 ...
This paper presents implementation of spectrometer based on off-the-shelf software defined radio (SDR) Ettus Research USRP X300 equipped with TwinRX ...
Read more >
ffmpeg-filters(1) - Arch manual pages
Some filters take in input a list of parameters: they are specified after the filter name and an equal sign, and are separated...
Read more >
What's new — MNE 1.2.2 documentation
Brain.get_view() to get the current camera parameters such that ... now also accepts numbers to specify the signal duration used for PSD ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found