Skip to content

Commit

Permalink
fix aliases and imports
Browse files Browse the repository at this point in the history
  • Loading branch information
ljwolf committed Feb 7, 2022
1 parent 2e2bec8 commit e2ae58d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libpysal/cg/tests/test_ashapes.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ def test_circles(self):
np.testing.assert_allclose(centers, self.circle_verts)

def test_holes(self):
numpy.random.seed(seed=100)
points = numpy.random.rand(1000, 2)*100
np.random.seed(seed=100)
points = np.random.rand(1000, 2)*100
inv_alpha = 3.5
geoms = libpysal.cg.alpha_shape(points, 1/inv_alpha)
geoms = alpha_shape(points, 1/inv_alpha)
assert len(geoms) == 1
holes = geopandas.GeoSeries(geoms.interiors.explode()).reset_index(drop=True)
assert len(holes) == 30
Expand Down

0 comments on commit e2ae58d

Please sign in to comment.