Skip to content

Commit f645306

Browse files
committed
remove now-unnecessary warning about dropping islands
1 parent 8ca54f4 commit f645306

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

libpysal/weights/weights.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -306,11 +306,6 @@ def to_adjlist(
306306
"pandas must be installed & importable to use this method"
307307
)
308308
n_islands = len(self.islands)
309-
if n_islands > 0 and (not self.silence_warnings):
310-
warnings.warn(
311-
"{} islands in this weights matrix. Conversion to an "
312-
"adjacency list will drop these observations!".format(len(self.islands))
313-
)
314309
links = []
315310
for idx, neighb in self:
316311
if len(neighb) == 0:

0 commit comments

Comments
 (0)