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.
@@ -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(rotation_count // 10, 1),
510
- num_cleaning_slots=max(rotation_count // 10, 1),
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,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: eflips-depot
3
- Version: 4.6.7
3
+ Version: 4.6.8
4
4
  Summary: Depot Simulation for eFLIPS
5
5
  License: AGPL-3.0-or-later
6
6
  Author: Enrico Lauth
@@ -1,5 +1,5 @@
1
1
  eflips/depot/__init__.py,sha256=06GUem0JIEunIyJ0_P_MLAGfibGEnNqcPPY0OBpO2NQ,1662
2
- eflips/depot/api/__init__.py,sha256=2isjSF0bef8Nq_lHMC2MGgfAFBgj4OWeezouzeSisss,49527
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.7.dist-info/LICENSE.md,sha256=KB4XTk1fPHjtZCYDyPyreu6h1LVJVZXYg-5vePcWZAc,34143
41
- eflips_depot-4.6.7.dist-info/METADATA,sha256=8ZhFsc9DzScN-igSjjhMmKbUnErElAu9FRWZn8rI1w8,5940
42
- eflips_depot-4.6.7.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
43
- eflips_depot-4.6.7.dist-info/RECORD,,
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,,