From 9700f0d49503d6787d8506fdbd6dcc30c0581a3c Mon Sep 17 00:00:00 2001 From: "P.M. Sutter" Date: Sat, 29 Jun 2013 05:20:15 -0500 Subject: [PATCH] prepration script now pays attention to halo/subhalo distinction, and only takes halos --- python_tools/pipeline_source/prepareCatalogs.in.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python_tools/pipeline_source/prepareCatalogs.in.py b/python_tools/pipeline_source/prepareCatalogs.in.py index e1cbca9..4586341 100644 --- a/python_tools/pipeline_source/prepareCatalogs.in.py +++ b/python_tools/pipeline_source/prepareCatalogs.in.py @@ -797,7 +797,8 @@ if (args.hod or args.all) and haloFileBase != "": workDir=catalogDir)) parFile.close() - tempFile = "./hod.out" + sampleName = getSampleName(prefix+"hod_"+thisHod['name'], redshift, False) + tempFile = "./hod.out_"+sampleName os.system(hodPath+" "+parFileName+">& " + tempFile) for line in open(tempFile): if "MLO" in line: @@ -805,7 +806,6 @@ if (args.hod or args.all) and haloFileBase != "": break os.unlink(tempFile) - sampleName = getSampleName(prefix+"hod_"+thisHod['name'], redshift, False) outFileName = catalogDir+"/"+sampleName+".dat" os.system("mv %s/hod.mock %s" % (catalogDir, outFileName)) os.system("rm %s/hod.*" % catalogDir)