Coder Social home page Coder Social logo

pynfft's Introduction

PyNFFT - Pythonic bindings around the NFFT library

"The NFFT is a C subroutine library for computing the nonequispaced discrete Fourier transform (NDFT) in one or more dimensions, of arbitrary input size, and of complex data."

The NFFT library is licensed under GPLv2.

This wrapper provides a somewhat Pythonic access to some of the core NFFT library functionalities and is largely inspired from the pyFFTW project developped by Henry Gomersall (http://hgomersall.github.io/pyFFTW/).

The documentation is hosted on pythonhosted, the source code is available on github and the Python package index page is here.

Important

There has been a major API change from version 1.2.x to 1.3 in prevision of version 2.0. Please check the documentation for more information.

The only officially supported platform for version 1.3 is Linux. Support for more platforms is scheduled for the 2.x development tree.

Usage

See the tutorial section of the documentation.

Installation

Support for pip/easy_install has been added via the Python Package Index. The pyNFFT package can be installed with:

pip install pynfft

Installation will fail if the NFFT library is not installed in a system-aware location. A workaround is to first call pip with:

pip install --no-install pynfft

cd to where pip downloaded the package, then build with setup.py:

python setup.py build_ext -I <path_to_include> -L <path_to_lib>
-R <path_to_lib>

and do a final call to pip:

pip install --no-download pynfft

Building

The pyNFFT package can be built from the cloned git repository by calling:

python setup.py build

and then installed with:

python setup.py install

The build process requires Cython in order to generate the cythonized c-files:

python setup.py build_ext --inplace

Build info

The NFFT library has to be compiled with the --enable-openmp flag to allow for the generation of the threaded version of the library. Without it, any attempt to building the project will fail.

Requirements

  • Python 2.7 or greater
  • Numpy 1.6 or greater
  • NFFT library 3.2 or greater, compiled with openMP support
  • (optional) Cython 0.12 or greater

Contributing

See the CONTRIBUTING file.

License

The pyNFFT project is licensed under the GPLv3. See the bundled COPYING file for more details.

pynfft's People

Contributors

ghisvail avatar

Watchers

James Cloos avatar Jake Zhao (Junbo) avatar

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.