Skip to main content

NIFTy, Numerical Information Field Theory, is a versatile library designed to enable the development of signal inference algorithms that operate regardless of the underlying grids and their resolutions.

Project description

NIFTy - Numerical Information Field Theory

pipeline status coverage report

NIFTy project homepage: https://ift.pages.mpcdf.de/nifty

Summary

Description

NIFTy, "Numerical Information Field Theory", is a versatile library designed to enable the development of signal inference algorithms that operate regardless of the underlying grids (spatial, spectral, temporal, …) and their resolutions. Its object-oriented framework is written in Python, although it accesses libraries written in C++ and C for efficiency.

NIFTy offers a toolkit that abstracts discretized representations of continuous spaces, fields in these spaces, and operators acting on these fields into classes. This allows for an abstract formulation and programming of inference algorithms, including those derived within information field theory. NIFTy's interface is designed to resemble IFT formulae in the sense that the user implements algorithms in NIFTy independent of the topology of the underlying spaces and the discretization scheme. Thus, the user can develop algorithms on subsets of problems and on spaces where the detailed performance of the algorithm can be properly evaluated and then easily generalize them to other, more complex spaces and the full problem, respectively.

The set of spaces on which NIFTy operates comprises point sets, n-dimensional regular grids, spherical spaces, their harmonic counterparts, and product spaces constructed as combinations of those. NIFTy takes care of numerical subtleties like the normalization of operations on fields and the numerical representation of model components, allowing the user to focus on formulating the abstract inference procedures and process-specific model properties.

Installation

Requirements

Optional dependencies:

  • ducc0 for faster FFTs, spherical harmonic transforms, and radio interferometry gridding support
  • mpi4py (for MPI-parallel execution)
  • matplotlib (for field plotting)

Sources

The current version of NIFTy7 can be obtained by cloning the repository and switching to the NIFTy_7 branch:

git clone https://gitlab.mpcdf.mpg.de/ift/nifty.git

Installation

In the following, we assume a Debian-based distribution. For other distributions, the "apt" lines will need slight changes.

NIFTy7 and its mandatory dependencies can be installed via:

sudo apt-get install git python3 python3-pip python3-dev
pip3 install --user git+https://gitlab.mpcdf.mpg.de/ift/nifty.git@NIFTy_7

Plotting support is added via:

sudo apt-get install python3-matplotlib

The DUCC0 package is installed via:

pip3 install ducc0

If this library is present, NIFTy will detect it automatically and prefer ducc0.fft over SciPy's FFT. The underlying code is actually the same, but DUCC's FFT is compiled with optimizations for the host CPU and can provide significantly faster transforms.

MPI support is added via:

sudo apt-get install python3-mpi4py

Run the tests

To run the tests, additional packages are required:

sudo apt-get install python3-pytest-cov

Afterwards the tests (including a coverage report) can be run using the following command in the repository root:

pytest-3 --cov=nifty7 test

First Steps

For a quick start, you can browse through the informal introduction or dive into NIFTy by running one of the demonstrations, e.g.:

python3 demos/getting_started_1.py

Acknowledgements

Please consider acknowledging NIFTy in your publication(s) by using a phrase such as the following:

"Some of the results in this publication have been derived using the NIFTy package (https://gitlab.mpcdf.mpg.de/ift/NIFTy)"

and a citation to one of the publications.

Licensing terms

The NIFTy package is licensed under the terms of the GPLv3 and is distributed without any warranty.

Contributors

NIFTy7

NIFTy6

NIFTy5

  • Christoph Lienhard
  • Gordian Edenhofer
  • Jakob Knollmüller
  • Julia Stadler
  • Julian Rüstig
  • Lukas Platz
  • Martin Reinecke
  • Max-Niklas Newrzella
  • Natalia
  • Philipp Arras
  • Philipp Frank
  • Philipp Haim
  • Reimar Heinrich Leike
  • Sebastian Hutschenreuter
  • Silvan Streit
  • Torsten Enßlin

NIFTy4

NIFTy3

  • Daniel Pumpe
  • Jait Dixit
  • Jakob Knollmüller
  • Martin Reinecke
  • Mihai Baltac
  • Natalia
  • Philipp Arras
  • Philipp Frank
  • Reimar Heinrich Leike
  • Matevz Sraml
  • Theo Steininger
  • csongor

NIFTy2

  • Jait Dixit
  • Theo Steininger
  • csongor

NIFTy1

  • Johannes Buchner
  • Marco Selig
  • Theo Steininger

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nifty7-7.4.tar.gz (184.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nifty7-7.4-py3-none-any.whl (226.6 kB view details)

Uploaded Python 3

File details

Details for the file nifty7-7.4.tar.gz.

File metadata

  • Download URL: nifty7-7.4.tar.gz
  • Upload date:
  • Size: 184.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

File hashes

Hashes for nifty7-7.4.tar.gz
Algorithm Hash digest
SHA256 5c5fd46af1efa14f10a5d85ed4bd102454831e0c015ee01470ff051ff4bf7f85
MD5 8f57102929a0e1e0761a4b75e240b68d
BLAKE2b-256 36d0550b255340ae21b70440b3164f7a0477f350bf6f19054b69d24bb1d3b6b9

See more details on using hashes here.

File details

Details for the file nifty7-7.4-py3-none-any.whl.

File metadata

  • Download URL: nifty7-7.4-py3-none-any.whl
  • Upload date:
  • Size: 226.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

File hashes

Hashes for nifty7-7.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b1a9fb5253e86735b6b4058d1f88854b78575a583c98c7d9cbd13371176a33df
MD5 090c0da215cce8e56f34634c5adad70b
BLAKE2b-256 79314e2096998de73dae625274e122df81ef774c0b008b5135fb2281e039715b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page