mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 23:31:12 +00:00
more updates to preparation scripts
This commit is contained in:
parent
a566c12435
commit
8a4191972b
2 changed files with 14 additions and 13 deletions
|
@ -478,13 +478,13 @@ if (args.hod or args.all) and haloFileBase != "":
|
|||
workDir=catalogDir))
|
||||
parFile.close()
|
||||
|
||||
# os.system(hodPath+" "+parFileName+">& /dev/null")
|
||||
#
|
||||
# sampleName = getSampleName(prefix+"hod_dr72dim2", redshift, False)
|
||||
# outFileName = catalogDir+"/"+sampleName+".dat"
|
||||
# os.system("mv %s/hod.mock %s" % (catalogDir, outFileName))
|
||||
#
|
||||
# os.system("rm %s/hod.*" % catalogDir)
|
||||
os.system(hodPath+" "+parFileName+">& /dev/null")
|
||||
|
||||
sampleName = getSampleName(prefix+"hod_dr72dim2", redshift, False)
|
||||
outFileName = catalogDir+"/"+sampleName+".dat"
|
||||
os.system("mv %s/hod.mock %s" % (catalogDir, outFileName))
|
||||
|
||||
os.system("rm %s/hod.*" % catalogDir)
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# now the BOSS HOD
|
||||
|
|
|
@ -254,8 +254,9 @@ def launchPrune(sample, binPath, thisDataPortion=None,
|
|||
|
||||
periodicLine = " --periodic='"
|
||||
if sample.numSubvolumes == 1: periodicLine += "xy"
|
||||
if sample.zBoundaryMpc[0] == 0 and \
|
||||
sample.zBoundaryMpc[1] == sample.boxLen : periodicLine += "z"
|
||||
if sample.zBoundaryMpc[1] - sample.zBoundaryMpc[0] - \
|
||||
sample.boxLen <= 1.e-1:
|
||||
periodicLine += "z"
|
||||
periodicLine += "' "
|
||||
|
||||
if not (continueRun and jobSuccessful(logFile, "NetCDF: Not a valid ID\n")):
|
||||
|
@ -321,8 +322,8 @@ def launchVoidOverlap(sample1, sample2, sample1Dir, sample2Dir,
|
|||
periodicLine = " --periodic='"
|
||||
if sample1.dataType != "observation":
|
||||
if sample1.numSubvolumes == 1: periodicLine += "xy"
|
||||
if sample1.zBoundaryMpc[0] == 0 and \
|
||||
sample1.zBoundaryMpc[1] == sample1.boxLen : periodicLine += "z"
|
||||
if sample1.zBoundaryMpc[1] - sample1.zBoundaryMpc[0] - sample1.boxLen <= 1.e-1:
|
||||
periodicLine += "z"
|
||||
periodicLine += "' "
|
||||
|
||||
if not (continueRun and jobSuccessful(logFile, "Done!\n")):
|
||||
|
@ -357,7 +358,7 @@ def launchVoidOverlap(sample1, sample2, sample1Dir, sample2Dir,
|
|||
cmd += " --zonePartFile2=" + sample2Dir+"/voidPart_" + \
|
||||
str(sampleName2)+".dat"
|
||||
|
||||
#cmd += " --useID"
|
||||
cmd += " --useID"
|
||||
cmd += periodicLine
|
||||
cmd += " --outfile=" + outputFile
|
||||
cmd += " &> " + logFile
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue