ParaSeries: untested bugfix

This commit is contained in:
DeepSOIC 2015-12-20 02:20:15 +03:00
parent b00a34efc5
commit f029890a39

View File

@ -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: