eflips-depot 4.3.18__py3-none-any.whl → 4.3.19__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.
- eflips/depot/api/__init__.py +12 -2
- {eflips_depot-4.3.18.dist-info → eflips_depot-4.3.19.dist-info}/METADATA +1 -1
- {eflips_depot-4.3.18.dist-info → eflips_depot-4.3.19.dist-info}/RECORD +5 -5
- {eflips_depot-4.3.18.dist-info → eflips_depot-4.3.19.dist-info}/LICENSE.md +0 -0
- {eflips_depot-4.3.18.dist-info → eflips_depot-4.3.19.dist-info}/WHEEL +0 -0
eflips/depot/api/__init__.py
CHANGED
|
@@ -245,8 +245,18 @@ def simple_consumption_simulation(
|
|
|
245
245
|
for rotation in rotations:
|
|
246
246
|
rotation: Rotation
|
|
247
247
|
with session.no_autoflush:
|
|
248
|
-
vehicle_type =
|
|
249
|
-
|
|
248
|
+
vehicle_type = (
|
|
249
|
+
session.query(VehicleType)
|
|
250
|
+
.join(Rotation)
|
|
251
|
+
.filter(Rotation.id == rotation.id)
|
|
252
|
+
.one()
|
|
253
|
+
)
|
|
254
|
+
vehicle = (
|
|
255
|
+
session.query(Vehicle)
|
|
256
|
+
.join(Rotation)
|
|
257
|
+
.filter(Rotation.id == rotation.id)
|
|
258
|
+
.one()
|
|
259
|
+
)
|
|
250
260
|
if vehicle_type.consumption is None:
|
|
251
261
|
raise ValueError(
|
|
252
262
|
"The vehicle type does not have a consumption value set."
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
eflips/depot/__init__.py,sha256=n7jte8R6j_Ad4Mp4hkklKwil5r8u8Q_SbXrCC-nf5jM,1556
|
|
2
|
-
eflips/depot/api/__init__.py,sha256=
|
|
2
|
+
eflips/depot/api/__init__.py,sha256=lEGFfWXFZsq49jY7CUVFkXjYksxRT9exILPEglTnK1E,57457
|
|
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=Fan7vyVDNcQmuKxoETI6FqLEYII-TJlSor2wiT79zNc,35344
|
|
@@ -36,7 +36,7 @@ eflips/depot/simulation.py,sha256=ee0qTzOzG-8ybN36ie_NJallXfC7jUaS9JZvaYFziLs,10
|
|
|
36
36
|
eflips/depot/smart_charging.py,sha256=C3BYqzn2-OYY4ipXm0ETtavbAM9QXZMYULBpVoChf0E,54311
|
|
37
37
|
eflips/depot/standalone.py,sha256=VxcTzBaB67fNJUMmjPRwKXjhqTy6oQ41Coote2LvAmk,22338
|
|
38
38
|
eflips/depot/validation.py,sha256=TIuY7cQtEJI4H2VVMSuY5IIVkacEEZ67weeMuY3NSAM,7097
|
|
39
|
-
eflips_depot-4.3.
|
|
40
|
-
eflips_depot-4.3.
|
|
41
|
-
eflips_depot-4.3.
|
|
42
|
-
eflips_depot-4.3.
|
|
39
|
+
eflips_depot-4.3.19.dist-info/LICENSE.md,sha256=KB4XTk1fPHjtZCYDyPyreu6h1LVJVZXYg-5vePcWZAc,34143
|
|
40
|
+
eflips_depot-4.3.19.dist-info/METADATA,sha256=jeE1B9_GHvTXPKbsiqrqK3RQFLQMea9oD99gJ7tc_AM,5891
|
|
41
|
+
eflips_depot-4.3.19.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
42
|
+
eflips_depot-4.3.19.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|