Skip to content

Commit

Permalink
Added GUI
Browse files Browse the repository at this point in the history
Added Completely reworked GUI
Split the main function into multiple so progress bar can be updated between functions easier
Changed error reporting so that try is run for functions instead of inside the function, also results in popup box.
  • Loading branch information
niefia committed Mar 4, 2023
1 parent 8224258 commit 2308669
Show file tree
Hide file tree
Showing 4 changed files with 754 additions and 16 deletions.
2 changes: 1 addition & 1 deletion BFS.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def bfs_distance(combined_data_file, cells_data_file, output_file):
percent_done = int(progress_bar_length * progress / 100)
percent_left = progress_bar_length - percent_done
progress_bar = "[" + "#" * percent_done + " " * percent_left + "]"
print(f"\r{progress_bar} {progress}%", end='', flush=True)
#print(f"\r{progress_bar} {progress}%", end='', flush=True)

# Create a DataFrame to store the results
output_data = pd.DataFrame(list(cost_so_far.items()), columns=["id", "distance"])
Expand Down
Loading

0 comments on commit 2308669

Please sign in to comment.