fixing some thor functionality

This commit is contained in:
caes 2016-08-04 14:13:23 -04:00
parent c0004fdab2
commit fed8b849da

View File

@ -114,11 +114,7 @@ do
echo -n "1000 50 400 mcmc_${echo_band}.dat" >> tmp.psdlagargs
# Run psdlag with inputs
if [[ -e $outputfile ]]
then
echo -n " Analysis already exists; skipping."
else
if [[ $1 == "thor" ]]
if [[ $1 == "thor" || $(hostname) == "thor.cs.wmich.edu"]]
then
echo_band_noUTF=$(echo $echo_band|
#sed 's|𝛌||g'|
@ -136,6 +132,10 @@ do
sed 's|Å|A|g'|
sed 's|_≺_|_|g'|
sed 's|σ∊|err|')
if [[ -e $outputfile_noUTF ]]
then
echo -n " Analysis already exists; skipping."
else
argsfile="thor/arguments/$echo_band_noUTF.args"
submitscript="thor/${echo_band_noUTF}.pbs"
cp tmp.psdlagargs $argsfile
@ -147,9 +147,13 @@ do
cd thor
qsub $(basename $submitscript) >> submissions
cd ..
fi
else
if [[ -e $outputfile ]]
then
echo -n " Analysis already exists; skipping."
else
time bin/psdlag tmp.psdlagargs > $outputfile
fi
fi
echo ""
done