periapsis
Package for efficiently modeling and fitting orbits with various parameterizations and priors with support for data from a variety of sources.
Installing
pip
pip install periapsis
Usage Example
from periapsis.data import AstrometryData, RadialVelocityData, JointData
from periapsis.fitting import MCMCFitter
from periapsis.prior import UniformPrior
import numpy as np
fit_data = JointData([
AstrometryData(t_astro, x, y),
RadialVelocityData(t_rv, rv),
])
fitter = MCMCFitter(
nwalkers=32,
niter=10000,
P=UniformPrior(10, 20000), # orbital period, days
t0=UniformPrior(1990, 2050), # time of periapsis passage
a=UniformPrior(0.01, 1000), # semi-major axis, AU
e=UniformPrior(0, 1), # eccentricity
cosi=UniformPrior(-1, 1), # cos(inclination)
omega=UniformPrior(0, 2*np.pi), # argument of periapsis
bigomega=UniformPrior(0, 2*np.pi), # longitude of ascending node
)
result = fitter.fit(fit_data)
Release files for periapsis 0.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| periapsis-0.7.0.tar.gz | 80.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| periapsis-0.7.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 153.2 kB
Release files / periapsis-0.7.0.tar.gz
| Download URL | periapsis-0.7.0.tar.gz |
|---|---|
| Size | 80.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e94912268dfbf254179ffd6899712d9f6fc6a94c327d095e3b17666af0a560f0
|
|
BLAKE2b-256 checksum How to use checksums |
4f8804f86615e75d93ca5461695311138271dacd94b313e3d32ea7bffe3e64cd
|
| 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 Aug 27, 2026.
Transparency logRelease files / periapsis-0.7.0-py3-none-any.whl
| Download URL | periapsis-0.7.0-py3-none-any.whl |
|---|---|
| Size | 73.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e2621a36dcc0953ce6232caf516ab1d55a1c9164177497a0310928cd69776e04
|
|
BLAKE2b-256 checksum How to use checksums |
c5463f5a81a2b87f7ea03707c61b0cf7be58c0285cf389d9866e9a197d93ff07
|
| 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 Aug 27, 2026.
Transparency log