Skip to main content

A lightweight JAX-only version of redback for electromagnetic transient analysis

Project description

Redback-JAX

A lightweight JAX-only version of the redback electromagnetic transient analysis package.

Overview

Redback-JAX provides JAX-based implementations for electromagnetic transient modeling and Bayesian inference, focusing on performance and automatic differentiation capabilities. This package is designed to be a lightweight alternative to the full redback package, leveraging JAX for fast computation and gradient-based inference.

Features

  • JAX-based models: Fast, differentiable implementations of electromagnetic transient models
  • Bayesian inference: Integration with modern probabilistic programming libraries
  • Automatic differentiation: Gradient-based optimization and sampling
  • GPU/TPU support: Leverage JAX's hardware acceleration capabilities

Installation

From PyPI (when available)

pip install redback-jax

From source

git clone https://github.com/nikhil-sarin/redback-jax.git
cd redback-jax
pip install -e .

With optional dependencies

pip install redback-jax[all]

Quick Start

import redback_jax

# Example usage will be added as the package develops

Dependencies

Core dependencies:

  • JAX (>= 0.4.0)
  • NumPy (>= 1.20.0)
  • SciPy (>= 1.7.0)
  • Pandas (>= 1.3.0)
  • Matplotlib (>= 3.5.0)
  • Astropy (>= 4.0.0)

Optional dependencies (install with [all]):

  • NumPyro (>= 0.12.0)
  • BlackJAX (>= 1.0.0)
  • Optax (>= 0.1.0)

Contributing

Contributions are welcome! Please see the contributing guidelines in the main redback repository for details.

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.

Acknowledgments

This package is based on the original redback package. Please cite the original redback paper if you use this software in your research.

Related Projects

  • redback - The full-featured electromagnetic transient analysis package
  • JAX - The underlying numerical computing library

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

redback_jax-0.1.0.tar.gz (18.1 kB view details)

Uploaded Source

Built Distribution

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

redback_jax-0.1.0-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

Details for the file redback_jax-0.1.0.tar.gz.

File metadata

  • Download URL: redback_jax-0.1.0.tar.gz
  • Upload date:
  • Size: 18.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for redback_jax-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6dbcb0f47979b62c00c4f6456f6c96f89be7f1f9833f40f0dc740620a4ddb61d
MD5 eff80b18433bafe879ccd22ada49d13b
BLAKE2b-256 7aab484519ad38aa0bddffa84e504f8e07233a65aca40bea40d435d2e096c02c

See more details on using hashes here.

Provenance

The following attestation bundles were made for redback_jax-0.1.0.tar.gz:

Publisher: publish.yml on nikhil-sarin/redback-jax

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: redback_jax-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for redback_jax-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e070f07efac82546634724fec00ee19935eb89a5bd895ae710843668a3b586f0
MD5 979d2b276f4dfb4f1d16daec535ab6bc
BLAKE2b-256 792736cd1f0d930b8d17c688ee8bfca081b4b6ec7a4cb453f77077faddaa827d

See more details on using hashes here.

Provenance

The following attestation bundles were made for redback_jax-0.1.0-py3-none-any.whl:

Publisher: publish.yml on nikhil-sarin/redback-jax

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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