From afb562d419201b8f83195fef1b804a71427ea3c7 Mon Sep 17 00:00:00 2001 From: "P.M. Sutter" Date: Sun, 24 Mar 2013 16:06:01 -0500 Subject: [PATCH] once again, fixed bug in periodic boundary detection... --- python_tools/void_python_tools/backend/launchers.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python_tools/void_python_tools/backend/launchers.py b/python_tools/void_python_tools/backend/launchers.py index 6571c05..0589ed8 100644 --- a/python_tools/void_python_tools/backend/launchers.py +++ b/python_tools/void_python_tools/backend/launchers.py @@ -324,8 +324,8 @@ def launchPrune(sample, binPath, periodicLine = " --periodic='" if sample.numSubvolumes == 1: periodicLine += "xy" - if sample.zBoundaryMpc[1] - sample.zBoundaryMpc[0] - \ - sample.boxLen <= 1.e-1: + if np.abs(sample.zBoundaryMpc[1] - sample.zBoundaryMpc[0] - \ + sample.boxLen) <= 1.e-1: periodicLine += "z" periodicLine += "' " @@ -380,7 +380,7 @@ def launchVoidOverlap(sample1, sample2, sample1Dir, sample2Dir, periodicLine = " --periodic='" if sample1.dataType != "observation": if sample1.numSubvolumes == 1: periodicLine += "xy" - if sample1.zBoundaryMpc[1] - sample1.zBoundaryMpc[0] - sample1.boxLen <= 1.e-1: + if np.abs(sample1.zBoundaryMpc[1] - sample1.zBoundaryMpc[0] - sample1.boxLen) <= 1.e-1: periodicLine += "z" periodicLine += "' "