From 58006c33847affe7fc0372e714cb7c9c548f1337 Mon Sep 17 00:00:00 2001 From: mosc5 Date: Wed, 31 Jan 2024 09:52:00 +0100 Subject: [PATCH] public charging can be type fast --- simbev/car.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/simbev/car.py b/simbev/car.py index 7ec8081..1a4a0a8 100644 --- a/simbev/car.py +++ b/simbev/car.py @@ -551,12 +551,14 @@ def charge_public(self, trip, station_capacity, max_parking_time, use_case): use_case : str Charging use case """ + charge_type = "slow" if station_capacity > trip.simbev.fast_charge_threshold: use_case = "urban_fast" + charge_type = "fast" self.charge( trip, station_capacity, - "slow", + charge_type, use_case, step_size=self.region.region_type.step_size, max_charging_time=max_parking_time,