Skip to main content

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.12
  • JAX >= 0.5.3
  • For GPU support, install JAX with CUDA support separately
  • See pyproject.toml for full dependency list

Contributing

potamides is made for its users, so contributions of all kinds are welcome and encouraged. You do not need to write code to help: reporting a bug, suggesting a feature, improving the documentation, or sharing a scientific use case are all valuable.

See CONTRIBUTING.md for a full guide, including how to set up a development environment and run the tests. The easiest ways to get involved are through GitHub:

  • Found a bug or have a feature request? Open an issue. Please include enough detail (a minimal example, error messages, and your environment) for us to reproduce the problem.
  • Have a question or an idea to discuss? Start a thread in Discussions.
  • Want to contribute code or documentation? Fork the repository, create a branch for your change, and open a pull request. If you are new to this workflow, GitHub's guide to contributing to projects is a good place to start, and we are happy to help you through the process.

By contributing, you agree to abide by our Code of Conduct.

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.


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.1.tar.gz (230.0 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.1-py3-none-any.whl (40.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: potamides-1.0.1.tar.gz
  • Upload date:
  • Size: 230.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for potamides-1.0.1.tar.gz
Algorithm Hash digest
SHA256 81a4a3882907c562d8eef4feb4dd995b4909dc30fdc9dac371e02f99631806ab
MD5 b797d09860917f32513e20f772bbe47c
BLAKE2b-256 214e748829fef74f3c3f6537baf2b6c88c64eaeae52fc98bd7be14630ad5ab36

See more details on using hashes here.

Provenance

The following attestation bundles were made for potamides-1.0.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: potamides-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 40.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for potamides-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cda5eb30c9212bb8b58874d7b3046ed147728a367021947f8ed00f12b1844950
MD5 9fd3e442c718d4fad09361f5b8e93036
BLAKE2b-256 2cd202832982f118fc2e7639df1247240b1890dea0079c614ac72e085a9716a3

See more details on using hashes here.

Provenance

The following attestation bundles were made for potamides-1.0.1-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.

Release history Release notifications | RSS feed

1.0.2

2 files

This release

1.0.1 This release

2 files

1.0.0

2 files

0.2.0

2 files

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