Skip to main content

harv

Tests Docs License: MIT Python 3.12+ arXiv


harv logo

harv is a Python package for inferring Keplerian orbital parameters of binary-star and star–exoplanet systems from time series data. Built on JAX, NumPyro, and unxt for units-aware computation.

It's pronounced harvey.

The methods are described in the harv paper (arXiv:XXXX.XXXXX); please cite it if you use harv.

Installation

Requires Python 3.12+. Install from GitHub:

pip install git+https://github.com/adrn/harv

Or, if using uv:

uv add git+https://github.com/adrn/harv

Quickstart

Here are a few entry points to the documentation:

How it works

harv is built on the same tricks as The Joker (Price-Whelan et al. 2017) to make rejection sampling practical for Keplerian orbit inference. It uses a two-level parameterization that separates orbital parameters into:

  1. Nonlinear parameters (period, eccentricity, argument of pericenter, phase) — sampled directly from the prior via rejection sampling, and
  2. Linear parameters (RV semi-amplitude, systemic velocity, astrometric offsets) — these can be analytically marginalized given each set of nonlinear parameters.

This approach makes rejection sampling possible for high-dimensional parameter spaces by reducing the effective dimensionality of the sampling problem. The main utility of the rejection sampler is to map out the multi-modal posterior distribution of orbital parameters in the low signal-to-noise or low number of observations regime, which is challenging or impossible for MCMC methods. The samples returned by the rejection sampler are exact draws from the posterior distribution, and can be used to initialize MCMC samplers for further refinement, if necessary.

All objects are Equinox modules (valid JAX pytrees), so they work seamlessly with jax.jit, jax.vmap, and jax.grad.

Documentation

The full documentation is available at: harvey.readthedocs.io.

License

harv is free software released under the MIT License. See LICENSE for details.

Metadata

Release files for harv 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for harv 0.1.0
File Size Uploaded Provenance Actions
harv-0.1.0.tar.gz 372.2 kB With provenance Details for harv-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for harv 0.1.0
File Interpreter ABI Platform Actions
harv-0.1.0-py3-none-any.whl Python 3 none any Details for harv-0.1.0-py3-none-any.whl

Total release size: 630.7 kB

Release files / harv-0.1.0.tar.gz

Download URL harv-0.1.0.tar.gz
Size 372.2 kB
Tags Source
SHA-256 checksum
How to use checksums
36922a0fb25edad7a589d84ca2e40930b93ad552ee9dad12607103ba1bb67b80
BLAKE2b-256 checksum
How to use checksums
79ecc2c5eaffe6d1612411ba519e30b1b62a6d874ad6547507f33e5f1230a4c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 25, 2026.

Transparency log

Release files / harv-0.1.0-py3-none-any.whl

Download URL harv-0.1.0-py3-none-any.whl
Size 258.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aea1e1648bf2ade69da7d801b994aa10791868aa3710f2a590ebd38f9abd7b37
BLAKE2b-256 checksum
How to use checksums
66bb88f4359ed50d4c1b6eb9988fc02f5a68ed3af909c01947df79d7cb2f5b5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 25, 2026.

Transparency log

Security for harv 0.1.0

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for harv-0.1.0.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 Nov 25, 2026.

Transparency log

A 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.

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