Skip to content
Snippets Groups Projects
Commit 20bc5a23 authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

Get calibrations from DETECTOR_PATH

parent 3f5cff41
No related branches found
No related tags found
1 merge request!198Get calibrations from DETECTOR_PATH
......@@ -7,7 +7,12 @@ mkdir -p config
for i in results/emcal_barrel_calibration.json ; do
curl --fail -sL ${detector_benchmarks}/${i}?job=deploy_results --output config/$(basename ${i})
if [[ "$?" -ne "0" ]] ; then
echo "Error: could not retrieve calibrations!"
exit 1
if find ${DETECTOR_PATH} -name $(basename $i) ; then
echo "Warning: falling back to DETECTOR_PATH for calibration ${i}."
cp $(find ${DETECTOR_PATH} -name $(basename $i)) config/$(basename ${i})
else
echo "Error: could not retrieve calibrations!"
exit 1
fi
fi
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment