Skip to content

Commit

Permalink
fix(abr-testing): remove unbound error and define at beginning
Browse files Browse the repository at this point in the history
  • Loading branch information
rclarke0 committed Jul 15, 2024
1 parent 077e012 commit 53d0f69
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions abr-testing/abr_testing/data_collection/abr_google_drive.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,10 @@ def create_data_dictionary(
)
else:
continue
num_of_runs_read = len(runs_and_robots)
print(f"Number of runs read: {num_of_runs_read}")
transposed_runs_and_robots = list(map(list, zip(*runs_and_robots)))
transposed_runs_and_lpc = list(map(list, zip(*runs_and_lpc)))
try:
num_of_runs_added = len(runs_and_robots)
print(f"{num_of_runs_added} run(s) added.")
except UnboundLocalError:
print("No runs added.")
return transposed_runs_and_robots, headers, transposed_runs_and_lpc, headers_lpc


Expand Down

0 comments on commit 53d0f69

Please sign in to comment.