Skip to main content

nyx

Python License Ruff

Differentiable Simulation of Night Sky Background in Imaging Atmospheric Cherenkov Telescopes

nyx models the night sky background for IACT telescopes, enabling parameter estimation through HMC or gradient-based optimization.

Features

  • Fully differentiable computation for gradient-based optimization and Bayesian inference using JAX
  • Zodiacal light, airglow, lunar brightness, and stellar catalogs are supported as emitters
  • Effective aperture instrument models with spectral response

Installation

pip install git+https://github.com/GerritRo/nyx/

For development:

git clone https://github.com/GerritRo/nyx.git
cd nyx
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"

Documentation

Full documentation and examples are available at: https://gerritro.github.io/nyx/

Building Documentation Locally

pip install -e ".[docs]"
cd docs && make html

License

BSD-3-Clause License - see LICENSE for details.

Citation

If you use nyx in your research, please cite this repository.

Data Attribution

nyx bundles and downloads scientific datasets produced by third parties (Pickles 1998, Leinert et al. 1998, the ROLO lunar model, ESO SkyCalc, Gaia DR3, STScI CALSPEC, and the SVO Filter Profile Service). These datasets carry their own citation and acknowledgement requirements. If you publish results obtained with nyx, cite the datasets you used as described in licenses/DATA.rst.

Metadata

Release files for nyx-astro 0.2.1

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

Source distribution (sdist)

Source distribution for nyx-astro 0.2.1
File Size Uploaded Provenance Actions
nyx_astro-0.2.1.tar.gz 2.2 MB With provenance Details for nyx_astro-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nyx-astro 0.2.1
File Interpreter ABI Platform Actions
nyx_astro-0.2.1-py3-none-any.whl Python 3 none any Details for nyx_astro-0.2.1-py3-none-any.whl

Total release size: 4.4 MB

Release files / nyx_astro-0.2.1.tar.gz

Download URL nyx_astro-0.2.1.tar.gz
Size 2.2 MB
Tags Source
SHA-256 checksum
How to use checksums
7e89d91a485a02cdd961fcf4b2bdbf6d5541dc4705b6b96b5c8149845ba92a8d
BLAKE2b-256 checksum
How to use checksums
3f40ed6fd970e097c043b38bfa99e39fe5a5e917bc8fb13e4e48fddc3d4dd529
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 Sep 27, 2026.

Transparency log

Release files / nyx_astro-0.2.1-py3-none-any.whl

Download URL nyx_astro-0.2.1-py3-none-any.whl
Size 2.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
1028c139371e451c33fe6bcdb628f65827dca001948cd80fe0f505e42630e260
BLAKE2b-256 checksum
How to use checksums
e6a68a595edd43c2d817490fc60f9ee0628a1646dcbad2a3c8408611b744182e
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 Sep 27, 2026.

Transparency log

Security for nyx-astro 0.2.1

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 nyx_astro-0.2.1.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 Sep 27, 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.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files Full provenance

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