potamides
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.tomlfor 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81a4a3882907c562d8eef4feb4dd995b4909dc30fdc9dac371e02f99631806ab
|
|
| MD5 |
b797d09860917f32513e20f772bbe47c
|
|
| BLAKE2b-256 |
214e748829fef74f3c3f6537baf2b6c88c64eaeae52fc98bd7be14630ad5ab36
|
Provenance
The following attestation bundles were made for potamides-1.0.1.tar.gz:
Publisher:
cd.yml on xggs-dev/potamides
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
potamides-1.0.1.tar.gz -
Subject digest:
81a4a3882907c562d8eef4feb4dd995b4909dc30fdc9dac371e02f99631806ab - Sigstore transparency entry: 2499272037
- Sigstore integration time:
-
Permalink:
xggs-dev/potamides@f2c5025c32c50e9eed421390b0368a018ac289e0 -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/xggs-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@f2c5025c32c50e9eed421390b0368a018ac289e0 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cda5eb30c9212bb8b58874d7b3046ed147728a367021947f8ed00f12b1844950
|
|
| MD5 |
9fd3e442c718d4fad09361f5b8e93036
|
|
| BLAKE2b-256 |
2cd202832982f118fc2e7639df1247240b1890dea0079c614ac72e085a9716a3
|
Provenance
The following attestation bundles were made for potamides-1.0.1-py3-none-any.whl:
Publisher:
cd.yml on xggs-dev/potamides
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
potamides-1.0.1-py3-none-any.whl -
Subject digest:
cda5eb30c9212bb8b58874d7b3046ed147728a367021947f8ed00f12b1844950 - Sigstore transparency entry: 2499272043
- Sigstore integration time:
-
Permalink:
xggs-dev/potamides@f2c5025c32c50e9eed421390b0368a018ac289e0 -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/xggs-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@f2c5025c32c50e9eed421390b0368a018ac289e0 -
Trigger Event:
release
-
Statement type: