some bugs fixed related to gadget unit handling

This commit is contained in:
P.M. Sutter 2012-11-09 08:06:27 -06:00
parent 9c10c3714f
commit 9cdc037946
3 changed files with 7 additions and 4 deletions

View file

@ -78,7 +78,7 @@ class Sample:
dataType="observation", numSubDivisions=2,
boxLen=1024, usePecVel=False, omegaM=0.27,
numSubvolumes=1, mySubvolume=1, dataFormat="sdss",
subsample="1.0", useLightCone=True):
subsample=1.0, useLightCone=True):
self.dataFile = dataFile
self.fullName = fullName
self.nickName = nickName

View file

@ -132,12 +132,12 @@ def launchGenerate(sample, binPath, workDir=None, inputDataDir=None,
rangeY_max %g
rangeZ_min %g
rangeZ_max %g
subsample %g
subsample %s
""" % (dataFileLine, zobovDir+"/zobov_slice_"+sampleName,
zobovDir+"/zobov_slice_"+sampleName+".par",
includePecVelString,
useLightConeString,
sample.gadgetUnit,
sample.dataUnit,
xMin, xMax, yMin, yMax,
sample.zBoundaryMpc[0], sample.zBoundaryMpc[1],
sample.subsample)