Skip to main content

Fast inference of electromagnetic signals with JAX

Project description

fiesta 🎉

fiesta: Fast Inference of Electromagnetic Signals and Transients with jAx

fiesta logo

NOTE: fiesta is currently under development. We have some basic documentation available under ./docs. Feel free to contact us for any questions.

Installation

fiesta can be installed from pip via

pip install fiesta

Alternatively you can install it directly from source by cloning

git clone git@github.com:nuclear-multimessenger-astronomy/fiestaEM.git

and then run

pip install -e .

in the cloning directory.

Note, that by default only the cpu version of jax is installed. If you want to use GPU acceleration, run

pip install fiesta[gpu]

or install jax[cuda12] as indicated on the jax webpage manually.

Also, due to the file size limit on pypi, the pypi distribution only contains a reduced amount of built-in surrogates. If you want all built-in surrogates, we recommend editable installation from source or to download the .pkl files manually and store them in the surrogates folder of the site-package. You can check which built-in surrogates are available by running

python -c "from fiesta.inference.lightcurve_model import list_built_in_surrogates; list_built_in_surrogates()"

Training surrogate models

To train your own surrogate models, have a look at some of the example scripts in the repository for inspiration. You can find them under ./surrogates/GRB/ and ./surrogates/KN/ in the respective model folders. The example section on training is currently work in progress.

Examples

We have example scripts for running an inference on AT2017gfo + GRB170817A. They can be found in ./examples/inference/. We also plan to add an example section on training surrogates in the future.

Acknowledgements

The logo was created by ideogram AI.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

fiestaem-0.1.0-py3-none-any.whl (98.4 MB view details)

Uploaded Python 3

File details

Details for the file fiestaem-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: fiestaem-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 98.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for fiestaem-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 abf002f1c51e037d0e4fdd3b64fb9aa63313d845912e6bac8c0df72f39ffd7c0
MD5 f491641c7c5cf24cf75e32f585728202
BLAKE2b-256 f695687c9533a26534bbcabadc58675fe48cb460760654eaba7245a9c36205dc

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