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/

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

majis_ql_icu-1.1.0.tar.gz (6.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

majis_ql_icu-1.1.0-py3-none-any.whl (6.4 MB view details)

Uploaded Python 3

File details

Details for the file majis_ql_icu-1.1.0.tar.gz.

File metadata

  • Download URL: majis_ql_icu-1.1.0.tar.gz
  • Upload date:
  • Size: 6.4 MB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for majis_ql_icu-1.1.0.tar.gz
Algorithm Hash digest
SHA256 16f7cb55850455d453a940d451e94a03f1b6b4736b235207d7bd18e25e6f59eb
MD5 ebc4e56527f59d9a67bdab9ff788e8a4
BLAKE2b-256 1a716bfc0cd8cefd8ee85e9672fc31ebfc2c68597da96e04b65c7fa89f860227

See more details on using hashes here.

File details

Details for the file majis_ql_icu-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: majis_ql_icu-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.4 MB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for majis_ql_icu-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ab5630fbca4d8a762b4aaea698c2a5335c64c5d4d9695325716c80b858769c7a
MD5 a0e905421b9ea68f7b5aca74d41addba
BLAKE2b-256 dba52291ccc3646cab0911bc6053afc661a13824d85849ec0acc3ee823de0344

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 files

1.0.0

2 files

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