Skip to content

Commit

Permalink
Assert positive idling time
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulScheerRLI committed Jun 12, 2024
1 parent ad2332e commit 3ad78df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions simba/rotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,5 +206,6 @@ def get_idle_consumption(first_trip: Trip, second_trip: Trip, vehicle_info: dict
return 0, 0

break_duration = second_trip.departure_time - first_trip.arrival_time
assert break_duration > 0
idle_consumption = break_duration.total_seconds() / 3600 * idle_cons_spec
return idle_consumption, -idle_consumption / capacity

0 comments on commit 3ad78df

Please sign in to comment.