eflips-depot 4.2.0__py3-none-any.whl → 4.2.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.

@@ -278,7 +278,7 @@ def simple_consumption_simulation(
278
278
  timeseries = None
279
279
  energy_used = consumption * trip.route.distance / 1000 # kWh
280
280
  current_soc = soc_start - energy_used / vehicle_type.battery_capacity
281
-
281
+ session.flush() # TODO
282
282
  # Create a driving event
283
283
  current_event = Event(
284
284
  scenario_id=scenario.id,
@@ -294,6 +294,7 @@ def simple_consumption_simulation(
294
294
  timeseries=timeseries,
295
295
  )
296
296
  session.add(current_event)
297
+ session.flush() # TODO
297
298
 
298
299
  # If the vehicle is
299
300
  # - Capable of opportunity charging
@@ -1188,6 +1189,24 @@ def _generate_vehicle_events(
1188
1189
  and "end" in dict_of_events[time_stamp].keys()
1189
1190
  ):
1190
1191
  start_this_event = dict_of_events[time_stamp]["end"]
1192
+ if start_this_event in dict_of_events.keys():
1193
+ if (
1194
+ dict_of_events[start_this_event]["type"]
1195
+ == "Trip"
1196
+ ):
1197
+ print(
1198
+ f"Vehicle {current_vehicle.ID} must depart immediately after charged. "
1199
+ f"Thus there will be no STANDBY_DEPARTURE event."
1200
+ )
1201
+
1202
+ else:
1203
+ raise ValueError(
1204
+ f"There is already an event "
1205
+ f"{dict_of_events[start_this_event]} at {start_this_event}."
1206
+ )
1207
+
1208
+ continue
1209
+
1191
1210
  dict_of_events[start_this_event] = {
1192
1211
  "type": type(process).__name__,
1193
1212
  "area": current_area.ID,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: eflips-depot
3
- Version: 4.2.0
3
+ Version: 4.2.1
4
4
  Summary: Depot Simulation for eFLIPS
5
5
  Home-page: https://github.com/mpm-tu-berlin/eflips-depot
6
6
  License: AGPL-3.0-or-later
@@ -1,5 +1,5 @@
1
1
  eflips/depot/__init__.py,sha256=n7jte8R6j_Ad4Mp4hkklKwil5r8u8Q_SbXrCC-nf5jM,1556
2
- eflips/depot/api/__init__.py,sha256=JiSTa2Q3GByvv9mAPtmvc-lTzlqN-mcTfeb59AfTxNE,66728
2
+ eflips/depot/api/__init__.py,sha256=vfaJDCPdhAMfqNb9ik4lpmlz62j9JOrJSM9njAv4PJA,67824
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
5
  eflips/depot/api/private/depot.py,sha256=pgLk9rdjZthk35vKCTmcl4VfjYQJRnqR-CPGwBs_9zk,18111
@@ -35,7 +35,7 @@ eflips/depot/simulation.py,sha256=ee0qTzOzG-8ybN36ie_NJallXfC7jUaS9JZvaYFziLs,10
35
35
  eflips/depot/smart_charging.py,sha256=C3BYqzn2-OYY4ipXm0ETtavbAM9QXZMYULBpVoChf0E,54311
36
36
  eflips/depot/standalone.py,sha256=VxcTzBaB67fNJUMmjPRwKXjhqTy6oQ41Coote2LvAmk,22338
37
37
  eflips/depot/validation.py,sha256=TIuY7cQtEJI4H2VVMSuY5IIVkacEEZ67weeMuY3NSAM,7097
38
- eflips_depot-4.2.0.dist-info/LICENSE.md,sha256=KB4XTk1fPHjtZCYDyPyreu6h1LVJVZXYg-5vePcWZAc,34143
39
- eflips_depot-4.2.0.dist-info/METADATA,sha256=FPm1Bqi3HVslAmgOnOludpt-0v1Ke_TpLJY-JKgND-I,5839
40
- eflips_depot-4.2.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
41
- eflips_depot-4.2.0.dist-info/RECORD,,
38
+ eflips_depot-4.2.1.dist-info/LICENSE.md,sha256=KB4XTk1fPHjtZCYDyPyreu6h1LVJVZXYg-5vePcWZAc,34143
39
+ eflips_depot-4.2.1.dist-info/METADATA,sha256=py-gD6MYp6_5DbqTkz-9y2JpULWDEmWlKqzdLKeG9Wg,5839
40
+ eflips_depot-4.2.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
41
+ eflips_depot-4.2.1.dist-info/RECORD,,