eflips-depot 4.6.4__tar.gz → 4.6.5__tar.gz
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.
- {eflips_depot-4.6.4 → eflips_depot-4.6.5}/PKG-INFO +1 -1
- {eflips_depot-4.6.4 → eflips_depot-4.6.5}/eflips/depot/api/__init__.py +9 -2
- {eflips_depot-4.6.4 → eflips_depot-4.6.5}/eflips/depot/api/private/depot.py +7 -1
- {eflips_depot-4.6.4 → eflips_depot-4.6.5}/pyproject.toml +1 -1
- {eflips_depot-4.6.4 → eflips_depot-4.6.5}/LICENSE.md +0 -0
- {eflips_depot-4.6.4 → eflips_depot-4.6.5}/README.md +0 -0
- {eflips_depot-4.6.4 → eflips_depot-4.6.5}/eflips/depot/__init__.py +0 -0
- {eflips_depot-4.6.4 → eflips_depot-4.6.5}/eflips/depot/api/defaults/default_settings.json +0 -0
- {eflips_depot-4.6.4 → eflips_depot-4.6.5}/eflips/depot/api/private/__init__.py +0 -0
- {eflips_depot-4.6.4 → eflips_depot-4.6.5}/eflips/depot/api/private/consumption.py +0 -0
- {eflips_depot-4.6.4 → eflips_depot-4.6.5}/eflips/depot/api/private/results_to_database.py +0 -0
- {eflips_depot-4.6.4 → eflips_depot-4.6.5}/eflips/depot/api/private/smart_charging.py +0 -0
- {eflips_depot-4.6.4 → eflips_depot-4.6.5}/eflips/depot/api/private/util.py +0 -0
- {eflips_depot-4.6.4 → eflips_depot-4.6.5}/eflips/depot/configuration.py +0 -0
- {eflips_depot-4.6.4 → eflips_depot-4.6.5}/eflips/depot/depot.py +0 -0
- {eflips_depot-4.6.4 → eflips_depot-4.6.5}/eflips/depot/evaluation.py +0 -0
- {eflips_depot-4.6.4 → eflips_depot-4.6.5}/eflips/depot/filters.py +0 -0
- {eflips_depot-4.6.4 → eflips_depot-4.6.5}/eflips/depot/input_epex_power_price.py +0 -0
- {eflips_depot-4.6.4 → eflips_depot-4.6.5}/eflips/depot/layout_opt/__init__.py +0 -0
- {eflips_depot-4.6.4 → eflips_depot-4.6.5}/eflips/depot/layout_opt/doc/__init__.py +0 -0
- {eflips_depot-4.6.4 → eflips_depot-4.6.5}/eflips/depot/layout_opt/doc/direct_details.pdf +0 -0
- {eflips_depot-4.6.4 → eflips_depot-4.6.5}/eflips/depot/layout_opt/evaluation.py +0 -0
- {eflips_depot-4.6.4 → eflips_depot-4.6.5}/eflips/depot/layout_opt/opt_tools/__init__.py +0 -0
- {eflips_depot-4.6.4 → eflips_depot-4.6.5}/eflips/depot/layout_opt/opt_tools/crossover.py +0 -0
- {eflips_depot-4.6.4 → eflips_depot-4.6.5}/eflips/depot/layout_opt/opt_tools/fitness_c_urfd.py +0 -0
- {eflips_depot-4.6.4 → eflips_depot-4.6.5}/eflips/depot/layout_opt/opt_tools/fitness_util.py +0 -0
- {eflips_depot-4.6.4 → eflips_depot-4.6.5}/eflips/depot/layout_opt/opt_tools/init.py +0 -0
- {eflips_depot-4.6.4 → eflips_depot-4.6.5}/eflips/depot/layout_opt/opt_tools/mutation.py +0 -0
- {eflips_depot-4.6.4 → eflips_depot-4.6.5}/eflips/depot/layout_opt/optimize_c_urfd.py +0 -0
- {eflips_depot-4.6.4 → eflips_depot-4.6.5}/eflips/depot/layout_opt/packing.py +0 -0
- {eflips_depot-4.6.4 → eflips_depot-4.6.5}/eflips/depot/layout_opt/settings.py +0 -0
- {eflips_depot-4.6.4 → eflips_depot-4.6.5}/eflips/depot/layout_opt/template_creation.py +0 -0
- {eflips_depot-4.6.4 → eflips_depot-4.6.5}/eflips/depot/layout_opt/util.py +0 -0
- {eflips_depot-4.6.4 → eflips_depot-4.6.5}/eflips/depot/plots.py +0 -0
- {eflips_depot-4.6.4 → eflips_depot-4.6.5}/eflips/depot/processes.py +0 -0
- {eflips_depot-4.6.4 → eflips_depot-4.6.5}/eflips/depot/rating.py +0 -0
- {eflips_depot-4.6.4 → eflips_depot-4.6.5}/eflips/depot/resources.py +0 -0
- {eflips_depot-4.6.4 → eflips_depot-4.6.5}/eflips/depot/settings_config.py +0 -0
- {eflips_depot-4.6.4 → eflips_depot-4.6.5}/eflips/depot/simple_vehicle.py +0 -0
- {eflips_depot-4.6.4 → eflips_depot-4.6.5}/eflips/depot/simulation.py +0 -0
- {eflips_depot-4.6.4 → eflips_depot-4.6.5}/eflips/depot/smart_charging.py +0 -0
- {eflips_depot-4.6.4 → eflips_depot-4.6.5}/eflips/depot/standalone.py +0 -0
- {eflips_depot-4.6.4 → eflips_depot-4.6.5}/eflips/depot/validation.py +0 -0
|
@@ -794,6 +794,10 @@ def init_simulation(
|
|
|
794
794
|
if "None" in vehicle_types_for_depot:
|
|
795
795
|
vehicle_types_for_depot.remove("None")
|
|
796
796
|
|
|
797
|
+
# In this case, all types are allowed
|
|
798
|
+
if len(vehicle_types_for_depot) == 0:
|
|
799
|
+
vehicle_types_for_depot = set([str(vt.id) for vt in scenario.vehicle_types])
|
|
800
|
+
|
|
797
801
|
# If we have a vehicle count dictionary, we validate and use ir
|
|
798
802
|
if vehicle_count_dict is not None and depot_id in vehicle_count_dict.keys():
|
|
799
803
|
if set(vehicle_count_dict[depot_id].keys()) < vehicle_types_for_depot:
|
|
@@ -809,8 +813,11 @@ def init_simulation(
|
|
|
809
813
|
for vehicle_type in vehicle_types_for_depot:
|
|
810
814
|
vehicle_count = 0
|
|
811
815
|
for area in depot.areas:
|
|
812
|
-
if
|
|
813
|
-
|
|
816
|
+
if (
|
|
817
|
+
area.vehicle_type_id == int(vehicle_type)
|
|
818
|
+
or area.vehicle_type_id is None
|
|
819
|
+
):
|
|
820
|
+
# The areas allow either one type, or all vehicle types
|
|
814
821
|
for p in area.processes:
|
|
815
822
|
if p.electric_power is not None and p.duration is None:
|
|
816
823
|
vehicle_count += area.capacity
|
|
@@ -111,7 +111,13 @@ def depot_to_template(depot: Depot) -> Dict[str, str | Dict[str, str | int]]:
|
|
|
111
111
|
}
|
|
112
112
|
else:
|
|
113
113
|
# If the vehicle type id is not set, the area is for all vehicle types
|
|
114
|
-
|
|
114
|
+
scenario = depot.scenario
|
|
115
|
+
all_vehicle_type_ids = [str(vt.id) for vt in scenario.vehicle_types]
|
|
116
|
+
|
|
117
|
+
template["areas"][area_name]["entry_filter"] = {
|
|
118
|
+
"filter_names": ["vehicle_type"],
|
|
119
|
+
"vehicle_types": all_vehicle_type_ids,
|
|
120
|
+
}
|
|
115
121
|
|
|
116
122
|
for process in area.processes:
|
|
117
123
|
# Add process into process list
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{eflips_depot-4.6.4 → eflips_depot-4.6.5}/eflips/depot/layout_opt/opt_tools/fitness_c_urfd.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|