Skip to content

Commit

Permalink
secondary dest fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hsl-petrhaj committed Oct 7, 2024
1 parent 5cbb178 commit b590c57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Scripts/datatypes/tour.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def choose_destination(self, sec_dest_tours: Dict[str, Dict[int, Dict[int, List[
is_in_area = False
except AttributeError:
is_in_area = False
if (self.mode != "walk" and is_in_area
if (self.mode != "walk" and self.mode != "park_and_ride" and is_in_area
and self._sec_dest_gen_draw < self.sec_dest_prob[self.mode]):
orig_rel_idx = orig_idx - bounds.start
dest_idx -= bounds.start
Expand Down

0 comments on commit b590c57

Please sign in to comment.