mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 15:21:11 +00:00
prepration script now pays attention to halo/subhalo distinction, and only takes halos
This commit is contained in:
parent
4c97bcb798
commit
9700f0d495
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue