eflips-depot 4.6.7__py3-none-any.whl → 4.6.9__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 +9 -2
- eflips/depot/api/private/util.py +1 -0
- eflips/depot/filters.py +3 -3
- eflips/depot/processes.py +2 -5
- eflips/depot/standalone.py +2 -0
- {eflips_depot-4.6.7.dist-info → eflips_depot-4.6.9.dist-info}/METADATA +1 -1
- {eflips_depot-4.6.7.dist-info → eflips_depot-4.6.9.dist-info}/RECORD +9 -9
- {eflips_depot-4.6.7.dist-info → eflips_depot-4.6.9.dist-info}/LICENSE.md +0 -0
- {eflips_depot-4.6.7.dist-info → eflips_depot-4.6.9.dist-info}/WHEEL +0 -0
eflips/depot/api/__init__.py
CHANGED
|
@@ -500,14 +500,21 @@ def generate_depot_layout(
|
|
|
500
500
|
AreaType.DIRECT_ONESIDE: rotation_count,
|
|
501
501
|
AreaType.DIRECT_TWOSIDE: None,
|
|
502
502
|
}
|
|
503
|
+
|
|
504
|
+
total_rotation_count = (
|
|
505
|
+
session.query(Rotation)
|
|
506
|
+
.filter(Rotation.scenario_id == scenario.id)
|
|
507
|
+
.count()
|
|
508
|
+
)
|
|
509
|
+
|
|
503
510
|
generate_depot(
|
|
504
511
|
vt_capacity_dict,
|
|
505
512
|
first_stop,
|
|
506
513
|
scenario,
|
|
507
514
|
session,
|
|
508
515
|
charging_power=charging_power,
|
|
509
|
-
num_shunting_slots=max(
|
|
510
|
-
num_cleaning_slots=max(
|
|
516
|
+
num_shunting_slots=max(total_rotation_count // 10, 1),
|
|
517
|
+
num_cleaning_slots=max(total_rotation_count // 10, 1),
|
|
511
518
|
)
|
|
512
519
|
|
|
513
520
|
|
eflips/depot/api/private/util.py
CHANGED
eflips/depot/filters.py
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
import warnings
|
|
3
3
|
|
|
4
|
-
import eflips
|
|
5
4
|
from eflips.settings import globalConstants
|
|
6
|
-
|
|
5
|
+
|
|
6
|
+
import eflips
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
class VehicleFilter:
|
|
@@ -245,7 +245,7 @@ class VehicleFilter:
|
|
|
245
245
|
|
|
246
246
|
elif globalConstants["depot"]["consumption_calc_mode"] == "soc_given":
|
|
247
247
|
if self.trip.charge_on_track:
|
|
248
|
-
result = round(vehicle.battery.soc, 5) >= self.trip.
|
|
248
|
+
result = round(vehicle.battery.soc, 5) >= self.trip.minimal_soc
|
|
249
249
|
else:
|
|
250
250
|
required_energy = (
|
|
251
251
|
self.trip.start_soc - self.trip.end_soc
|
eflips/depot/processes.py
CHANGED
|
@@ -762,8 +762,6 @@ class ChargeAbstract(VehicleProcess, ABC):
|
|
|
762
762
|
if called by Charge(sub-)-classes). Leave None for update requests
|
|
763
763
|
from outside the process.
|
|
764
764
|
"""
|
|
765
|
-
self.last_update = self.env.now
|
|
766
|
-
|
|
767
765
|
if amount is None and (
|
|
768
766
|
self.last_update == self.env.now or self.starts[-1] == self.env.now
|
|
769
767
|
):
|
|
@@ -791,6 +789,7 @@ class ChargeAbstract(VehicleProcess, ABC):
|
|
|
791
789
|
self.vehicle.battery_logs.append(
|
|
792
790
|
BatteryLog(self.env.now, self.vehicle, event_name)
|
|
793
791
|
)
|
|
792
|
+
self.last_update = self.env.now
|
|
794
793
|
|
|
795
794
|
|
|
796
795
|
class Charge(ChargeAbstract):
|
|
@@ -906,9 +905,7 @@ class Charge(ChargeAbstract):
|
|
|
906
905
|
|
|
907
906
|
except simpy.Interrupt:
|
|
908
907
|
flexprint("charge interrupted", env=self.env, switch="processes")
|
|
909
|
-
|
|
910
|
-
actual_charged_energy = (effective_power * actual_charging_duration) / 3600
|
|
911
|
-
self.update_battery("charge_interrupt", amount=actual_charged_energy)
|
|
908
|
+
self.update_battery("charge_interrupt")
|
|
912
909
|
|
|
913
910
|
self.charging_interface.current_power = 0
|
|
914
911
|
self.vehicle.power_logs[self.env.now] = 0
|
eflips/depot/standalone.py
CHANGED
|
@@ -185,6 +185,7 @@ class SimpleTrip:
|
|
|
185
185
|
distance,
|
|
186
186
|
start_soc=None,
|
|
187
187
|
end_soc=None,
|
|
188
|
+
minimal_soc: float | None = None,
|
|
188
189
|
charge_on_track=False,
|
|
189
190
|
is_copy=False,
|
|
190
191
|
):
|
|
@@ -199,6 +200,7 @@ class SimpleTrip:
|
|
|
199
200
|
self.distance = distance
|
|
200
201
|
self.start_soc = start_soc
|
|
201
202
|
self.end_soc = end_soc
|
|
203
|
+
self.minimal_soc = minimal_soc
|
|
202
204
|
self.charge_on_track = charge_on_track
|
|
203
205
|
self.is_copy = is_copy
|
|
204
206
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
eflips/depot/__init__.py,sha256=06GUem0JIEunIyJ0_P_MLAGfibGEnNqcPPY0OBpO2NQ,1662
|
|
2
|
-
eflips/depot/api/__init__.py,sha256=
|
|
2
|
+
eflips/depot/api/__init__.py,sha256=GgFmHnpawNDdhc8ki4DwXzpMDrRjl1r0TYNXKdRUehk,49718
|
|
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=FTF_E-DsbvJNWZJKQy_CPoHQpLz--pWY-inJYg8lsjM,16453
|
|
6
6
|
eflips/depot/api/private/depot.py,sha256=WcCcib3NSbvoL3G06I2ajT8U5L7AkDK5qe969PHq-fg,41014
|
|
7
7
|
eflips/depot/api/private/results_to_database.py,sha256=R3wwGuaEsof2sW_fFv5Y9K0cl2K8W0JKe5VoN2elXTQ,25037
|
|
8
8
|
eflips/depot/api/private/smart_charging.py,sha256=MQ9fXdKByHAz6RSKXYcpJXDBccdJKZ2qGReCHagVCyo,13033
|
|
9
|
-
eflips/depot/api/private/util.py,sha256=
|
|
9
|
+
eflips/depot/api/private/util.py,sha256=YcvjKikgdquYXx61pbDiB3Naa1FTEvEfiEcWbnFGNH8,16841
|
|
10
10
|
eflips/depot/configuration.py,sha256=Op3hlir-dEN7yHr0kTqbYANoCBKFWK6uKOv3NJl8w_w,35678
|
|
11
11
|
eflips/depot/depot.py,sha256=35P1P3jMBbfq9jevmZVI46oM82osEoDL_B6C65drww0,105711
|
|
12
12
|
eflips/depot/evaluation.py,sha256=qqXyP4jA1zFcKuWhliQ6n25ZlGl9mJV-vtXf0yu8WN8,140842
|
|
13
|
-
eflips/depot/filters.py,sha256=
|
|
13
|
+
eflips/depot/filters.py,sha256=1aUK7czuhiATC3P3NN5oRtH1I-kN_-mp_-vkzyyBXn4,16089
|
|
14
14
|
eflips/depot/input_epex_power_price.py,sha256=VPDC1zy-klQpveGIZ8941hL1P_jeNq3IHoLgFTsANig,5569
|
|
15
15
|
eflips/depot/layout_opt/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
16
|
eflips/depot/layout_opt/doc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -28,16 +28,16 @@ eflips/depot/layout_opt/settings.py,sha256=EUGCp4dAX22j2uF8sKqbi9a5iP8hb6QpP7t2N
|
|
|
28
28
|
eflips/depot/layout_opt/template_creation.py,sha256=H4LoFjQfbPjTt9rGvapH2tEUWcQ56kPwDucq7t6YahU,9736
|
|
29
29
|
eflips/depot/layout_opt/util.py,sha256=EYh7IN58ZjysmCFdSieQqIQ9goe1a_ZwARRHxOgjEQo,3780
|
|
30
30
|
eflips/depot/plots.py,sha256=85xInZWfJIOVm03onvppgP5yLTgQeMn-1t5aoNdavyY,2509
|
|
31
|
-
eflips/depot/processes.py,sha256=
|
|
31
|
+
eflips/depot/processes.py,sha256=wVacSuHQnHwe2kN18h4014eN4xs2XEegy9vJdHZ7wzQ,58610
|
|
32
32
|
eflips/depot/rating.py,sha256=audUASHExeWg5ugytPLlcy5QGiTiFucnZ6-v3REoO2g,16427
|
|
33
33
|
eflips/depot/resources.py,sha256=0SuzN8qgMmCqa7oUEXVC_XE6pCUtxTsqOfCsaM9Oh3o,13568
|
|
34
34
|
eflips/depot/settings_config.py,sha256=z7CqPdjd8QRlgZj0Zis-H13cL7LOiheRT4ctYCYGguc,2527
|
|
35
35
|
eflips/depot/simple_vehicle.py,sha256=Wl3IqYxMrs6J0U0iCrG3Qq8ONuDGoZ00r7h7svVyEik,9375
|
|
36
36
|
eflips/depot/simulation.py,sha256=ee0qTzOzG-8ybN36ie_NJallXfC7jUaS9JZvaYFziLs,10676
|
|
37
37
|
eflips/depot/smart_charging.py,sha256=C3BYqzn2-OYY4ipXm0ETtavbAM9QXZMYULBpVoChf0E,54311
|
|
38
|
-
eflips/depot/standalone.py,sha256=
|
|
38
|
+
eflips/depot/standalone.py,sha256=8O01zEXghFG9zZBu0fUD0sXvbHQ-AXw6RB5M750a_sM,22419
|
|
39
39
|
eflips/depot/validation.py,sha256=TIuY7cQtEJI4H2VVMSuY5IIVkacEEZ67weeMuY3NSAM,7097
|
|
40
|
-
eflips_depot-4.6.
|
|
41
|
-
eflips_depot-4.6.
|
|
42
|
-
eflips_depot-4.6.
|
|
43
|
-
eflips_depot-4.6.
|
|
40
|
+
eflips_depot-4.6.9.dist-info/LICENSE.md,sha256=KB4XTk1fPHjtZCYDyPyreu6h1LVJVZXYg-5vePcWZAc,34143
|
|
41
|
+
eflips_depot-4.6.9.dist-info/METADATA,sha256=8JDd8PEG-WlgbVE4NV01trvOyBazApzaPZKBMALcJ_Y,5940
|
|
42
|
+
eflips_depot-4.6.9.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
|
43
|
+
eflips_depot-4.6.9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|