From 7dd49ce92c2f89e0f4abb98b12978ec0edd7bbc7 Mon Sep 17 00:00:00 2001 From: "P.M. Sutter" Date: Thu, 15 May 2014 18:34:14 -0500 Subject: [PATCH] added ranges to catalog --- python_tools/void_python_tools/voidUtil/catalogUtil.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python_tools/void_python_tools/voidUtil/catalogUtil.py b/python_tools/void_python_tools/voidUtil/catalogUtil.py index d3583d9..ab0b986 100644 --- a/python_tools/void_python_tools/voidUtil/catalogUtil.py +++ b/python_tools/void_python_tools/voidUtil/catalogUtil.py @@ -266,6 +266,7 @@ class Catalog: numZonesTot = 0 volNorm = 0 boxLen = np.zeros((3)) + ranges = np.zeros((3,2)) part = None zones2Parts = None void2Zones = None @@ -303,6 +304,7 @@ def loadVoidCatalog(sampleDir, dataPortion="central", loadParticles=True, catalog.boxLen[0] = ranges[0][1] - ranges[0][0] catalog.boxLen[1] = ranges[1][1] - ranges[1][0] catalog.boxLen[2] = ranges[2][1] - ranges[2][0] + catalog.ranges = ranges File.close() volNorm = getVolNorm(sampleDir)