eflips-depot 4.6.0__py3-none-any.whl → 4.6.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of eflips-depot might be problematic. Click here for more details.
- eflips/depot/api/private/consumption.py +38 -1
- {eflips_depot-4.6.0.dist-info → eflips_depot-4.6.1.dist-info}/METADATA +1 -1
- {eflips_depot-4.6.0.dist-info → eflips_depot-4.6.1.dist-info}/RECORD +5 -5
- {eflips_depot-4.6.0.dist-info → eflips_depot-4.6.1.dist-info}/LICENSE.md +0 -0
- {eflips_depot-4.6.0.dist-info → eflips_depot-4.6.1.dist-info}/WHEEL +0 -0
|
@@ -151,6 +151,7 @@ def find_charger_occupancy(
|
|
|
151
151
|
charging_events = (
|
|
152
152
|
session.query(Event)
|
|
153
153
|
.filter(
|
|
154
|
+
Event.event_type == EventType.CHARGING_OPPORTUNITY,
|
|
154
155
|
Event.station_id == station.id,
|
|
155
156
|
Event.time_start < time_end,
|
|
156
157
|
Event.time_end > time_start,
|
|
@@ -379,7 +380,43 @@ def attempt_opportunity_charging_event(
|
|
|
379
380
|
timeseries=timeseries,
|
|
380
381
|
)
|
|
381
382
|
session.add(current_event)
|
|
382
|
-
|
|
383
|
+
|
|
384
|
+
# If there is time between the previous trip's end and the charging event's start, add a STANDBY event
|
|
385
|
+
if time_event_start > previous_trip.arrival_time:
|
|
386
|
+
standby_event = Event(
|
|
387
|
+
scenario_id=vehicle.scenario_id,
|
|
388
|
+
vehicle_type_id=vehicle.vehicle_type_id,
|
|
389
|
+
vehicle=vehicle,
|
|
390
|
+
station_id=previous_trip.route.arrival_station_id,
|
|
391
|
+
time_start=previous_trip.arrival_time,
|
|
392
|
+
time_end=time_event_start,
|
|
393
|
+
soc_start=charge_start_soc, # SoC is unchanged while in STANDBY
|
|
394
|
+
soc_end=charge_start_soc,
|
|
395
|
+
event_type=EventType.STANDBY,
|
|
396
|
+
description=f"Standby event before charging after trip {previous_trip.id}.",
|
|
397
|
+
timeseries=None,
|
|
398
|
+
)
|
|
399
|
+
session.add(standby_event)
|
|
400
|
+
|
|
401
|
+
# If there is time between the charging event's end and the next trip's start, add a STANDBY_DEPARTURE event
|
|
402
|
+
if time_event_end < next_trip.departure_time:
|
|
403
|
+
standby_departure_event = Event(
|
|
404
|
+
scenario_id=vehicle.scenario_id,
|
|
405
|
+
vehicle_type_id=vehicle.vehicle_type_id,
|
|
406
|
+
vehicle=vehicle,
|
|
407
|
+
station_id=previous_trip.route.arrival_station_id,
|
|
408
|
+
time_start=time_event_end,
|
|
409
|
+
time_end=next_trip.departure_time,
|
|
410
|
+
soc_start=soc_event_end, # SoC is unchanged while in STANDBY
|
|
411
|
+
soc_end=soc_event_end,
|
|
412
|
+
event_type=EventType.STANDBY_DEPARTURE,
|
|
413
|
+
description=(
|
|
414
|
+
f"Standby departure event after charging, before trip {next_trip.id}."
|
|
415
|
+
),
|
|
416
|
+
timeseries=None,
|
|
417
|
+
)
|
|
418
|
+
session.add(standby_departure_event)
|
|
419
|
+
|
|
383
420
|
return soc_event_end
|
|
384
421
|
|
|
385
422
|
else:
|
|
@@ -2,7 +2,7 @@ eflips/depot/__init__.py,sha256=RQ_UKNrGWA6q17TZFu86ai8pC7qCpcbmAgVKh7aImwo,1613
|
|
|
2
2
|
eflips/depot/api/__init__.py,sha256=Sxsqj5qIcSK-dqtE2UqaHVWEWnycU65N-pDnLuTJfeU,48244
|
|
3
3
|
eflips/depot/api/defaults/default_settings.json,sha256=0eUDTw_rtLQFvthP8oJL93iRXlmAOravAg-4qqGMQAY,5375
|
|
4
4
|
eflips/depot/api/private/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
-
eflips/depot/api/private/consumption.py,sha256=
|
|
5
|
+
eflips/depot/api/private/consumption.py,sha256=WIsXTPSC-GEnzzAeojHv80ylosdKghYjZp0-HAKIsto,16593
|
|
6
6
|
eflips/depot/api/private/depot.py,sha256=v5Edb0sQP2QNIyBLvccVzAK9_kxCszar0cOu5ciFyrw,40780
|
|
7
7
|
eflips/depot/api/private/results_to_database.py,sha256=Sh2VJ3k60QJ5RGkc8sw-7XbljiMe65EHeoagKIpYlHM,24585
|
|
8
8
|
eflips/depot/api/private/smart_charging.py,sha256=MQ9fXdKByHAz6RSKXYcpJXDBccdJKZ2qGReCHagVCyo,13033
|
|
@@ -37,7 +37,7 @@ eflips/depot/simulation.py,sha256=ee0qTzOzG-8ybN36ie_NJallXfC7jUaS9JZvaYFziLs,10
|
|
|
37
37
|
eflips/depot/smart_charging.py,sha256=C3BYqzn2-OYY4ipXm0ETtavbAM9QXZMYULBpVoChf0E,54311
|
|
38
38
|
eflips/depot/standalone.py,sha256=VxcTzBaB67fNJUMmjPRwKXjhqTy6oQ41Coote2LvAmk,22338
|
|
39
39
|
eflips/depot/validation.py,sha256=TIuY7cQtEJI4H2VVMSuY5IIVkacEEZ67weeMuY3NSAM,7097
|
|
40
|
-
eflips_depot-4.6.
|
|
41
|
-
eflips_depot-4.6.
|
|
42
|
-
eflips_depot-4.6.
|
|
43
|
-
eflips_depot-4.6.
|
|
40
|
+
eflips_depot-4.6.1.dist-info/LICENSE.md,sha256=KB4XTk1fPHjtZCYDyPyreu6h1LVJVZXYg-5vePcWZAc,34143
|
|
41
|
+
eflips_depot-4.6.1.dist-info/METADATA,sha256=NE2AQv4V2D92MnSOVSNP4doVRPO1aCSYVmqezpQnggM,5940
|
|
42
|
+
eflips_depot-4.6.1.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
|
|
43
|
+
eflips_depot-4.6.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|