eflips-depot 3.2.1__tar.gz → 3.2.2__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-3.2.1 → eflips_depot-3.2.2}/PKG-INFO +1 -1
- {eflips_depot-3.2.1 → eflips_depot-3.2.2}/eflips/depot/api/__init__.py +19 -2
- {eflips_depot-3.2.1 → eflips_depot-3.2.2}/pyproject.toml +1 -1
- {eflips_depot-3.2.1 → eflips_depot-3.2.2}/LICENSE.md +0 -0
- {eflips_depot-3.2.1 → eflips_depot-3.2.2}/README.md +0 -0
- {eflips_depot-3.2.1 → eflips_depot-3.2.2}/eflips/depot/__init__.py +0 -0
- {eflips_depot-3.2.1 → eflips_depot-3.2.2}/eflips/depot/api/defaults/default_settings.json +0 -0
- {eflips_depot-3.2.1 → eflips_depot-3.2.2}/eflips/depot/api/private/__init__.py +0 -0
- {eflips_depot-3.2.1 → eflips_depot-3.2.2}/eflips/depot/api/private/depot.py +0 -0
- {eflips_depot-3.2.1 → eflips_depot-3.2.2}/eflips/depot/api/private/smart_charging.py +0 -0
- {eflips_depot-3.2.1 → eflips_depot-3.2.2}/eflips/depot/api/private/util.py +0 -0
- {eflips_depot-3.2.1 → eflips_depot-3.2.2}/eflips/depot/configuration.py +0 -0
- {eflips_depot-3.2.1 → eflips_depot-3.2.2}/eflips/depot/depot.py +0 -0
- {eflips_depot-3.2.1 → eflips_depot-3.2.2}/eflips/depot/evaluation.py +0 -0
- {eflips_depot-3.2.1 → eflips_depot-3.2.2}/eflips/depot/filters.py +0 -0
- {eflips_depot-3.2.1 → eflips_depot-3.2.2}/eflips/depot/input_epex_power_price.py +0 -0
- {eflips_depot-3.2.1 → eflips_depot-3.2.2}/eflips/depot/layout_opt/__init__.py +0 -0
- {eflips_depot-3.2.1 → eflips_depot-3.2.2}/eflips/depot/layout_opt/doc/__init__.py +0 -0
- {eflips_depot-3.2.1 → eflips_depot-3.2.2}/eflips/depot/layout_opt/doc/direct_details.pdf +0 -0
- {eflips_depot-3.2.1 → eflips_depot-3.2.2}/eflips/depot/layout_opt/evaluation.py +0 -0
- {eflips_depot-3.2.1 → eflips_depot-3.2.2}/eflips/depot/layout_opt/opt_tools/__init__.py +0 -0
- {eflips_depot-3.2.1 → eflips_depot-3.2.2}/eflips/depot/layout_opt/opt_tools/crossover.py +0 -0
- {eflips_depot-3.2.1 → eflips_depot-3.2.2}/eflips/depot/layout_opt/opt_tools/fitness_c_urfd.py +0 -0
- {eflips_depot-3.2.1 → eflips_depot-3.2.2}/eflips/depot/layout_opt/opt_tools/fitness_util.py +0 -0
- {eflips_depot-3.2.1 → eflips_depot-3.2.2}/eflips/depot/layout_opt/opt_tools/init.py +0 -0
- {eflips_depot-3.2.1 → eflips_depot-3.2.2}/eflips/depot/layout_opt/opt_tools/mutation.py +0 -0
- {eflips_depot-3.2.1 → eflips_depot-3.2.2}/eflips/depot/layout_opt/optimize_c_urfd.py +0 -0
- {eflips_depot-3.2.1 → eflips_depot-3.2.2}/eflips/depot/layout_opt/packing.py +0 -0
- {eflips_depot-3.2.1 → eflips_depot-3.2.2}/eflips/depot/layout_opt/settings.py +0 -0
- {eflips_depot-3.2.1 → eflips_depot-3.2.2}/eflips/depot/layout_opt/template_creation.py +0 -0
- {eflips_depot-3.2.1 → eflips_depot-3.2.2}/eflips/depot/layout_opt/util.py +0 -0
- {eflips_depot-3.2.1 → eflips_depot-3.2.2}/eflips/depot/plots.py +0 -0
- {eflips_depot-3.2.1 → eflips_depot-3.2.2}/eflips/depot/processes.py +0 -0
- {eflips_depot-3.2.1 → eflips_depot-3.2.2}/eflips/depot/rating.py +0 -0
- {eflips_depot-3.2.1 → eflips_depot-3.2.2}/eflips/depot/resources.py +0 -0
- {eflips_depot-3.2.1 → eflips_depot-3.2.2}/eflips/depot/settings_config.py +0 -0
- {eflips_depot-3.2.1 → eflips_depot-3.2.2}/eflips/depot/simple_vehicle.py +0 -0
- {eflips_depot-3.2.1 → eflips_depot-3.2.2}/eflips/depot/simulation.py +0 -0
- {eflips_depot-3.2.1 → eflips_depot-3.2.2}/eflips/depot/smart_charging.py +0 -0
- {eflips_depot-3.2.1 → eflips_depot-3.2.2}/eflips/depot/standalone.py +0 -0
- {eflips_depot-3.2.1 → eflips_depot-3.2.2}/eflips/depot/validation.py +0 -0
|
@@ -45,6 +45,7 @@ from eflips.model import (
|
|
|
45
45
|
Vehicle,
|
|
46
46
|
Process,
|
|
47
47
|
AssocAreaProcess,
|
|
48
|
+
Station,
|
|
48
49
|
)
|
|
49
50
|
from sqlalchemy.orm import Session
|
|
50
51
|
from sqlalchemy.sql import select
|
|
@@ -842,8 +843,8 @@ def add_evaluation_to_database(
|
|
|
842
843
|
# In case there are no copy trips before or after the non-copy trip
|
|
843
844
|
continue
|
|
844
845
|
|
|
845
|
-
# The range of time of events to be generated. It is between the copy trip before the first non-copy trip
|
|
846
|
-
# copy trip after the last non-copy trip
|
|
846
|
+
# The range of time of events to be generated. It is between the copy trip before the first non-copy trip
|
|
847
|
+
# and the copy trip after the last non-copy trip
|
|
847
848
|
earliest_time = sorted(dict_of_events.keys())[0]
|
|
848
849
|
latest_time = sorted(dict_of_events.keys())[-1]
|
|
849
850
|
|
|
@@ -874,6 +875,21 @@ def add_evaluation_to_database(
|
|
|
874
875
|
expected_area = waiting_info["area"]
|
|
875
876
|
# Find the area for standby arrival event
|
|
876
877
|
|
|
878
|
+
# Get the corresponding depot id first by grabbing one of the rotations and get its departure station
|
|
879
|
+
some_rotation_id = current_vehicle.finished_trips[0].ID
|
|
880
|
+
some_rotation = (
|
|
881
|
+
session.query(Rotation)
|
|
882
|
+
.filter(Rotation.id == some_rotation_id)
|
|
883
|
+
.one()
|
|
884
|
+
)
|
|
885
|
+
start_station = some_rotation.trips[0].route.departure_station_id
|
|
886
|
+
depot_id = (
|
|
887
|
+
session.query(Depot.id)
|
|
888
|
+
.join(Station)
|
|
889
|
+
.filter(Station.id == start_station)
|
|
890
|
+
.one()[0]
|
|
891
|
+
)
|
|
892
|
+
|
|
877
893
|
waiting_area_id = (
|
|
878
894
|
session.query(Area.id)
|
|
879
895
|
.join(AssocAreaProcess, AssocAreaProcess.area_id == Area.id)
|
|
@@ -886,6 +902,7 @@ def add_evaluation_to_database(
|
|
|
886
902
|
Area.vehicle_type_id
|
|
887
903
|
== int(current_vehicle.vehicle_type.ID),
|
|
888
904
|
Area.scenario_id == scenario.id,
|
|
905
|
+
Area.depot_id == depot_id,
|
|
889
906
|
)
|
|
890
907
|
.one()[0]
|
|
891
908
|
)
|
|
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-3.2.1 → eflips_depot-3.2.2}/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
|