fix: bug in selection algo for age and max notebooks (#2475)

* fix: invert time test

* fix: percent unt
This commit is contained in:
Andrew Ferlitsch
2023-11-09 00:17:51 +00:00
committed by GitHub
parent 9f5cb39eb4
commit 4377a1b485
2 changed files with 2 additions and 2 deletions
@@ -166,7 +166,7 @@ else:
notebooks = [changed_notebook for changed_notebook in changed_notebooks if execute_changed_notebooks_helper.select_notebook(changed_notebook, accumulative_results, args.test_percent)]
# cap the number of notebooks to the specified percentage
max_notebooks = int((len(changed_notebooks) * args.test_percent))
max_notebooks = int((len(changed_notebooks) * (args.test_percenti/100)))
if (len(notebooks) > max_notebooks):
notebooks = notebooks[:max_notebooks]