Metadata-Version: 2.4
Name: ad-sn-popsyn
Version: 0.1.0
Summary: Differentiable supernova-kick binary population and trajectory models
Author: R. O'Shaughnessy
License-Expression: GPL-3.0-only
Requires-Python: >=3.11
Description-Content-Type: text/x-rst
License-File: LICENSE
License-File: NOTICE
Requires-Dist: jax>=0.4.26
Requires-Dist: numpy>=1.26
Requires-Dist: scipy>=1.11
Provides-Extra: test
Requires-Dist: pytest>=8; extra == "test"
Provides-Extra: prior-tools
Requires-Dist: matplotlib>=3.8; extra == "prior-tools"
Dynamic: license-file

ad-sn-popsyn
============

Differentiable supernova-kick calculations for binary trajectories and
selection-aware population inference. The package provides orbital and
survival kernels, two-supernova endpoint likelihoods, progenitor priors,
and readers for separately generated pulsar survey response tables.

Install with ``python -m pip install ad-sn-popsyn``. Enable JAX float64
before using the trajectory calculations. The following example computes
the orbital state at a specified phase::

    import jax
    jax.config.update("jax_enable_x64", True)
    from ad_sn_popsyn import orbit

    separation, radial_speed, tangential_speed = orbit.phase_state(
        10.0, 0.0, 0.0, 4.0
    )

This research release implements components used in Paper 1. Full paper
reproduction requires additional campaigns, native survey inputs and
archives. For new progenitor populations or surveys, verify the physical
support, selection normalization and numerical convergence.

If you use this software, please cite R. O'Shaughnessy,
“Selection-aware inference of supernova kicks” (Paper 1), and give
the software version and source revision. Please consult with us before
using the software for a scientific publication.

Version 0.1.0 corresponds to Paper 1 source revision
``c4824eebc47acb1465e58fe9d4e8aea029717f34``. See LICENSE and NOTICE for
licensing and upstream attribution.
