Skip to content
Snippets Groups Projects

Get calibrations from DETECTOR_PATH

Merged Wouter Deconinck requested to merge get-calibrations-from-DETECTOR_PATH into master
1 file
+ 7
2
Compare changes
  • Side-by-side
  • Inline
+ 7
2
@@ -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
Loading