Skip to main content

Gaussian Random-fields Approximation for Magnetic-fields with Python Algorithms (GRAMPA)

Project description

Gaussian Random-fields Approximation for Magnetic-fields with Python Algorithms (GRAMPA)

Overview

GRAMPA is a Python-based tool for modeling magnetic fields as Gaussian random fields following a specified power spectrum and electron density profile, as described in Murgia et al. (2004) and originally proposed by Tribble (1991). This framework is designed primarily for analyzing Faraday rotation experiments in galaxy clusters but can be applied more generally to other magnetized plasmas, depending on the chosen parameters.

Getting Started

To begin using GRAMPA, refer to the Jupyter notebook examples/example_cluster_Bfield.ipynb, which provides an example workflow to help users understand the implementation and features of the code.

Citation

If you use this code in your research, please cite the following works:

If your work involves lognormal density fluctuations, please also cite:

License

This software is provided under an open-source license. Please check the GitHub repository for details.

Contact

For questions or feedback, please reach out to the authors or open an issue on the Github repository

Developing

Pull requests are welcome for users that want to add features!

GRAMPA uses a set of developer tools that can be installed with

git clone git@github.com:ErikOsinga/grampa.git cd grampa pip install '.[dev]'

These tools can run upon git commit by using

pre-commit install

Versioning

GRAMPA will follow the Conventional Commit Message format: for versioning

  • For a feature (MINOR VERSION UPDATE): (e.g. git commit -m "feat(optional scope): description")
  • For a bugfix (PATCH VERSION UPDATE): (e.g. git commit -m "fix(optional scope): description")
  • For a breaking change (!) (MAJOR VERSION UPDATE): (e.g. git commit -m "featorfix!(optional scope): description")

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

grampa-0.0.7.tar.gz (3.5 MB view details)

Uploaded Source

Built Distribution

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

grampa-0.0.7-py3-none-any.whl (49.2 kB view details)

Uploaded Python 3

File details

Details for the file grampa-0.0.7.tar.gz.

File metadata

  • Download URL: grampa-0.0.7.tar.gz
  • Upload date:
  • Size: 3.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for grampa-0.0.7.tar.gz
Algorithm Hash digest
SHA256 18c77aced4177bf573826a98ba258cf00be64779f36818741ab592bc3c255ba0
MD5 ed96e73dfa03be18eb5dd9c8383d0b31
BLAKE2b-256 e9e180bf09bc9c2a833f95394a67fde8f960eda8d9dc176ca14211efe281767d

See more details on using hashes here.

File details

Details for the file grampa-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: grampa-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 49.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for grampa-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 14ee7e1420680ad1451d491c0362cb140593307c20fcaa57a4ff999a2ef0b5a5
MD5 a9191077bfdbf35ee9cc1724d973da47
BLAKE2b-256 37eb4f2a8594424bcb48abc06f8245885ec4f05f37a072af67c586b032abd0f4

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