Skip to content

Commit

Permalink
fixup! fixup! Fix incorrect indexing of early exist destination set
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake Moss committed Feb 12, 2025
1 parent 6379ec7 commit 5ac447b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aequilibrae/paths/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def prepare_graph(self, centroids: Optional[np.ndarray] = None) -> None:
raise ValueError("Centroid IDs need to be positive")
if centroids.shape[0] != np.unique(centroids).shape[0]:
raise ValueError("Centroid IDs are not unique")
self.centroids = np.unique(np.array(centroids, np.uint32))
self.centroids = np.array(centroids, np.uint32)
else:
self.centroids = np.array([], np.uint32)

Expand Down

0 comments on commit 5ac447b

Please sign in to comment.