Skip to content

Commit 29bbaba

Browse files
Christopher WoodsChristopher Woods
Christopher Woods
authored and
Christopher Woods
committed
Fix a floating point crash in the progress bar code if the update
frequency is too small. Setting this to a minimum of 10.
1 parent b0f207f commit 29bbaba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/metawards/utils/_build_play_matrix.pyx

+3
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,9 @@ def build_play_matrix(network: Network,
188188
nlines = len(lines)
189189
update_freq = int(nlines / 1000)
190190

191+
if update_freq < 10:
192+
update_freq = 10
193+
191194
with Console.progress() as progress:
192195
task = progress.add_task("Parsing contents", total=nlines)
193196

0 commit comments

Comments
 (0)