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

Get calibrations from DETECTOR_PATH

parent 155eba67
No related branches found
No related tags found
1 merge request!78Get calibrations from DETECTOR_PATH
......@@ -6,4 +6,13 @@ detector_benchmarks=https://eicweb.phy.anl.gov/EIC/benchmarks/detector_benchmark
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
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