From 691ce9563894b917383ca46c53df00607a52fd4b Mon Sep 17 00:00:00 2001 From: Michelle Ho Date: Fri, 17 Feb 2017 09:44:17 -0500 Subject: [PATCH] removing extra parenthesis in maxp --- src/py/crankshaft/crankshaft/clustering/maxp.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/py/crankshaft/crankshaft/clustering/maxp.py b/src/py/crankshaft/crankshaft/clustering/maxp.py index 68383bb..91d4418 100644 --- a/src/py/crankshaft/crankshaft/clustering/maxp.py +++ b/src/py/crankshaft/crankshaft/clustering/maxp.py @@ -46,6 +46,7 @@ class MaxP: 'colnames': colnames, 'id_col': id_col, 'geom_col': geom_col, + 'floor': 'floor_variable':floor_variable, } @@ -54,7 +55,7 @@ class MaxP: weight = pu.get_weight(resp, w_type='queen') if floor_variable == None: - floor_variable = np.ones((weight.n, 1))) + floor_variable = np.ones((weight.n, 1)) else: floor_column_id = colnames.index(floor_variable) floor_variable = attr_vals.transpose()[floor_column_id]