updating test info
This commit is contained in:
parent
9ba9d07bb5
commit
95247f66bb
@ -81,7 +81,7 @@ class MoranTest(unittest.TestCase):
|
|||||||
data = [{ 'id': d['id'], 'attr1': d['value'], 'neighbors': d['neighbors'] } for d in self.neighbors_data]
|
data = [{ 'id': d['id'], 'attr1': d['value'], 'neighbors': d['neighbors'] } for d in self.neighbors_data]
|
||||||
plpy._define_result('select', data)
|
plpy._define_result('select', data)
|
||||||
random_seeds.set_random_seeds(1235)
|
random_seeds.set_random_seeds(1235)
|
||||||
result = cc.moran('table', 'value', 99, 'the_geom', 'cartodb_id', 'knn', 5)
|
result = cc.moran('subquery', 'value', 99, 'the_geom', 'cartodb_id', 'knn', 5)
|
||||||
print 'result == None?', result == None
|
print 'result == None?', result == None
|
||||||
result_moran = result[0][0]
|
result_moran = result[0][0]
|
||||||
expected_moran = np.array([row[0] for row in self.moran_data]).mean()
|
expected_moran = np.array([row[0] for row in self.moran_data]).mean()
|
||||||
|
Loading…
Reference in New Issue
Block a user