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.
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/smokeThe 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.
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/cameraFor 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-releaseThe 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.
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/cameraIt 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.
- Shower validation against CORSIKA: prepare the inputs and run the paired comparison.
- Performance validation: prepare inputs and measure on a quiet host.
- Curvature validation and CORSIKA table comparison.
- Satellite laser validation.
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 --jsonThe 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.