mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 23:31:12 +00:00
can now select gadget units in preparation script
This commit is contained in:
parent
95db063b7b
commit
ed3f18f6d0
2 changed files with 5 additions and 3 deletions
|
@ -28,6 +28,7 @@ dataType = "simulation"
|
|||
|
||||
# available formats for simulation: gadget, multidark
|
||||
dataFormat = "gadget"
|
||||
dataUnit = 1 # as multiple of Mpc/h
|
||||
|
||||
# place particles on the lightcone?
|
||||
useLightCone = False
|
||||
|
@ -131,6 +132,7 @@ logDir = "{logDir}/{setName}/"
|
|||
sampleInfo = """
|
||||
newSample = Sample(dataFile = "{dataFile}",
|
||||
dataFormat = "{dataFormat}",
|
||||
dataUnit = {dataUnit},
|
||||
fullName = "{sampleName}",
|
||||
nickName = "{sampleName}",
|
||||
dataType = "simulation",
|
||||
|
@ -197,6 +199,7 @@ dataSampleList.append(newSample)
|
|||
|
||||
scriptFile.write(sampleInfo.format(dataFile=dataFileName,
|
||||
dataFormat=dataFormat,
|
||||
dataUnit=dataUnit,
|
||||
sampleName=sampleName,
|
||||
zMin=sliceMin,
|
||||
zMax=sliceMax,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue