Skip to content

Commit

Permalink
remove unnecessary max
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanlct committed Jul 18, 2019
1 parent 1c629eb commit 8170283
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flow/envs/green_wave_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ def get_closest_to_intersection(self, edges, num_closest, padding=False):

# return the ids of the num_closest vehicles closest to the
# intersection, potentially with ""-padding.
pad_lst = [""] * max(0, num_closest - len(veh_ids_ordered))
pad_lst = [""] * (num_closest - len(veh_ids_ordered))
return veh_ids_ordered[:num_closest] + (pad_lst if padding else [])


Expand Down

0 comments on commit 8170283

Please sign in to comment.