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

Uploaded Python 3

File details

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

File metadata

  • Download URL: potamides-1.0.2.tar.gz
  • Upload date:
  • Size: 232.1 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.2.tar.gz
Algorithm Hash digest
SHA256 b2a31439e4234a42ce4ebbd0a05a19efd482e54ff6f805449813ad42ed64350f
MD5 a8ed77812738d98a278e8c9ef0968405
BLAKE2b-256 4ce06f6d4b30adc39befec2ff5dda7efc74295b0b8f4bf79da0a959681c4cd90

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: potamides-1.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 66dbecf2e296eb2b38de1a7cbfc29cee3574958a2035244fb140ef3428a5fc3a
MD5 8fcf312cfc37b7db57270f809071d3e5
BLAKE2b-256 880e5580f5f7790883a2b14d1389b1ee20dcaa68b15ddc45da26fea0df09e78d

See more details on using hashes here.

Provenance

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

This release

1.0.2 This release

2 files

1.0.1

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