Skip to content
Snippets Groups Projects
Commit d1448f8c authored by chad.hanna's avatar chad.hanna
Browse files

gstlal_inspiral_marginalize_likelihoods_online: fix corner case at startup

parent 867b7065
No related branches found
No related tags found
No related merge requests found
......@@ -111,9 +111,14 @@ while true ; do
ZEROLAG_COUNTS_URLS="${ZEROLAG_COUNTS_URLS} ${SERVER}${ZEROLAG_COUNTS_PATH}"
done || break
# NOTE we mix in previous samples
cp -v ${OUTPUT} prev_${OUTPUT}
gstlal_inspiral_marginalize_likelihood --verbose --marginalize ranking-stat-pdf --density-estimate-zero-lag --output ${OUTPUT} ${RANKING_PDF_FILES} prev_${OUTPUT} ${ZEROLAG_COUNTS_URLS} || break
rm -vf prev_${OUTPUT}
if [ -f ${OUTPUT} ]; then
cp -v ${OUTPUT} prev_${OUTPUT}
PREV_OUTPUT=prev_${OUTPUT}
else
PREV_OUTPUT=""
fi
echo "Previous output: " ${PREV_OUTPUT}
gstlal_inspiral_marginalize_likelihood --verbose --marginalize ranking-stat-pdf --density-estimate-zero-lag --output ${OUTPUT} ${RANKING_PDF_FILES} ${PREV_OUTPUT} ${ZEROLAG_COUNTS_URLS} || break
date +"%H:%M:%S" >&2
rm -vf ${RANKING_PDF_FILES}
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