Fix the tests
This commit is contained in:
+2
-2
@@ -1,3 +1,3 @@
|
||||
test/regression.diffs
|
||||
test/regression.out
|
||||
regression.diffs
|
||||
regression.out
|
||||
test/results
|
||||
|
||||
@@ -17,6 +17,6 @@ RETURNS TABLE (
|
||||
)
|
||||
AS $$
|
||||
from crankshaft.clustering import moran_local
|
||||
-- TODO: use named parameters or a dictionary
|
||||
# TODO: use named parameters or a dictionary
|
||||
return moran_local(t, attr, significance, num_ngbrs, permutations, geom_column, id_col, w_type)
|
||||
$$ LANGUAGE plpython2u;
|
||||
$$ LANGUAGE plpythonu;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
-- Install dependencies
|
||||
CREATE EXTENSION plpythonu;
|
||||
CREATE EXTENSION postgis;
|
||||
-- Install the extension
|
||||
CREATE EXTENSION crankshaft;
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
SELECT cdb_crankshaft.cdb_poc_xyz();
|
||||
NOTICE: XYZ...
|
||||
CONTEXT: PL/Python function "cdb_poc_xyz"
|
||||
cdb_poc_xyz
|
||||
-------------
|
||||
xyz-result
|
||||
83
|
||||
(1 row)
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
-- Install dependencies
|
||||
CREATE EXTENSION plpythonu;
|
||||
CREATE EXTENSION postgis;
|
||||
-- Install the extension
|
||||
CREATE EXTENSION crankshaft;
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
SELECT cdb_crankshaft.cdb_poc_xyz();
|
||||
NOTICE: XYZ...
|
||||
CONTEXT: PL/Python function "cdb_poc_xyz"
|
||||
cdb_poc_xyz
|
||||
-------------
|
||||
xyz-result
|
||||
83
|
||||
(1 row)
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
-- Install dependencies
|
||||
CREATE EXTENSION plpythonu;
|
||||
CREATE EXTENSION postgis;
|
||||
|
||||
-- Install the extension
|
||||
CREATE EXTENSION crankshaft;
|
||||
|
||||
Reference in New Issue
Block a user