From 377fb8eed8823f6f4fc637292a8cfd38eec358cc Mon Sep 17 00:00:00 2001 From: "P.M. Sutter" Date: Mon, 4 Nov 2013 17:10:25 -0600 Subject: [PATCH] added new option to automatically generate stacks with a given number of voids --- python_tools/void_python_tools/backend/classes.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/python_tools/void_python_tools/backend/classes.py b/python_tools/void_python_tools/backend/classes.py index 43fee14..ed72bc1 100644 --- a/python_tools/void_python_tools/backend/classes.py +++ b/python_tools/void_python_tools/backend/classes.py @@ -58,7 +58,7 @@ class Sample: dataType = "observation" dataFormat = "sdss" dataFile = "lss.dr72dim.dat" - dataUNit = 1 + dataUnit = 1 fullName = "lss.dr72dim.dat" nickName = "dim" zobovDir = "" @@ -72,11 +72,13 @@ class Sample: minVoidRadius = 5 fakeDensity = 0.01 profileBinSize = 2 # Mpc + autoNumInStack = -1 # set to >0 to automatically generate stacks of size N volumeLimited = True includeInHubble = True partOfCombo = False isCombo = False useLCDM = False # if True, convert population to comoving coordinates + comboList = [] # applies to simulations only @@ -99,7 +101,7 @@ class Sample: numSubvolumes=1, mySubvolume=1, dataFormat="sdss", useLCDM=False, dataType="observation", - subsample=1.0, useLightCone=True): + subsample=1.0, useLightCone=True, autoNumInStack=-1): self.dataFile = dataFile self.fullName = fullName self.nickName = nickName @@ -129,6 +131,7 @@ class Sample: self.useLightCone = useLightCone self.dataUnit = dataUnit self.useLCDM = useLCDM + self.autoNumInStack = autoNumInStack self.stacks = []