Skip to content

Commit

Permalink
cast break duration to integer seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulScheerRLI committed Jun 12, 2024
1 parent 3ad78df commit 812abe2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simba/rotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +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
assert break_duration.total_seconds() >= 0
idle_consumption = break_duration.total_seconds() / 3600 * idle_cons_spec
return idle_consumption, -idle_consumption / capacity

0 comments on commit 812abe2

Please sign in to comment.