From e3586a45745eb594b005f03a4612f43aaf5d658d Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Tue, 16 Apr 2019 22:24:43 -0700 Subject: [PATCH] fix variable names (manhattanize_fast fixes) --- masque/shapes/shape.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/masque/shapes/shape.py b/masque/shapes/shape.py index abd0103..981e2ce 100644 --- a/masque/shapes/shape.py +++ b/masque/shapes/shape.py @@ -232,9 +232,9 @@ class Shape(metaclass=ABCMeta): err_xmax = (max(v[0], v_next[0]) - grid_x[gxi_max - 1]) / (grid_x[gxi_max] - grid_x[gxi_max - 1]) if err_xmin >= 0.5: - gxi_xmin += 1 + gxi_min += 1 if err_xmax >= 0.5: - gxi_xmax += 1 + gxi_max += 1 if abs(dv[0]) < 1e-20: