Skip to content

Commit

Permalink
Fix typo in route selection
Browse files Browse the repository at this point in the history
  • Loading branch information
ll7 committed Feb 21, 2024
1 parent 3b86a75 commit 40ffb1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion robot_sf/ped_npc/ped_population.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def generate(self, num_samples: int) -> Tuple[List[Vec2D], int, int]:
- The section id of the route where the points were generated (sec_id).
"""
# Randomly select a route based on the calculated probabilities
route_id = np.random.choice(len(self.routes), size=1, p=self._zone_probs)[0]
route_id = np.random.choice(len(self.routes), size=1, p=self._route_probs)[0]
# TODO: Fix the typo in the line above. It should be `self._route_probs` instead of `self._zone_probs`
# TODO: write tests and check what this could change.

Expand Down

0 comments on commit 40ffb1f

Please sign in to comment.