Skip to content

Commit b63d97e

Browse files
committed
Some progress in that matrix gen logging
1 parent 634673a commit b63d97e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cluster/util.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,10 @@ def genmatrix(data, combinfunc, symmetric=False, diagonal=None):
108108
logger.info("Generating matrix for %s items - O(n^2)", len(data))
109109
matrix = []
110110
for row_index, item in enumerate(data):
111-
logger.debug("Generating row %s", row_index)
111+
logger.debug("Generating row %s/%s (%0.2f)",
112+
row_index,
113+
len(data),
114+
100.0 * row_index / len(data))
112115
row = []
113116
for col_index, item2 in enumerate(data):
114117
if diagonal is not None and col_index == row_index:

0 commit comments

Comments
 (0)