Skip to content

Commit d47b376

Browse files
committed
add format for island warnings
1 parent b090f95 commit d47b376

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libpysal/weights/weights.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def to_adjlist(
309309
if n_islands > 0 and (not self.silence_warnings):
310310
warnings.warn(
311311
"{} islands in this weights matrix. Conversion to an "
312-
"adjacency list will drop these observations!"
312+
"adjacency list will drop these observations!".format(len(self.islands))
313313
)
314314
adjlist = pd.DataFrame(
315315
((idx, n, w) for idx, neighb in self for n, w in list(neighb.items())),

0 commit comments

Comments
 (0)