From bf4dc5476d040b731150fb8b0ac6ac879aae37a1 Mon Sep 17 00:00:00 2001 From: othocaeS Date: Mon, 25 Jul 2016 17:31:12 -0400 Subject: [PATCH] debugging thor stuff in analysis scripts --- scripts/analyze_lightcurves.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/analyze_lightcurves.sh b/scripts/analyze_lightcurves.sh index ae1adaa..65990ea 100755 --- a/scripts/analyze_lightcurves.sh +++ b/scripts/analyze_lightcurves.sh @@ -23,6 +23,8 @@ then echo "─────────────────────────────" >> thor/submissions fi +mkdir -p analyses + echo Using lightcurves in $lc_dir. for echo_curve in $lc_dir/* @@ -115,9 +117,9 @@ do submitscript="thor/${echo_band}.pbs" cp tmp.psdlagargs $argsfile cat scripts/templates/thor_submit.pbs| - sed "s@%ARGSFILE%@${argsfile}@"| - sed "s@%ROOTDIR%@$(pwd)@"| - sed "s@%OUTPUTFILE%@${outputfile}@" > $submitscript + sed "s@%ARGSFILE%@${argsfile}@g"| + sed "s@%ROOTDIR%@$(pwd)@g"| + sed "s@%OUTPUTFILE%@${outputfile}@g" > $submitscript cd thor qsub $submitscript >> submissions cd ..