Skip to main content

Constrain gravitational potential with stream curvature

Project description

potamides

Actions Status Documentation Status

PyPI version PyPI platforms

GitHub Discussion

About

potamides is a Python package for constraining gravitational potentials using stellar stream curvature analysis. The name is inspired by Greek ποταμίδες ("potamídes", meaning "river streams"), with the initial "P" representing $\Phi$, the conventional symbol for gravitational potential in astronomy.

Key Features

  • 🌊 Spline-based stream modeling: Smooth parametric representation of stellar streams with cubic spline interpolation
  • 📐 Curvature analysis: Compute geometric properties including tangent vectors, curvature, principal normals, and arc-length
  • 🌌 Gravitational field fitting: Match stream curvature to potential models with customizable halo and disk components
  • JAX-accelerated: Fast, GPU-compatible computations with automatic differentiation and JIT compilation
  • 📊 Likelihood framework: Bayesian inference for potential parameters using curvature-acceleration alignment
  • 📈 Visualization tools: Built-in plotting methods for tracks, geometry vectors, and gravitational fields

Installation

Using pip (recommended)

pip install potamides

From source

git clone https://github.com/xggs-dev/potamides.git
cd potamides
uv pip install -e .

Requirements

  • Python >= 3.11
  • JAX >= 0.5.3
  • For GPU support, install JAX with CUDA support separately
  • See pyproject.toml for full dependency list

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

This package builds upon excellent open-source scientific software:

  • JAX: High-performance numerical computing with automatic differentiation
  • galax: Galactic dynamics in JAX
  • interpax: Interpolation library for JAX
  • Astropy: Community Python library for astronomy
  • unxt: Unitful quantities for JAX

AI Usage Disclosure

Portions of this codebase (including tests and documentation) were refactored and generated with the assistance of Language Models. All AI contributions have been and will continue to be reviewed and verified by the human maintainers.


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

potamides-1.0.0.tar.gz (250.3 kB view details)

Uploaded Source

Built Distribution

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

potamides-1.0.0-py3-none-any.whl (39.9 kB view details)

Uploaded Python 3

File details

Details for the file potamides-1.0.0.tar.gz.

File metadata

  • Download URL: potamides-1.0.0.tar.gz
  • Upload date:
  • Size: 250.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for potamides-1.0.0.tar.gz
Algorithm Hash digest
SHA256 3d6aa5b68e8db9deb49d1b8990715a58cf6920133b7d851b755afdac1aceb69a
MD5 243906d3ee744d265d4dc0f073b45ce2
BLAKE2b-256 f94cf3f5e28b2c294595fdab42851c56a6ac53dbb53dfec7eed9a96e4372bb5e

See more details on using hashes here.

Provenance

The following attestation bundles were made for potamides-1.0.0.tar.gz:

Publisher: cd.yml on xggs-dev/potamides

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

File details

Details for the file potamides-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: potamides-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 39.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for potamides-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1bd1d632f4ca57fb75178ccf6efd6a409d7582dd30813c1cbaf146ca5697282f
MD5 e60bd3adbcb8a59dc5f8990e920b09b5
BLAKE2b-256 6f00449433cc204bd50c1b4159e34e92387dc08d9c6cbc0e82713c1f35825b7d

See more details on using hashes here.

Provenance

The following attestation bundles were made for potamides-1.0.0-py3-none-any.whl:

Publisher: cd.yml on xggs-dev/potamides

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