Skip to content

Commit

Permalink
Update batch script creator with new photfile, new options
Browse files Browse the repository at this point in the history
  • Loading branch information
gnarayan committed Sep 4, 2017
1 parent 775061a commit 3eee4f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/make_WDmodel_slurm_batch_scripts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def main():
"#SBATCH --mail-type=ALL",
"#SBATCH --mail-user=gnarayan.work+odyssey@gmail.com"]

phottable = WDmodel.io.read_phot('data/photometry/WDphot_C22.dat')
phottable = WDmodel.io.read_phot('data/photometry/WDphot_C22_AC_AS_combined.dat')

usedfiles = []
for obj in phottable.obj:
Expand All @@ -44,7 +44,7 @@ def main():
script_file = WDmodel.io.get_outfile("scripts", specfile,'.sh')
outlines.append("#SBATCH -o {}".format(stdout_file))
outlines.append("#SBATCH -e {}".format(stderr_file))
outlines.append("mpirun -np 32 ./fit_WDmodel.py --mpi --specfile {} --photfile data/photometry/WDphot_C22.dat --samptype pt --ntemps 5 --nprod 4000 --nwalkers 100 --phot_dispersion 0.001 --thin 10 --redo".format(specfile))
outlines.append("mpirun -np 32 fit_WDmodel --mpi --specfile {} --photfile data/photometry/WDphot_C22_AC_AS_combined.dat --samptype ensemble --nprod 5000 --nwalkers 250 --thin 5 --redo".format(specfile))
out = addnewlines((lines+outlines))
with open(script_file,'w') as f:
f.writelines(out)
Expand All @@ -62,7 +62,7 @@ def main():
script_file = WDmodel.io.get_outfile("scripts/ignorephot", specfile,'.sh')
outlines.append("#SBATCH -o {}".format(stdout_file))
outlines.append("#SBATCH -e {}".format(stderr_file))
outlines.append("mpirun -np 32 ./fit_WDmodel.py --mpi --specfile {} --ignorephot --redo --samptype pt --ntemps 5 --nprod 4000 --nwalkers 100 --thin 10 --outroot out/ignorephot".format(specfile))
outlines.append("mpirun -np 32 fit_WDmodel --mpi --specfile {} --ignorephot --redo --samptype ensemble --nprod 5000 --nwalkers 250 --thin 5 --outroot out/ignorephot".format(specfile))
out = addnewlines((lines+outlines))
with open(script_file,'w') as f:
f.writelines(out)
Expand Down

0 comments on commit 3eee4f3

Please sign in to comment.