eflips-depot 4.6.7__py3-none-any.whl → 4.6.8__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 +9 -2
- {eflips_depot-4.6.7.dist-info → eflips_depot-4.6.8.dist-info}/METADATA +1 -1
- {eflips_depot-4.6.7.dist-info → eflips_depot-4.6.8.dist-info}/RECORD +5 -5
- {eflips_depot-4.6.7.dist-info → eflips_depot-4.6.8.dist-info}/LICENSE.md +0 -0
- {eflips_depot-4.6.7.dist-info → eflips_depot-4.6.8.dist-info}/WHEEL +0 -0
eflips/depot/api/__init__.py
CHANGED
|
@@ -500,14 +500,21 @@ def generate_depot_layout(
|
|
|
500
500
|
AreaType.DIRECT_ONESIDE: rotation_count,
|
|
501
501
|
AreaType.DIRECT_TWOSIDE: None,
|
|
502
502
|
}
|
|
503
|
+
|
|
504
|
+
total_rotation_count = (
|
|
505
|
+
session.query(Rotation)
|
|
506
|
+
.filter(Rotation.scenario_id == scenario.id)
|
|
507
|
+
.count()
|
|
508
|
+
)
|
|
509
|
+
|
|
503
510
|
generate_depot(
|
|
504
511
|
vt_capacity_dict,
|
|
505
512
|
first_stop,
|
|
506
513
|
scenario,
|
|
507
514
|
session,
|
|
508
515
|
charging_power=charging_power,
|
|
509
|
-
num_shunting_slots=max(
|
|
510
|
-
num_cleaning_slots=max(
|
|
516
|
+
num_shunting_slots=max(total_rotation_count // 10, 1),
|
|
517
|
+
num_cleaning_slots=max(total_rotation_count // 10, 1),
|
|
511
518
|
)
|
|
512
519
|
|
|
513
520
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
eflips/depot/__init__.py,sha256=06GUem0JIEunIyJ0_P_MLAGfibGEnNqcPPY0OBpO2NQ,1662
|
|
2
|
-
eflips/depot/api/__init__.py,sha256=
|
|
2
|
+
eflips/depot/api/__init__.py,sha256=GgFmHnpawNDdhc8ki4DwXzpMDrRjl1r0TYNXKdRUehk,49718
|
|
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/consumption.py,sha256=FTF_E-DsbvJNWZJKQy_CPoHQpLz--pWY-inJYg8lsjM,16453
|
|
@@ -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.8.dist-info/LICENSE.md,sha256=KB4XTk1fPHjtZCYDyPyreu6h1LVJVZXYg-5vePcWZAc,34143
|
|
41
|
+
eflips_depot-4.6.8.dist-info/METADATA,sha256=YeJBI-UcgIp0m_fqql6ef1a8eMmNZRG-kMm4R9pkTqo,5940
|
|
42
|
+
eflips_depot-4.6.8.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
|
43
|
+
eflips_depot-4.6.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|