Skip to content
Snippets Groups Projects

Store CalCat requests/responses for reproducibility

Merged Thomas Kluyver requested to merge calparrot into master
5 unresolved threads
Files
5
+ 4
14
@@ -43,23 +43,13 @@ then
sleep 15
fi
# Launch CalParrot to repeat calibration constant queries
if [ "$caltype" == "CORRECT" ]
then
port_file=$(mktemp)
${python_path} -m calparrot --port-file $port_file
calparrot_port=$(cat $port_file)
rm $port_file
export CAL_CAL_TOOLS_CALCAT="{base-api-url='http://127.0.0.1:${calparrot_port}/api', use-oauth2=false}"
fi
echo "Running notebook"
${python_path} -m princess ${nb_path} --save
# Stop CalParrot
if [ "$caltype" == "CORRECT" ]
then
${python_path} -m calparrot.stop $calparrot_port
# calparrot stores and repeats calcat queries
${python_path} -m calparrot -- ${python_path} -m princess ${nb_path} --save
else
${python_path} -m princess ${nb_path} --save
fi
# stop the cluster if requested
Loading