Skip to content

Commit

Permalink
fix printing
Browse files Browse the repository at this point in the history
  • Loading branch information
segasai committed Nov 29, 2024
1 parent a053782 commit 00f571f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py/rvspecfit/make_interpol.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def process_all(setupInfo,
i += 1
param = dict(zip(parnames, curvec))
if not multi_thread:
if i % (len(specs) // 100) == 0:
if i % max(1, len(specs) // 100) == 0:
print('%d/%d' % (i, len(specs)))
specs.append(
pool.apply_async(
Expand All @@ -276,7 +276,7 @@ def process_all(setupInfo,
lam = lamgrid
for i in range(len(specs)):
if multi_thread:
if i % (len(specs) // 100) == 0:
if i % max(1, len(specs) // 100) == 0:
print('%d/%d' % (i, len(specs)))
specs[i], lognorms[i] = specs[i].get()

Expand Down

0 comments on commit 00f571f

Please sign in to comment.