mirror of
https://github.com/CartoDB/crankshaft.git
synced 2024-11-01 10:20:48 +08:00
removing extra parenthesis in maxp
This commit is contained in:
parent
f8db8d9ba4
commit
691ce95638
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user