mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 15:21:11 +00:00
HOD code now callable from prepareCatalogs script
This commit is contained in:
parent
44cd0eb71f
commit
3a4b636043
1 changed files with 2 additions and 1 deletions
|
@ -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], ")"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue