From d17cc4a94bd7fd72237a904b2e1826fd840033fe Mon Sep 17 00:00:00 2001 From: "P.M. Sutter" Date: Wed, 5 Feb 2014 15:49:38 -0600 Subject: [PATCH] added ability to automatically make stacks with fixed number of particles --- python_tools/void_python_tools/backend/classes.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python_tools/void_python_tools/backend/classes.py b/python_tools/void_python_tools/backend/classes.py index cd0af1b..5d827aa 100644 --- a/python_tools/void_python_tools/backend/classes.py +++ b/python_tools/void_python_tools/backend/classes.py @@ -75,6 +75,7 @@ class Sample: fakeDensity = 0.01 profileBinSize = 2 # Mpc 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 includeInHubble = True partOfCombo = False @@ -103,7 +104,8 @@ class Sample: numSubvolumes=1, mySubvolume=1, dataFormat="sdss", useComoving=False, dataType="observation", - subsample=1.0, useLightCone=True, autoNumInStack=-1): + subsample=1.0, useLightCone=True, autoNumInStack=-1, + autoPartInStack=-1): self.dataFile = dataFile self.fullName = fullName self.nickName = nickName @@ -134,6 +136,7 @@ class Sample: self.dataUnit = dataUnit self.useComoving = useComoving self.autoNumInStack = autoNumInStack + self.autoPartInStack = autoPartInStack self.stacks = []