eflips-depot 4.3.15__py3-none-any.whl → 4.3.17__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.
@@ -87,6 +87,10 @@ def depot_to_template(depot: Depot) -> Dict[str, str | Dict[str, str | int]]:
87
87
  # Helper for adding processes to the template
88
88
  list_of_processes = []
89
89
 
90
+ # Load all areas, sorted by their type
91
+ area_type_order = [AreaType.LINE, AreaType.DIRECT_ONESIDE, AreaType.DIRECT_TWOSIDE]
92
+ sorted_areas = sorted(depot.areas, key=lambda x: area_type_order.index(x.area_type))
93
+
90
94
  # Get dictionary of each area
91
95
  for area in depot.areas:
92
96
  area_name = str(area.id)
@@ -236,7 +240,7 @@ def depot_to_template(depot: Depot) -> Dict[str, str | Dict[str, str | int]]:
236
240
  }
237
241
  if process_type(process) == ProcessType.CHARGING:
238
242
  template["groups"][group_name]["typename"] = "ParkingAreaGroup"
239
- template["groups"][group_name]["parking_strategy_name"] = "SMART2"
243
+ template["groups"][group_name]["parking_strategy_name"] = "FIRST"
240
244
 
241
245
  # Fill in locations of the plan
242
246
  template["plans"]["default"]["locations"].append(group_name)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: eflips-depot
3
- Version: 4.3.15
3
+ Version: 4.3.17
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
@@ -2,7 +2,7 @@ eflips/depot/__init__.py,sha256=n7jte8R6j_Ad4Mp4hkklKwil5r8u8Q_SbXrCC-nf5jM,1556
2
2
  eflips/depot/api/__init__.py,sha256=CHmoF0TGEUuws-F6TglG2Kd8L3T-4j0PpUsPI7XbGYI,95668
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
- eflips/depot/api/private/depot.py,sha256=ZL1AwdrxD6Wn8i0oQPFL9z9NALcQ-ZKuKN0AC5nMWYU,21266
5
+ eflips/depot/api/private/depot.py,sha256=ekKa06bv_yVwkfPbLdnCLQF-0DaxpXQHuxUFqlH1xYE,21486
6
6
  eflips/depot/api/private/smart_charging.py,sha256=bgxBJ-Lytd2JXN_fm8wb268wbRDrwur_zfEzj0cnhu4,13052
7
7
  eflips/depot/api/private/util.py,sha256=Ye-WXNzHcNfunFijK7FCIU3AiCuMg83KnEhnKbtlZu8,17242
8
8
  eflips/depot/configuration.py,sha256=Op3hlir-dEN7yHr0kTqbYANoCBKFWK6uKOv3NJl8w_w,35678
@@ -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.3.15.dist-info/LICENSE.md,sha256=KB4XTk1fPHjtZCYDyPyreu6h1LVJVZXYg-5vePcWZAc,34143
39
- eflips_depot-4.3.15.dist-info/METADATA,sha256=0L7V88In3YIKfPdqNUNdvYfLREbmvmURdGhU0mC8lVc,5840
40
- eflips_depot-4.3.15.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
41
- eflips_depot-4.3.15.dist-info/RECORD,,
38
+ eflips_depot-4.3.17.dist-info/LICENSE.md,sha256=KB4XTk1fPHjtZCYDyPyreu6h1LVJVZXYg-5vePcWZAc,34143
39
+ eflips_depot-4.3.17.dist-info/METADATA,sha256=aibdGSHQpT-gSweuPzuxx7ppgXt1ssY3jLXF0USsj_I,5840
40
+ eflips_depot-4.3.17.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
41
+ eflips_depot-4.3.17.dist-info/RECORD,,