Skip to content

Commit

Permalink
Fix: Fix param use in generate-random-reports (#1054)
Browse files Browse the repository at this point in the history
The n_results param in the generate_reports function was not used
correctly.
  • Loading branch information
timopollmeier authored Oct 16, 2023
1 parent a6e195c commit d6353e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/generate-random-reports.gmp.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,9 +350,9 @@ def generate_reports(task, n_reports, n_results, with_gauss, **kwargs):

for _ in range(n_reports):
if with_gauss:
abs(int(gauss(n_results, 2)))
n_results = abs(int(gauss(n_results, 2)))

report_elem = generate_report_elem(task, **kwargs)
report_elem = generate_report_elem(task, n_results=n_results, **kwargs)
report_elem = e.tostring(report_elem)
reports.append(report_elem)

Expand Down

0 comments on commit d6353e9

Please sign in to comment.