Skip to content

About

Validation routines for obdeect

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

obdeect validation

Validate obdeect's photon streams, propagation, sources, optics and camera, and their combined simulation chain against analytic calculations, CORSIKA, sim_telarray and LightEmission. Each case declares its own scientific checks; a successful run of the harness alone is not a validation.

Run a suite

Install Podman and place checkouts of obdeect, simtools, sim_telarray and simulation-models-dev alongside this repository. From their parent directory, run:

bash obdeect-validation/containers/run-validation.sh smoke obdeect-validation/results/smoke

The launcher builds the validation image from the local obdeect and simtools checkouts. It mounts the validation repository, sim_telarray and simulation models read-only. Set VALIDATION_MODELS_DIR to use a different model checkout and SKIP_BUILD=1 to reuse an existing image. Some cases require inputs outside Git; see the fixture inventory and CORSIKA cards. Missing inputs block the affected cases.

Suites in suites/ cover individual stages, the full chain, curvature, end-to-end behavior, camera, shower and performance. Use full for the broad validation, or set CASE=cases/<group>/<case>.json to run a single case in a separate output directory. The performance suite is report-only; optics-window is an ungated study.

Camera validation

The camera and camera-release suites automatically select the camera environment and sim_telarray mode 3. Use simulation models 7.0.0, a hessio clone containing commit 604578331f4696703001e4af3b95a19cdcaa3852, and the inputs listed in the smoke case and fixture inventory. From the workspace root:

export HESSIO_REPO=/path/to/hessio
export VALIDATION_MODELS_DIR=/path/to/simulation-models
bash obdeect-validation/containers/run-validation.sh camera obdeect-validation/results/camera

For release coverage, stage the 3,000-shower input and configuration in the release case, then run:

SKIP_BUILD=1 bash obdeect-validation/containers/run-validation.sh camera-release obdeect-validation/results/camera-release

The release suite covers LSTN-01, LSTS-01, MSTN-02 and MSTS-02 calibration and the four-LSTS shower chain. SST camera parity still needs a qualified case and fixture. Case JSON files declare the acceptance gates; the adapters calculate the metrics and uncertainties.

Results and reports

The output directory contains summary.json, case metrics, logs and simulation outputs. A case passes only when all its declared gates pass. Exit status is 0 for pass, 1 for a scientific difference, 2 for an execution or configuration error, and 3 for a missing prerequisite. A blocked case is not a pass.

Collect a camera report from the repository directory:

python3 scripts/collect_report.py --camera results/camera

It writes reports/<obdeect-version>/camera/README.md. For a full report use python3 scripts/collect_report.py results/full reports/<version>/full. See validation reports for recorded results and provenance. Large run outputs in results/ are local and are not tracked in Git.

Other workflows

For harness development, use Python 3.14 or newer:

python -m pip install -e '.[dev,references]'
python -m pytest
obdeect-validate list --suite suites/smoke.json --json

The host-only regression suite uses environments/host.json and requires its reference programs and case inputs on the host. Cases and suites are JSON; keep their inputs and seeds explicit, and do not change a reference or tolerance simply to make a failing comparison pass.

About

Validation routines for obdeect

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages