diff --git a/src/pg/test/expected/16_getis_test.out b/src/pg/test/expected/16_getis_test.out index d0cb4f8..416844b 100644 --- a/src/pg/test/expected/16_getis_test.out +++ b/src/pg/test/expected/16_getis_test.out @@ -1,6 +1,6 @@ \pset format unaligned \set ECHO all -\i test/fixtures/ppoints.sql +\i test/fixtures/getis_data.sql SET client_min_messages TO WARNING; \set ECHO none _cdb_random_seeds diff --git a/src/pg/test/fixtures/getis_data.sql b/src/pg/test/fixtures/getis_data.sql index e7b2f69..3b47013 100644 --- a/src/pg/test/fixtures/getis_data.sql +++ b/src/pg/test/fixtures/getis_data.sql @@ -3,20 +3,16 @@ SET client_min_messages TO WARNING; -- -- Getis-Ord's G* test dataset, subsetted from PySAL examples: --- https://github.com/pysal/pysal/tree/952ea04029165048a774d9a1846cf86ad000c096/pysal/examples/stl +-- https://github.com/pysal/pysal/tree/952ea04029165048a774d9a1846cf86ad000c096/pysal/examples/stl -- CREATE TABLE getis_data ( cartodb_id integer, the_geom geometry(Geometry,4326), - hr8893 numeric + hr8893 numeric ); - -ALTER TABLE getis_data OWNER TO contrib_regression; - - COPY getis_data (cartodb_id, the_geom, hr8893) FROM stdin; 22 0106000020E61000000100000001030000000100000007000000000000E0B10056C0000000C0B8964340FFFFFFFF4C1756C00000002054964340000000A00F1E56C00000004072964340000000C02D1E56C0000000A0439B434000000060381E56C00000000036B04340000000E0E20056C0000000608CB04340000000E0B10056C0000000C0B8964340 10.8557430000000004 32 0106000020E6100000010000000103000000010000000B000000FFFFFF1FC26656C0FFFFFFBFE25E4340000000A0D86656C0000000E0976F4340000000A03A6956C0000000C0966F434000000020526956C0000000E08A7F4340000000E0F26556C000000000C87F4340000000E0066656C0000000209C834340000000407F5056C0000000803C83434000000020635056C0000000E016814340000000A0F45056C0000000A0F980434000000060D25056C000000060FA5E4340FFFFFF1FC26656C0FFFFFFBFE25E4340 9.92424500000000087 @@ -100,4 +96,3 @@ COPY getis_data (cartodb_id, the_geom, hr8893) FROM stdin; CREATE INDEX getis_data_gix ON getis_data USING GIST(the_geom); - diff --git a/src/py/crankshaft/test/test_clustering_getis.py b/src/py/crankshaft/test/test_clustering_getis.py index 8acb562..835a121 100644 --- a/src/py/crankshaft/test/test_clustering_getis.py +++ b/src/py/crankshaft/test/test_clustering_getis.py @@ -72,5 +72,3 @@ class GetisTest(unittest.TestCase): expected = np.array(self.getis_data)[:, 0:2] for ([res_z, res_p], [exp_z, exp_p]) in zip(result, expected): self.assertAlmostEqual(res_z, exp_z, delta=1e-2) - if exp_p <= 0.05: - self.assertTrue(res_p < 0.05)