changed name of functions for observatory

This commit is contained in:
Andy Eschbacher
2016-03-29 12:18:52 -07:00
parent eecbe39547
commit bc67ae8f69
5 changed files with 20 additions and 21 deletions
@@ -14,6 +14,7 @@ import plpy
def moran(subquery, attr_name, permutations, geom_col, id_col, w_type, num_ngbrs):
"""
Moran's I (global)
Implementation building neighors with a PostGIS database and Moran's I core clusters with PySAL.
Andy Eschbacher
"""
qvals = {"id_col": id_col,
@@ -172,8 +173,6 @@ def moran_local_rate(subquery, numerator, denominator, permutations, geom_col, i
plpy.notice('** Exiting function')
return zip([None], [None], [None], [None], [None])
plpy.notice('r.nrows() = %d' % r.nrows())
## collect attributes
numer = get_attributes(r, 1)
denom = get_attributes(r, 2)
@@ -389,4 +388,4 @@ def quad_position(quads):
lisa_sig = np.array([map_quads(q) for q in quads])
return lisa_sig
return lisa_sig