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 ...@@ -7,7 +7,12 @@ mkdir -p config
for i in results/emcal_barrel_calibration.json ; do for i in results/emcal_barrel_calibration.json ; do
curl --fail -sL ${detector_benchmarks}/${i}?job=deploy_results --output config/$(basename ${i}) curl --fail -sL ${detector_benchmarks}/${i}?job=deploy_results --output config/$(basename ${i})
if [[ "$?" -ne "0" ]] ; then if [[ "$?" -ne "0" ]] ; then
echo "Error: could not retrieve calibrations!" if find ${DETECTOR_PATH} -name $(basename $i) ; then
exit 1 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 fi
done done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment