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.
Metadata
Release files for potamides 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| potamides-1.0.2.tar.gz | 232.1 kB | With provenance | Details for potamides-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| potamides-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for potamides-1.0.2-py3-none-any.whl |
Total release size: 272.6 kB
Release files / potamides-1.0.2.tar.gz
| Download URL | potamides-1.0.2.tar.gz |
|---|---|
| Size | 232.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b2a31439e4234a42ce4ebbd0a05a19efd482e54ff6f805449813ad42ed64350f
|
|
BLAKE2b-256 checksum How to use checksums |
4ce06f6d4b30adc39befec2ff5dda7efc74295b0b8f4bf79da0a959681c4cd90
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 1, 2026.
Transparency logRelease files / potamides-1.0.2-py3-none-any.whl
| Download URL | potamides-1.0.2-py3-none-any.whl |
|---|---|
| Size | 40.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
66dbecf2e296eb2b38de1a7cbfc29cee3574958a2035244fb140ef3428a5fc3a
|
|
BLAKE2b-256 checksum How to use checksums |
880e5580f5f7790883a2b14d1389b1ee20dcaa68b15ddc45da26fea0df09e78d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 1, 2026.
Transparency logSecurity for potamides 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for potamides-1.0.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 1, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.