mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 23:31:12 +00:00
added ability to automatically make stacks with fixed number of particles
This commit is contained in:
parent
566deed303
commit
d17cc4a94b
1 changed files with 4 additions and 1 deletions
|
@ -75,6 +75,7 @@ class Sample:
|
||||||
fakeDensity = 0.01
|
fakeDensity = 0.01
|
||||||
profileBinSize = 2 # Mpc
|
profileBinSize = 2 # Mpc
|
||||||
autoNumInStack = -1 # set to >0 to automatically generate stacks of size N
|
autoNumInStack = -1 # set to >0 to automatically generate stacks of size N
|
||||||
|
autoPartInStack = -1 # set to >0 to automatically generate stacks with N particles
|
||||||
volumeLimited = True
|
volumeLimited = True
|
||||||
includeInHubble = True
|
includeInHubble = True
|
||||||
partOfCombo = False
|
partOfCombo = False
|
||||||
|
@ -103,7 +104,8 @@ class Sample:
|
||||||
numSubvolumes=1, mySubvolume=1, dataFormat="sdss",
|
numSubvolumes=1, mySubvolume=1, dataFormat="sdss",
|
||||||
useComoving=False,
|
useComoving=False,
|
||||||
dataType="observation",
|
dataType="observation",
|
||||||
subsample=1.0, useLightCone=True, autoNumInStack=-1):
|
subsample=1.0, useLightCone=True, autoNumInStack=-1,
|
||||||
|
autoPartInStack=-1):
|
||||||
self.dataFile = dataFile
|
self.dataFile = dataFile
|
||||||
self.fullName = fullName
|
self.fullName = fullName
|
||||||
self.nickName = nickName
|
self.nickName = nickName
|
||||||
|
@ -134,6 +136,7 @@ class Sample:
|
||||||
self.dataUnit = dataUnit
|
self.dataUnit = dataUnit
|
||||||
self.useComoving = useComoving
|
self.useComoving = useComoving
|
||||||
self.autoNumInStack = autoNumInStack
|
self.autoNumInStack = autoNumInStack
|
||||||
|
self.autoPartInStack = autoPartInStack
|
||||||
|
|
||||||
self.stacks = []
|
self.stacks = []
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue