Skip to content

Commit 8ea5d72

Browse files
Fix python linting error
1 parent e827ce2 commit 8ea5d72

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

run_reg_test.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,9 @@ def vtr_command_main(arg_list, prog=None):
199199
print("All tests passed")
200200
elif tests_run and total_num_func_failures != 0 or total_num_qor_failures != 0:
201201
print("Error: {} tests failed".format(total_num_func_failures + total_num_qor_failures))
202-
203-
# If the QoR parsing script throws an exception, it returns -1. This could potentially cancel a run failure and result in a false negative.
202+
203+
# If the QoR parsing script throws an exception, it returns -1.
204+
# This could potentially cancel a run failure and result in a false negative.
204205
# Absolute value is taken to avoid that.
205206
sys.exit(abs(total_num_func_failures) + abs(total_num_qor_failures))
206207

vtr_flow/scripts/python_libs/vtr/parse_vtr_task.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,13 +437,13 @@ def check_two_files(
437437
second_metrics = second_results.metrics(arch, circuit, script_params)
438438
first_metrics = first_results.metrics(arch, circuit, script_params)
439439

440-
if first_metrics == None:
440+
if first_metrics is None:
441441
num_qor_failures += 1
442442
print("Required case {}/{} missing from {} results: {}".format(
443443
arch, circuit, first_name, first_results_filepath
444444
))
445445
continue
446-
446+
447447
first_fail = True
448448
for metric in pass_requirements.keys():
449449

0 commit comments

Comments
 (0)