eflips-depot 4.15.4__py3-none-any.whl → 4.15.6__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.
- eflips/depot/api/private/depot.py +21 -14
- eflips/depot/api/private/results_to_database.py +3 -2
- {eflips_depot-4.15.4.dist-info → eflips_depot-4.15.6.dist-info}/METADATA +1 -1
- {eflips_depot-4.15.4.dist-info → eflips_depot-4.15.6.dist-info}/RECORD +6 -6
- {eflips_depot-4.15.4.dist-info → eflips_depot-4.15.6.dist-info}/WHEEL +0 -0
- {eflips_depot-4.15.4.dist-info → eflips_depot-4.15.6.dist-info}/licenses/LICENSE.md +0 -0
|
@@ -126,20 +126,27 @@ class DepotConfigurationWish:
|
|
|
126
126
|
self.areas = areas
|
|
127
127
|
|
|
128
128
|
if self.auto_generate is True:
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
)
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
129
|
+
assert (
|
|
130
|
+
self.default_power is not None
|
|
131
|
+
), "default_power must be provided if auto_generate is True"
|
|
132
|
+
assert (
|
|
133
|
+
self.standard_block_length is not None
|
|
134
|
+
), "standard_block_length must be provided if auto_generate is True"
|
|
135
|
+
|
|
136
|
+
assert (
|
|
137
|
+
self.cleaning_slots is None
|
|
138
|
+
), "cleaning_slots cannot be provided if auto_generate is True"
|
|
139
|
+
assert (
|
|
140
|
+
self.cleaning_duration is None
|
|
141
|
+
), "cleaning_duration cannot be provided if auto_generate is True"
|
|
142
|
+
assert (
|
|
143
|
+
self.shunting_slots is None
|
|
144
|
+
), "shunting_slots cannot be provided if auto_generate is True"
|
|
145
|
+
assert (
|
|
146
|
+
self.shunting_duration is None
|
|
147
|
+
), "shunting_duration cannot be provided if auto_generate is True"
|
|
148
|
+
|
|
149
|
+
assert areas is None, "areas cannot be provided if auto_generate is True"
|
|
143
150
|
|
|
144
151
|
|
|
145
152
|
def delete_depots(scenario: Scenario, session: Session) -> None:
|
|
@@ -545,8 +545,9 @@ def add_events_into_database(
|
|
|
545
545
|
area_id=area_id,
|
|
546
546
|
subloc_no=process_dict["slot"] if "slot" in process_dict.keys() else 00,
|
|
547
547
|
trip_id=None,
|
|
548
|
-
time_start=timedelta(seconds=start_time) + simulation_start_time,
|
|
549
|
-
time_end=timedelta(seconds=process_dict["end"])
|
|
548
|
+
time_start=timedelta(seconds=math.ceil(start_time)) + simulation_start_time,
|
|
549
|
+
time_end=timedelta(seconds=math.ceil(process_dict["end"]))
|
|
550
|
+
+ simulation_start_time,
|
|
550
551
|
soc_start=process_dict["soc_start"]
|
|
551
552
|
if process_dict["soc_start"] is not None
|
|
552
553
|
else process_dict["soc_end"],
|
|
@@ -3,8 +3,8 @@ eflips/depot/api/__init__.py,sha256=HvPtHi55hXwGgxD_DcYZxUnws1KRkKnezxI3Bao9TTg,
|
|
|
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=494u6FelymWfI-Yt3ybJpLHUL-6zEqBOT2qSrPhRmMo,30038
|
|
6
|
-
eflips/depot/api/private/depot.py,sha256=
|
|
7
|
-
eflips/depot/api/private/results_to_database.py,sha256=
|
|
6
|
+
eflips/depot/api/private/depot.py,sha256=5w2g8Ki6HqR5LRfCgU2sF72jG6EDixqIOTHq2NpWZBY,59864
|
|
7
|
+
eflips/depot/api/private/results_to_database.py,sha256=7gQMPPQpOrArFE3R_8Fni6jK8IZsd5SoNdUh2Zt6pJA,30060
|
|
8
8
|
eflips/depot/api/private/util.py,sha256=e7T_-1AUXoCV9c11zaED2-za7p0TDhYG4Dg0lBZnrZI,18342
|
|
9
9
|
eflips/depot/configuration.py,sha256=Op3hlir-dEN7yHr0kTqbYANoCBKFWK6uKOv3NJl8w_w,35678
|
|
10
10
|
eflips/depot/depot.py,sha256=5NBw5bvOP2cplkRGZbKbG3SOA23F2Kw-UsabHubocPU,107555
|
|
@@ -36,7 +36,7 @@ eflips/depot/simulation.py,sha256=ee0qTzOzG-8ybN36ie_NJallXfC7jUaS9JZvaYFziLs,10
|
|
|
36
36
|
eflips/depot/smart_charging.py,sha256=C3BYqzn2-OYY4ipXm0ETtavbAM9QXZMYULBpVoChf0E,54311
|
|
37
37
|
eflips/depot/standalone.py,sha256=8O01zEXghFG9zZBu0fUD0sXvbHQ-AXw6RB5M750a_sM,22419
|
|
38
38
|
eflips/depot/validation.py,sha256=TIuY7cQtEJI4H2VVMSuY5IIVkacEEZ67weeMuY3NSAM,7097
|
|
39
|
-
eflips_depot-4.15.
|
|
40
|
-
eflips_depot-4.15.
|
|
41
|
-
eflips_depot-4.15.
|
|
42
|
-
eflips_depot-4.15.
|
|
39
|
+
eflips_depot-4.15.6.dist-info/METADATA,sha256=9nnGlmtfW4-SdK24I21ZAoYZBKlnhTntfcpj_5nJ8w0,5961
|
|
40
|
+
eflips_depot-4.15.6.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
41
|
+
eflips_depot-4.15.6.dist-info/licenses/LICENSE.md,sha256=KB4XTk1fPHjtZCYDyPyreu6h1LVJVZXYg-5vePcWZAc,34143
|
|
42
|
+
eflips_depot-4.15.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|