Skip to content

Commit 7d9f643

Browse files
committed
add tqdm progress description in spread_and_divs
1 parent 88f4195 commit 7d9f643

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

recodiv/triversity/graph.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ def spread_and_divs(self, path, progress=True):
442442

443443
self._div_init(self.last_id[path[0]], self.last_id[path[-1]])
444444

445-
for node, neighbors in tqdm(self.graphs[path[0]][path[1]].items(), disable=not(progress)):
445+
for node, neighbors in tqdm(self.graphs[path[0]][path[1]].items(), disable=not(progress), desc='Computing diversities'):
446446
distribution = self._spread_path(neighbors, path[1:])
447447
self._div_add(node, distribution)
448448

0 commit comments

Comments
 (0)