eflips-depot 3.0.3__py3-none-any.whl → 3.0.4__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.
Potentially problematic release.
This version of eflips-depot might be problematic. Click here for more details.
- eflips/depot/api/__init__.py +2 -10
- {eflips_depot-3.0.3.dist-info → eflips_depot-3.0.4.dist-info}/METADATA +5 -3
- {eflips_depot-3.0.3.dist-info → eflips_depot-3.0.4.dist-info}/RECORD +5 -5
- {eflips_depot-3.0.3.dist-info → eflips_depot-3.0.4.dist-info}/LICENSE.md +0 -0
- {eflips_depot-3.0.3.dist-info → eflips_depot-3.0.4.dist-info}/WHEEL +0 -0
eflips/depot/api/__init__.py
CHANGED
|
@@ -306,7 +306,7 @@ def generate_depot_layout(
|
|
|
306
306
|
max_occupancies: Dict[eflips.model.VehicleType, int] = {}
|
|
307
307
|
max_clean_occupancies: Dict[eflips.model.VehicleType, int] = {}
|
|
308
308
|
for vehicle_type, rotations in vehicle_type_dict.items():
|
|
309
|
-
# Slightly
|
|
309
|
+
# Slightly convoluted vehicle summation
|
|
310
310
|
start_time = min(
|
|
311
311
|
[rotation.trips[0].departure_time for rotation in rotations]
|
|
312
312
|
).timestamp()
|
|
@@ -665,14 +665,10 @@ def add_evaluation_to_database(
|
|
|
665
665
|
|
|
666
666
|
list_of_vehicles = []
|
|
667
667
|
|
|
668
|
-
list_of_events = []
|
|
669
|
-
|
|
670
668
|
list_of_assigned_schedules = []
|
|
671
669
|
|
|
672
670
|
# Read results from depot_evaluation categorized by vehicle
|
|
673
671
|
for current_vehicle in depot_evaluation.vehicle_generator.items:
|
|
674
|
-
list_of_events_per_vehicle = []
|
|
675
|
-
|
|
676
672
|
vehicle_type_id = int(current_vehicle.vehicle_type.ID)
|
|
677
673
|
|
|
678
674
|
# Create a Vehicle object for database
|
|
@@ -759,7 +755,7 @@ def add_evaluation_to_database(
|
|
|
759
755
|
"end": end_time,
|
|
760
756
|
"area": waiting_area_id,
|
|
761
757
|
"slot": current_slot,
|
|
762
|
-
"is_area_sink":
|
|
758
|
+
"is_area_sink": False,
|
|
763
759
|
}
|
|
764
760
|
|
|
765
761
|
# Create a list of battery log in order of time asc. Convenient for looking up corresponding soc
|
|
@@ -982,9 +978,6 @@ def add_evaluation_to_database(
|
|
|
982
978
|
timeseries=None,
|
|
983
979
|
)
|
|
984
980
|
session.add(current_event)
|
|
985
|
-
list_of_events_per_vehicle.append(current_event)
|
|
986
|
-
|
|
987
|
-
list_of_events.extend(list_of_events_per_vehicle)
|
|
988
981
|
|
|
989
982
|
# For non-copy schedules with no predecessor events, adding a dummy standby-departure
|
|
990
983
|
if (
|
|
@@ -1033,7 +1026,6 @@ def add_evaluation_to_database(
|
|
|
1033
1026
|
)
|
|
1034
1027
|
|
|
1035
1028
|
session.add(standby_event)
|
|
1036
|
-
list_of_events.append(standby_event)
|
|
1037
1029
|
|
|
1038
1030
|
# New rotation assignment
|
|
1039
1031
|
for schedule_id, vehicle_id in list_of_assigned_schedules:
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: eflips-depot
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.4
|
|
4
4
|
Summary: Depot Simulation for eFLIPS
|
|
5
|
-
|
|
5
|
+
Home-page: https://github.com/mpm-tu-berlin/eflips-depot
|
|
6
|
+
License: AGPL-3.0-or-later
|
|
6
7
|
Author: Enrico Lauth
|
|
7
8
|
Author-email: enrico.lauth@tu-berlin.de
|
|
8
9
|
Requires-Python: >=3.10,<4.0
|
|
9
|
-
Classifier: License ::
|
|
10
|
+
Classifier: License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)
|
|
10
11
|
Classifier: Programming Language :: Python :: 3
|
|
11
12
|
Classifier: Programming Language :: Python :: 3.10
|
|
12
13
|
Classifier: Programming Language :: Python :: 3.11
|
|
@@ -17,6 +18,7 @@ Requires-Dist: pandas (>=2.1.4,<3.0.0)
|
|
|
17
18
|
Requires-Dist: simpy (>=4.0.1,<5.0.0)
|
|
18
19
|
Requires-Dist: xlrd (<=1.2.0)
|
|
19
20
|
Requires-Dist: xlsxwriter (>=3.1.9,<4.0.0)
|
|
21
|
+
Project-URL: Repository, https://github.com/mpm-tu-berlin/eflips-depot
|
|
20
22
|
Description-Content-Type: text/markdown
|
|
21
23
|
|
|
22
24
|
[](https://github.com/mpm-tu-berlin/eflips-depot/actions/workflows/postgres_eflips_depot.yml)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
eflips/depot/__init__.py,sha256=n7jte8R6j_Ad4Mp4hkklKwil5r8u8Q_SbXrCC-nf5jM,1556
|
|
2
|
-
eflips/depot/api/__init__.py,sha256=
|
|
2
|
+
eflips/depot/api/__init__.py,sha256=8wTudvo_4K4rs2hopks-tFbNtKyy-rQ1XZEBK7T76uM,49861
|
|
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/depot.py,sha256=GlIk6vuanbQP3a4e9TYt6xJ-XJTdaFbaxxz_ni17zgo,17136
|
|
@@ -34,7 +34,7 @@ eflips/depot/simulation.py,sha256=ee0qTzOzG-8ybN36ie_NJallXfC7jUaS9JZvaYFziLs,10
|
|
|
34
34
|
eflips/depot/smart_charging.py,sha256=C3BYqzn2-OYY4ipXm0ETtavbAM9QXZMYULBpVoChf0E,54311
|
|
35
35
|
eflips/depot/standalone.py,sha256=VxcTzBaB67fNJUMmjPRwKXjhqTy6oQ41Coote2LvAmk,22338
|
|
36
36
|
eflips/depot/validation.py,sha256=TIuY7cQtEJI4H2VVMSuY5IIVkacEEZ67weeMuY3NSAM,7097
|
|
37
|
-
eflips_depot-3.0.
|
|
38
|
-
eflips_depot-3.0.
|
|
39
|
-
eflips_depot-3.0.
|
|
40
|
-
eflips_depot-3.0.
|
|
37
|
+
eflips_depot-3.0.4.dist-info/LICENSE.md,sha256=KB4XTk1fPHjtZCYDyPyreu6h1LVJVZXYg-5vePcWZAc,34143
|
|
38
|
+
eflips_depot-3.0.4.dist-info/METADATA,sha256=FAyBc5jwSCKArr4nNQbExWg42FJWiwAUHxaU-V-Mf6M,5833
|
|
39
|
+
eflips_depot-3.0.4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
40
|
+
eflips_depot-3.0.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|