Add multi-AOI calibration evidence portfolio
GeoIntel CI / docs-smoke (push) Has been cancelled
GeoIntel CI / contract-smoke (push) Has been cancelled

This commit is contained in:
Codex
2026-07-08 14:10:02 +02:00
parent c42ae23a61
commit 28a49bd0d5
8 changed files with 553 additions and 2 deletions
@@ -20,6 +20,7 @@ Required input:
Optional environment:
CALIBRATION_EVIDENCE_MODE all or best, default: all.
CALIBRATION_EVIDENCE_DIR Output directory, default: the summary file directory.
CURL_BIN curl executable, default: curl.
EOF
}
@@ -53,7 +54,8 @@ case "${CALIBRATION_EVIDENCE_MODE}" in
;;
esac
if ! command -v curl >/dev/null 2>&1; then
CURL_BIN="${CURL_BIN:-curl}"
if ! command -v "${CURL_BIN}" >/dev/null 2>&1; then
echo "curl is required for detection calibration evidence export" >&2
exit 1
fi
@@ -153,7 +155,7 @@ while IFS=$'\t' read -r threshold project_id quality_check_id; do
threshold_label="$(printf '%s' "${threshold}" | tr '.-' 'pm')"
response_path="${CALIBRATION_EVIDENCE_DIR}/threshold_${threshold_label}_evidence_response.json"
echo "-- Evidence threshold ${threshold}, quality_check_id ${quality_check_id} --"
curl -fsS "${BASE_URL%/}/api/v1/projects/${project_id}/quality-checks/${quality_check_id}/evidence/geojson" > "${response_path}"
"${CURL_BIN}" -fsS "${BASE_URL%/}/api/v1/projects/${project_id}/quality-checks/${quality_check_id}/evidence/geojson" > "${response_path}"
done < "${request_manifest}"
"${PYTHON_BIN}" - "${CALIBRATION_SUMMARY_PATH}" "${CALIBRATION_EVIDENCE_DIR}" "${CALIBRATION_EVIDENCE_MODE}" <<'PY'