Skip to main content

💡 MAJIS QL - Internal Calibration Unit

Quality Gate Status

Documentation: https://majis_sgs.io.ias.u-psud.fr/quick-look/majis-ql-icu

This package contains a collection of notebooks to analysis Majis Internal Calibration Unit (ICU) observations performed during the different mission payload checkouts (PC) to check the behavior of the instrument and its stability over time.

These analyses consist of 7 different types:

The full collection of the observations types though the different PC can be found here.

Installation

This package is not (yet) available on PyPI, it have to be pull from IAS nexus registry:

If you use uv you can add it to your pyproject.toml like this:

dependencies = [
    "majis-ql-icu>=1.0.0",
]

[tool.uv.sources]
majis-ql-icu = { index = "ias" }

[[tool.uv.index]]
name = "ias"
url = "https://repositories.forge.ias.u-psud.fr/repository/pipy-ias/simple"
explicit = true

CLI usage

uv run icu --help
ICU command line interface

positional arguments:
  PC*_ICU_*             ICU name(s), eg. `PC1_N_ICU_HOT`. Multiple values can be provided. If no value is provided all the data containing the following pattern `PC*_ICU_*` will be considered.

options:
  -h, --help            show this help message and exit
  -d, --data folder     Majis data root folder. It can be defined globally with `DATA_MAJIS_ICU` env variable. Default without `DATA_MAJIS_ICU` is the current working directory.
  -e, --exclude [PC*_ICU_* ...]
                        Exclude some ICU present in the Majis data root folder if no explicit ICU is provided. Default: []
  -o, --output folder   Custom output folder. Default: `output/`. If the folder does not exists, it will be created.
  --only background|dark|lamp|blackbody|lamp-vs-blackbody|slit|straylight|contamination|read-reset [background|dark|lamp|blackbody|lamp-vs-blackbody|slit|straylight|contamination|read-reset ...]
                        Run only a subsetDefault: []

Example of usage:

uv run icu --data /data/majis/
⚙️ ICU setup:
- Data folder: data/icu
- Output folder: output
- Analysis list: background, dark, lamp, blackbody, lamp-vs-blackbody, slit, straylight, contamination, read-reset
📋 List of ICU available (N):
- PC1_N_ICU_HOT
- ...
🖼️ Generating background spectra:
- ...          ✅
👻 Generating dark spectra:
- ...          ✅
🔦 Generating lamp images:
- ...          ✅
🔦 Generating lamp spectra:
- ...          ✅
💡 Generating blackbody images:
- ...          ✅
💡 Generating blackbody spectra:
- ...          ✅
🔍 Generating lamp vs. blackbody spectra comparisons:
- ...          ✅
🗿 Generating slit profile comparisons:
- ...          ✅
🔪 Generating slit edges comparisons:
- ...          ✅
📸 Generating straylight images:
- ...          ✅
👽 Generating straylight spatial profiles:
- ...          ✅
🌈 Generating straylight spectra:
- ...          ✅
🦠 Generating contamination map and spectrum:
- ...          ✅
🦠 Generating contamination all spectra ✅
🪃 Generating read-reset images:
- ...          ✅
🪃 Generating read-reset spectra comparisons:
- ...          ✅

Local development

This project is maintained with uv package manager. You need to install it first to perform any local development.

Clone this repo

git clone -b dev-ql-icu https://git.ias.u-psud.fr/majis_sgs/quick-look/majis-ql-icu
cd majis-ql-icu

Install the package and its the required dependencies:

uv sync

Run the linter

uv run ruff format
uv run ruff check

Run unit tests (not much at the moment):

uv run pytest

Run all the notebooks used in the docs:

uv run pytest --nbval-lax docs/notebooks/ --no-cov

To build the documentation html:

uv run jupyter-book build docs/

Metadata

Release files for majis-ql-icu 1.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 majis-ql-icu 1.1.0
File Size Uploaded Provenance
majis_ql_icu-1.1.0.tar.gz 6.4 MB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for majis-ql-icu 1.1.0
File Interpreter ABI Platform
majis_ql_icu-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.7 MB

Release files / majis_ql_icu-1.1.0.tar.gz

Download URL majis_ql_icu-1.1.0.tar.gz
Size 6.4 MB
Tags Source
SHA-256 checksum
How to use checksums
16f7cb55850455d453a940d451e94a03f1b6b4736b235207d7bd18e25e6f59eb
BLAKE2b-256 checksum
How to use checksums
1a716bfc0cd8cefd8ee85e9672fc31ebfc2c68597da96e04b65c7fa89f860227
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.31 {"installer":{"name":"uv","version":"0.11.31","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Alpine Linux","version":"3.23.5","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / majis_ql_icu-1.1.0-py3-none-any.whl

Download URL majis_ql_icu-1.1.0-py3-none-any.whl
Size 6.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
ab5630fbca4d8a762b4aaea698c2a5335c64c5d4d9695325716c80b858769c7a
BLAKE2b-256 checksum
How to use checksums
dba52291ccc3646cab0911bc6053afc661a13824d85849ec0acc3ee823de0344
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.31 {"installer":{"name":"uv","version":"0.11.31","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Alpine Linux","version":"3.23.5","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for majis-ql-icu 1.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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

1.1.0 This release

2 release files No 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