@@ -328,7 +328,7 @@ def test_explore(self):
328
328
m = KnoxLocal .from_dataframe (
329
329
gdf , time_col = "T" , delta = 20 , tau = 5 , keep = True
330
330
).explore ()
331
- numpy .testing .assert_array_equal (
331
+ numpy .testing .assert_array_almost_equal (
332
332
m .get_bounds (),
333
333
[
334
334
[- 0.0005034046601185694 , 28.514258651567 ],
@@ -344,15 +344,15 @@ def test_hotspots_without_neighbors(self):
344
344
gdf = gdf .set_crs (21096 )
345
345
numpy .random .seed (1 )
346
346
knox = KnoxLocal .from_dataframe (
347
- gdf , time_col = "T" , delta = 20 , tau = 5 ,
347
+ gdf , time_col = "T" , delta = 20 , tau = 5 ,
348
348
).hotspots (keep_neighbors = False , inference = 'analytic' )
349
349
assert knox .shape == (3 ,7 )
350
350
351
351
def test_hotspots_with_neighbors (self ):
352
352
gdf = self .gdf .copy ()
353
353
gdf = gdf .set_crs (21096 )
354
354
knox = KnoxLocal .from_dataframe (
355
- gdf , time_col = "T" , delta = 20 , tau = 5 ,
355
+ gdf , time_col = "T" , delta = 20 , tau = 5 ,
356
356
).hotspots (keep_neighbors = True , inference = 'analytic' )
357
357
assert knox .shape == (4 ,7 )
358
358
0 commit comments