Constrain gravitational potential with stream curvature
Project description
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.11
- JAX >= 0.5.3
- For GPU support, install JAX with CUDA support separately
- See
pyproject.tomlfor 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
Project details
Release history Release notifications | RSS feed
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-0.2.0.tar.gz.
File metadata
- Download URL: potamides-0.2.0.tar.gz
- Upload date:
- Size: 251.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dafdc2399d32f528c4f99754009a78703846fc207d33f916b3e84a227431a33d
|
|
| MD5 |
6a0b8e970ac87d8b9d9d97a10c6ab4eb
|
|
| BLAKE2b-256 |
a9bbaeadc6ec35f2da50eff8ffcabfa726d1d374096bbf771330fc2cb408c97e
|
Provenance
The following attestation bundles were made for potamides-0.2.0.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-0.2.0.tar.gz -
Subject digest:
dafdc2399d32f528c4f99754009a78703846fc207d33f916b3e84a227431a33d - Sigstore transparency entry: 871697627
- Sigstore integration time:
-
Permalink:
xggs-dev/potamides@c3e87e96e644c83d8913a34ab82d86f99e76eaa0 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/xggs-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@c3e87e96e644c83d8913a34ab82d86f99e76eaa0 -
Trigger Event:
release
-
Statement type:
File details
Details for the file potamides-0.2.0-py3-none-any.whl.
File metadata
- Download URL: potamides-0.2.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.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7989a017407665afdffd94b39e2e3d190f49c64162b5e74a44354fa12784622
|
|
| MD5 |
8a778a8491a86560fd7581531ff30045
|
|
| BLAKE2b-256 |
c9d72938023e9a00082ac3af0dbdfc411207a303d136b668c37b18e317f20e49
|
Provenance
The following attestation bundles were made for potamides-0.2.0-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-0.2.0-py3-none-any.whl -
Subject digest:
e7989a017407665afdffd94b39e2e3d190f49c64162b5e74a44354fa12784622 - Sigstore transparency entry: 871697635
- Sigstore integration time:
-
Permalink:
xggs-dev/potamides@c3e87e96e644c83d8913a34ab82d86f99e76eaa0 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/xggs-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@c3e87e96e644c83d8913a34ab82d86f99e76eaa0 -
Trigger Event:
release
-
Statement type: