From 3a4b63604342c801deb97e48147ab74d89e59988 Mon Sep 17 00:00:00 2001 From: "P.M. Sutter" Date: Tue, 31 Dec 2013 08:20:56 -0600 Subject: [PATCH] HOD code now callable from prepareCatalogs script --- python_tools/pipeline_source/prepareCatalogs.in.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python_tools/pipeline_source/prepareCatalogs.in.py b/python_tools/pipeline_source/prepareCatalogs.in.py index f94b60c..55a8e4e 100644 --- a/python_tools/pipeline_source/prepareCatalogs.in.py +++ b/python_tools/pipeline_source/prepareCatalogs.in.py @@ -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], ")"