Skip to main content

PyDIET

Documentation Tests codecov

PyDIET is CFHT's new Direct Imaging Exposure Time calculator.

Screenshot

Important

PyDIET is still in testing phase. The authors reserve the right to modify, update, or discontinue any aspect of the package at any time without notice. This includes, but is not limited to, changes in instrument models, calibration data, algorithms, or implementation details, which may result in differences in the outputs produced by PyDIET over time.

The authors shall not be liable for any direct, indirect, incidental, consequential, or special damages arising out of or in connection with the use of, or inability to use PyDIET including but not limited to errors in calculations, scientific results, or observational planning.

Installing

pip/pipx

git clone https://github.com/astromatic/pydiet
cd pydiet
pip install .

Docker

To build a Dockerfile for installing pyDiet:

docker build -t pydiet:latest -f docker/Dockerfile .

Run, get a shell, and python venv

docker run -tid --name pydiet pydiet
docker exec -ti pydiet "/bin/bash"
source venv_pydiet/bin/activate

Executing (locally)

pydiet -b

Customizing

PyDIET can easily be adapted to other astronomical imagers by simply editing the data/data_config.toml file in TOML format, and supplying pysynphot-compliant transmission/emission FITS files for the various parts of the instrument chain. Use the provided utils/extract_filter.py script to convert ASCII tables to pysynphot-compliant FITS format.

The web interface can easily be customized to accomodate one or several instruments through query form and result display templates.

Metadata

Release files for PyDIET 1.0.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 PyDIET 1.0.0
File Size Uploaded Provenance Actions
pydiet-1.0.0.tar.gz 85.7 MB With provenance Details for pydiet-1.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 171.5 MB

Release files / pydiet-1.0.0.tar.gz

Download URL pydiet-1.0.0.tar.gz
Size 85.7 MB
Tags Source
SHA-256 checksum
How to use checksums
5b2782cb3aef1ce124f6e7c5e8d9543fd5f6ba34d59a09f142911e05c2190762
BLAKE2b-256 checksum
How to use checksums
2574211072d71ea68d8f85ff3cd03c2d38ca00c52e77fde8540cc276708fee22
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 Oct 14, 2026.

Transparency log

Release files / pydiet-1.0.0-py3-none-any.whl

Download URL pydiet-1.0.0-py3-none-any.whl
Size 85.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
aa10ac069b2ef6f9ffe25b3fe50f1b14d0c56f05929adbce357ad0079a003165
BLAKE2b-256 checksum
How to use checksums
66335777955b902c3d0b275e40bb6e8d85a06583737ccc24bcde5f673565724e
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 Oct 14, 2026.

Transparency log

Security for PyDIET 1.0.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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pydiet-1.0.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 Oct 14, 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