Add multi-AOI calibration evidence portfolio
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user