Skip to main content

Welcome to parafields

License GitHub Workflow Status Documentation Status codecov

parafields is a Python package that provides Gaussian random fields based on circulant embedding. Core features are:

  • Large variety of covariance functions: exponential, Gaussian, Matérn, spherical and cubic covariance functions, among others
  • Generation of distributed fields using domain decomposition and MPI through mpi4py
  • Uses numpy data structures to ease integration with the Python ecosystem of scientific software
  • Optional caching of matrix-vector products

parafields implements these features through Python bindings to the parafields-core C++ library. The following options are supported in the backend but not yet in the Python bindings:

  • axiparallel and full geometric anisotropy
  • value transforms like log-normal, folded normal, or sign function (excursion set)
  • Coarsening and refinement of random fields for multigrid/-scale methods

Usage

This is a minimal usage example of the parafields package:

Minimum usage example

For more examples, check out the parafields documentation.

Installation

parafields is available from PyPI and can be installed using pip:

python -m pip install parafields

This will install a sequential, pre-compiled version of parafields. In order to use parafields in an MPI-parallel context, you need to instead build the package from source:

python -m pip install --no-binary parafields -v parafields

This will build the package from source and link against your system MPI.

Additionally, parafields defines the following optional dependency sets:

  • jupyter: All requirements for an interactive Jupyter interface to parafields
  • tests: All requirements for running parafields's unit tests
  • docs: All requirements for buildings parafields's Sphinx documentation

These optional dependencies can be installed by installing e.g. parafields[jupyter].

Acknowledgments

The parafields-core C++ library is work by Ole Klein whichis supported by the federal ministry of education and research of Germany (Bundesministerium für Bildung und Forschung) and the ministry of science, research and arts of the federal state of Baden-Württemberg (Ministerium für Wissenschaft, Forschung und Kunst Baden-Württemberg).

The Python bindings are realized by the Scientific Software Center of Heidelberg University. The Scientific Software Center is funded as part of the Excellence Strategy of the German Federal and State Governments.

Metadata

Release files for parafields 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for parafields 0.1.0
File Size Uploaded Provenance Actions
parafields-0.1.0.tar.gz 22.8 kB Without provenance Details for parafields-0.1.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for parafields 0.1.0
File Actions
parafields-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details for parafields-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
parafields-0.1.0-cp311-cp311-macosx_10_9_x86_64.whl CPython 3.11 CPython 3.11 macOS 10.9+ x86-64 Details for parafields-0.1.0-cp311-cp311-macosx_10_9_x86_64.whl
parafields-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details for parafields-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
parafields-0.1.0-cp310-cp310-macosx_10_9_x86_64.whl CPython 3.10 CPython 3.10 macOS 10.9+ x86-64 Details for parafields-0.1.0-cp310-cp310-macosx_10_9_x86_64.whl
parafields-0.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ x86-64 Details for parafields-0.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
parafields-0.1.0-cp39-cp39-macosx_10_9_x86_64.whl CPython 3.9 CPython 3.9 macOS 10.9+ x86-64 Details for parafields-0.1.0-cp39-cp39-macosx_10_9_x86_64.whl
parafields-0.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.17+ x86-64 Details for parafields-0.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
parafields-0.1.0-cp38-cp38-macosx_10_9_x86_64.whl CPython 3.8 CPython 3.8 macOS 10.9+ x86-64 Details for parafields-0.1.0-cp38-cp38-macosx_10_9_x86_64.whl

Total release size: 23.8 MB

Release files / parafields-0.1.0.tar.gz

Download URL parafields-0.1.0.tar.gz
Size 22.8 kB
Tags Source
SHA-256 checksum
How to use checksums
9940be9db23feaa394375cc5ec2ca60c795b2781ec496456b81a095f74afcadc
BLAKE2b-256 checksum
How to use checksums
c74f14e0751824ccf3cb6b41bbd681c010d395d9164ab178135518e604b9a34c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.14

Release files / parafields-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL parafields-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 3.0 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
570cee4f47c18b7986b1c817fc6b9a53e74c8e89eae3297a8ee803eaebd2ac4c
BLAKE2b-256 checksum
How to use checksums
677bcd8696c258d471e045583bf6c27a4ec53fe9c2d0c8e6cb9a87ea6cc62c9e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.14

Release files / parafields-0.1.0-cp311-cp311-macosx_10_9_x86_64.whl

Download URL parafields-0.1.0-cp311-cp311-macosx_10_9_x86_64.whl
Size 2.9 MB
Tags CPython 3.11 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
9782f1a1bea96921a7b8434e3983f99cf78b6fe03c8616452791275c11d40a89
BLAKE2b-256 checksum
How to use checksums
0237b6ee6b6523e58da62131031ce0548cbb62078c8449dd9d8bbe988a45281e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.14

Release files / parafields-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL parafields-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 3.0 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
1bf16c489f74900c2156d62a6c6c8125a8106509e6e406db8972cbc53e0d78f0
BLAKE2b-256 checksum
How to use checksums
9b88c039bdbe40f7a5c65186dd511da66589faa0e546fa0588a3aa57191d456b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.14

Release files / parafields-0.1.0-cp310-cp310-macosx_10_9_x86_64.whl

Download URL parafields-0.1.0-cp310-cp310-macosx_10_9_x86_64.whl
Size 2.9 MB
Tags CPython 3.10 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
ed5041735ce1ee42de383c715054860f5c74403f6359ae2f5e5e05d14388b382
BLAKE2b-256 checksum
How to use checksums
e20456b87d292e1049c354905c04b3e2118e82e0278835dd304e134185a21f7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.14

Release files / parafields-0.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL parafields-0.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 3.0 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
2e45288d460601e9dc42df545863482ca3f1e21876b0a5940a1494e10f17b9af
BLAKE2b-256 checksum
How to use checksums
9603eca055b33c5214e2159d16360a24f6826b8847505db7b7089fe9db581dd9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.14

Release files / parafields-0.1.0-cp39-cp39-macosx_10_9_x86_64.whl

Download URL parafields-0.1.0-cp39-cp39-macosx_10_9_x86_64.whl
Size 2.9 MB
Tags CPython 3.9 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
421cd8733a84f9a1e3c25b86f8be3151ee39d9ca8a61e4c7b7d972ec015e448e
BLAKE2b-256 checksum
How to use checksums
920650f65a3e82a42326f4e178bc13dbfe492805cf1c25840af4c0fae4a7bcb7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.14

Release files / parafields-0.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL parafields-0.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 3.0 MB
Tags CPython 3.8 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
6ff9618f061a819fc16ef862c11714b962014a3644b2eea455f4a3baab73d83b
BLAKE2b-256 checksum
How to use checksums
95554e1a1ceb50e3532fac12054fa48fdc6af7785bfcca4fd63be7d7b133aecb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.14

Release files / parafields-0.1.0-cp38-cp38-macosx_10_9_x86_64.whl

Download URL parafields-0.1.0-cp38-cp38-macosx_10_9_x86_64.whl
Size 2.9 MB
Tags CPython 3.8 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
0c512e42ff148d618d3d341c0ba9fee4788599bec96b234f9a06d4390227ffdc
BLAKE2b-256 checksum
How to use checksums
4069b07d53fec13a7d584e34a8ae6d1d2ddb08a8a6d9e112f18ac66ee375ddd9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.14

Security for parafields 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page