nyx
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)
| File | Size | Uploaded | |
|---|---|---|---|
| nyx_astro-0.2.1.tar.gz | 2.2 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nyx_astro-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
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 logRelease 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