From f029890a39f64699629c8c3c974cd64eaad507a8 Mon Sep 17 00:00:00 2001 From: DeepSOIC Date: Sun, 20 Dec 2015 02:20:15 +0300 Subject: [PATCH] ParaSeries: untested bugfix --- lattice2ParaSeries.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lattice2ParaSeries.py b/lattice2ParaSeries.py index 6106fbb..c6d389c 100644 --- a/lattice2ParaSeries.py +++ b/lattice2ParaSeries.py @@ -100,7 +100,7 @@ class LatticeParaSeries(lattice2BaseFeature.LatticeFeature): scale = 1.0 try: if not selfobj.Object.Shape.isNull(): - scale = selfobj.Object.Shape.BoundBox.DiagonalLength/math.sqrt(3)/math.sqrt(len(shps)) + scale = selfobj.Object.Shape.BoundBox.DiagonalLength/math.sqrt(3) except Exception: pass if scale < DistConfusion * 100: @@ -153,7 +153,7 @@ class LatticeParaSeries(lattice2BaseFeature.LatticeFeature): scale = 1.0 try: if not selfobj.Object.Shape.isNull(): - scale = selfobj.Object.Shape.BoundBox.DiagonalLength/math.sqrt(3)/math.sqrt(len(shps)) + scale = selfobj.Object.Shape.BoundBox.DiagonalLength/math.sqrt(3) except Exception: pass if scale < DistConfusion * 100: