Skip to content

Commit

Permalink
PathResults.compute_path fix stale variables
Browse files Browse the repository at this point in the history
Previously if a path that exists was computed, and then a path that does not exist was attempted, the old path variables
were not cleared.
  • Loading branch information
Jake-Moss committed Oct 20, 2023
1 parent 4bfaede commit e1a1b61
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions aequilibrae/paths/AoN.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,11 @@ def path_computation(origin, destination, graph, results):
del all_nodes
del all_connectors
del mileposts
else:
results.path = None
results.path_nodes = None
results.path_link_directions = None
results.milepost = None


def update_path_trace(results, destination, graph):
Expand Down

0 comments on commit e1a1b61

Please sign in to comment.