Giter Site home page Giter Site logo

Interface module for FFT methods about pysteps HOT 3 OPEN

pysteps avatar pysteps commented on May 19, 2024
Interface module for FFT methods

from pysteps.

Comments (3)

aperezhortal avatar aperezhortal commented on May 19, 2024

@pulkkins , since the fft method is used in several modules, another alternative to the interface is implementing something similar the matplotliob.use function used to set the plot backends.

The default fft method can be defined in the rcparams by default, and changed by the the user.
Then, fft method can be changed in runtime by calling a function pysteps.set_fft("fft_method").

To force all the modules to use the selected fft, the pysteps modules can make use of a pysteps.fft function that is updated by the set_fft method changing its reference to the corresponding method. When the user select a library that is not installed, an exception is raised.

In this way, the sources that use the fft only need to import it as **from pysteps import fft".

from pysteps.

dnerini avatar dnerini commented on May 19, 2024

I agree with @aperezhortal, we could actually use the rcparms for many of the parameters in pysteps, thus avoiding having every time to pass a long list of arguments when calling a nowcasting method.

from pysteps.

pulkkins avatar pulkkins commented on May 19, 2024

The FFT interface module has been implemented. I'll leave this issue open because using rcparams for choosing the FFT method still needs to be implemented.

from pysteps.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.