Skip to content

Commit

Permalink
Fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkHaoxiang committed Feb 26, 2023
1 parent 19de6c8 commit 707cf0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/simulation/realm/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def update(self, dt: float) -> None:

def compute_actions(self, truck_size: int = 2, safety_margin: int = 5) -> Optional[float]:
for truck in self._storage.values():
if not truck.done: #Truck is waiting to be released
if not truck.done(): #Truck is waiting to be released
next_road = truck.destination
assert isinstance(next_road, Road)
first_car_pos = next_road.get(0).position * next_road.length
Expand Down

0 comments on commit 707cf0a

Please sign in to comment.