eflips-depot 4.14.0__py3-none-any.whl → 4.14.1__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/depot.py CHANGED
@@ -556,6 +556,11 @@ class BaseDispatchStrategy(ABC):
556
556
  for proc in vehicle.dwd.active_processes:
557
557
  # Cancel active processes for early departure
558
558
  proc.cancel()
559
+ # Update the soc of assigned trip if the charging is interrupted
560
+ current_soc = vehicle.battery.soc
561
+ trip_delta_soc = trip.start_soc - trip.end_soc
562
+ trip.start_soc = current_soc
563
+ trip.end_soc = current_soc - trip_delta_soc
559
564
 
560
565
  trip.got_early_vehicle = True
561
566
  trip.t_got_early_vehicle = env.now
@@ -830,6 +835,7 @@ class DSFirst(BaseDispatchStrategy):
830
835
 
831
836
 
832
837
  class DSSmart(BaseDispatchStrategy):
838
+ # TODO see what happens if charging process is cancelled for dispatch. Do we need to modify the vehicle schedule soc start as well?
833
839
  name = "SMART"
834
840
  short_description = "smart"
835
841
  tooltip = "Match trips and vehicles using DispatchRating."
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: eflips-depot
3
- Version: 4.14.0
3
+ Version: 4.14.1
4
4
  Summary: Depot Simulation for eFLIPS
5
5
  License: AGPL-3.0-or-later
6
6
  License-File: LICENSE.md
@@ -7,7 +7,7 @@ eflips/depot/api/private/depot.py,sha256=c4XsRN06PScy4Z4yocqrdvMntmgOZdbIxNT9uuN
7
7
  eflips/depot/api/private/results_to_database.py,sha256=nvWb4jEM5JwPAhvAdiQ-qzxUSawfRNsYfv3twNUFcGs,27348
8
8
  eflips/depot/api/private/util.py,sha256=DasTkuGUhlBpY_BtTFWoxSNZU_CRyM3RqEDgO07Eks8,17990
9
9
  eflips/depot/configuration.py,sha256=Op3hlir-dEN7yHr0kTqbYANoCBKFWK6uKOv3NJl8w_w,35678
10
- eflips/depot/depot.py,sha256=pREutXtJlDxjgfwRobAy7UqTHh-tldbVWHN8DIyxs8s,106986
10
+ eflips/depot/depot.py,sha256=yNsH7xPYKpplHP3OeznKRxmmkEYLRP9aoAc6hBS_6Ms,107421
11
11
  eflips/depot/evaluation.py,sha256=qqXyP4jA1zFcKuWhliQ6n25ZlGl9mJV-vtXf0yu8WN8,140842
12
12
  eflips/depot/filters.py,sha256=1aUK7czuhiATC3P3NN5oRtH1I-kN_-mp_-vkzyyBXn4,16089
13
13
  eflips/depot/input_epex_power_price.py,sha256=VPDC1zy-klQpveGIZ8941hL1P_jeNq3IHoLgFTsANig,5569
@@ -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.14.0.dist-info/METADATA,sha256=E_QEqP-LBhuJ5pLcP6CGBdFnoDcl661xUYeQ-BCQONw,5961
40
- eflips_depot-4.14.0.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
41
- eflips_depot-4.14.0.dist-info/licenses/LICENSE.md,sha256=KB4XTk1fPHjtZCYDyPyreu6h1LVJVZXYg-5vePcWZAc,34143
42
- eflips_depot-4.14.0.dist-info/RECORD,,
39
+ eflips_depot-4.14.1.dist-info/METADATA,sha256=zYruc7Cfvr6eiI0zhuBHRTGp4frAYNW5f7p1zsh8dUo,5961
40
+ eflips_depot-4.14.1.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
41
+ eflips_depot-4.14.1.dist-info/licenses/LICENSE.md,sha256=KB4XTk1fPHjtZCYDyPyreu6h1LVJVZXYg-5vePcWZAc,34143
42
+ eflips_depot-4.14.1.dist-info/RECORD,,