eflips-depot 3.2.2__py3-none-any.whl → 3.2.3__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.

@@ -1204,24 +1204,24 @@ def add_evaluation_to_database(
1204
1204
  {"vehicle_id": vehicle_id}, synchronize_session="auto"
1205
1205
  )
1206
1206
 
1207
- # Delete all non-depot events
1208
- session.query(Event).filter(
1209
- Event.scenario == scenario,
1210
- Event.trip_id.isnot(None) | Event.station_id.isnot(None),
1211
- ).delete(synchronize_session="auto")
1212
-
1213
- session.flush()
1214
-
1215
- # Delete all vehicles without rotations
1216
- vehicle_assigned_sq = (
1217
- session.query(Rotation.vehicle_id)
1218
- .filter(Rotation.scenario == scenario)
1219
- .distinct()
1220
- .subquery()
1221
- )
1207
+ # Delete all non-depot events
1208
+ session.query(Event).filter(
1209
+ Event.scenario == scenario,
1210
+ Event.trip_id.isnot(None) | Event.station_id.isnot(None),
1211
+ ).delete(synchronize_session="auto")
1212
+
1213
+ session.flush()
1214
+
1215
+ # Delete all vehicles without rotations
1216
+ vehicle_assigned_sq = (
1217
+ session.query(Rotation.vehicle_id)
1218
+ .filter(Rotation.scenario == scenario)
1219
+ .distinct()
1220
+ .subquery()
1221
+ )
1222
1222
 
1223
- session.query(Vehicle).filter(Vehicle.scenario == scenario).filter(
1224
- Vehicle.id.not_in(select(vehicle_assigned_sq))
1225
- ).delete()
1223
+ session.query(Vehicle).filter(Vehicle.scenario == scenario).filter(
1224
+ Vehicle.id.not_in(select(vehicle_assigned_sq))
1225
+ ).delete()
1226
1226
 
1227
- session.flush()
1227
+ session.flush()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: eflips-depot
3
- Version: 3.2.2
3
+ Version: 3.2.3
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=OhjCyPvGZ-XYuyfaCqCp8XHyN9MvJVUGBayB3IoNKBI,58172
2
+ eflips/depot/api/__init__.py,sha256=e61NLqXxxpdWyHYlr5emYECvqSvMjpj9TkHUzALlg80,58104
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=GlIk6vuanbQP3a4e9TYt6xJ-XJTdaFbaxxz_ni17zgo,17136
@@ -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-3.2.2.dist-info/LICENSE.md,sha256=KB4XTk1fPHjtZCYDyPyreu6h1LVJVZXYg-5vePcWZAc,34143
39
- eflips_depot-3.2.2.dist-info/METADATA,sha256=UWxPQcC7Ml5aWUmfKTtYKxEgKkV9-JfCVhh6OiqD7C8,5840
40
- eflips_depot-3.2.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
41
- eflips_depot-3.2.2.dist-info/RECORD,,
38
+ eflips_depot-3.2.3.dist-info/LICENSE.md,sha256=KB4XTk1fPHjtZCYDyPyreu6h1LVJVZXYg-5vePcWZAc,34143
39
+ eflips_depot-3.2.3.dist-info/METADATA,sha256=DyeP3CS6PNsG_oqMsckLOA4P4mKgr8iuitGTNlAzqp0,5840
40
+ eflips_depot-3.2.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
41
+ eflips_depot-3.2.3.dist-info/RECORD,,