HOD code now callable from prepareCatalogs script

This commit is contained in:
P.M. Sutter 2013-12-31 08:20:56 -06:00
parent 44cd0eb71f
commit 3a4b636043

View file

@ -831,7 +831,8 @@ if (args.hod or args.all) and haloFileBase != "":
sampleName = getSampleName(prefix+"hod_"+thisHod['name'], redshift, False)
tempFile = "./hod.out_"+sampleName
os.system(hodPath+" "+parFileName+">& " + tempFile)
HOD_PATH = "@CMAKE_BINARY_DIR@/c_tools/hod/hod"
os.system(HOD_PATH+" "+parFileName+">& " + tempFile)
for line in open(tempFile):
if "MLO" in line:
print " (minimum halo mass = ", line.split()[1], ")"