eflips-depot 4.6.8__tar.gz → 4.6.9__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.
Files changed (43) hide show
  1. {eflips_depot-4.6.8 → eflips_depot-4.6.9}/PKG-INFO +1 -1
  2. {eflips_depot-4.6.8 → eflips_depot-4.6.9}/eflips/depot/api/private/util.py +1 -0
  3. {eflips_depot-4.6.8 → eflips_depot-4.6.9}/eflips/depot/filters.py +3 -3
  4. {eflips_depot-4.6.8 → eflips_depot-4.6.9}/eflips/depot/processes.py +2 -5
  5. {eflips_depot-4.6.8 → eflips_depot-4.6.9}/eflips/depot/standalone.py +2 -0
  6. {eflips_depot-4.6.8 → eflips_depot-4.6.9}/pyproject.toml +1 -1
  7. {eflips_depot-4.6.8 → eflips_depot-4.6.9}/LICENSE.md +0 -0
  8. {eflips_depot-4.6.8 → eflips_depot-4.6.9}/README.md +0 -0
  9. {eflips_depot-4.6.8 → eflips_depot-4.6.9}/eflips/depot/__init__.py +0 -0
  10. {eflips_depot-4.6.8 → eflips_depot-4.6.9}/eflips/depot/api/__init__.py +0 -0
  11. {eflips_depot-4.6.8 → eflips_depot-4.6.9}/eflips/depot/api/defaults/default_settings.json +0 -0
  12. {eflips_depot-4.6.8 → eflips_depot-4.6.9}/eflips/depot/api/private/__init__.py +0 -0
  13. {eflips_depot-4.6.8 → eflips_depot-4.6.9}/eflips/depot/api/private/consumption.py +0 -0
  14. {eflips_depot-4.6.8 → eflips_depot-4.6.9}/eflips/depot/api/private/depot.py +0 -0
  15. {eflips_depot-4.6.8 → eflips_depot-4.6.9}/eflips/depot/api/private/results_to_database.py +0 -0
  16. {eflips_depot-4.6.8 → eflips_depot-4.6.9}/eflips/depot/api/private/smart_charging.py +0 -0
  17. {eflips_depot-4.6.8 → eflips_depot-4.6.9}/eflips/depot/configuration.py +0 -0
  18. {eflips_depot-4.6.8 → eflips_depot-4.6.9}/eflips/depot/depot.py +0 -0
  19. {eflips_depot-4.6.8 → eflips_depot-4.6.9}/eflips/depot/evaluation.py +0 -0
  20. {eflips_depot-4.6.8 → eflips_depot-4.6.9}/eflips/depot/input_epex_power_price.py +0 -0
  21. {eflips_depot-4.6.8 → eflips_depot-4.6.9}/eflips/depot/layout_opt/__init__.py +0 -0
  22. {eflips_depot-4.6.8 → eflips_depot-4.6.9}/eflips/depot/layout_opt/doc/__init__.py +0 -0
  23. {eflips_depot-4.6.8 → eflips_depot-4.6.9}/eflips/depot/layout_opt/doc/direct_details.pdf +0 -0
  24. {eflips_depot-4.6.8 → eflips_depot-4.6.9}/eflips/depot/layout_opt/evaluation.py +0 -0
  25. {eflips_depot-4.6.8 → eflips_depot-4.6.9}/eflips/depot/layout_opt/opt_tools/__init__.py +0 -0
  26. {eflips_depot-4.6.8 → eflips_depot-4.6.9}/eflips/depot/layout_opt/opt_tools/crossover.py +0 -0
  27. {eflips_depot-4.6.8 → eflips_depot-4.6.9}/eflips/depot/layout_opt/opt_tools/fitness_c_urfd.py +0 -0
  28. {eflips_depot-4.6.8 → eflips_depot-4.6.9}/eflips/depot/layout_opt/opt_tools/fitness_util.py +0 -0
  29. {eflips_depot-4.6.8 → eflips_depot-4.6.9}/eflips/depot/layout_opt/opt_tools/init.py +0 -0
  30. {eflips_depot-4.6.8 → eflips_depot-4.6.9}/eflips/depot/layout_opt/opt_tools/mutation.py +0 -0
  31. {eflips_depot-4.6.8 → eflips_depot-4.6.9}/eflips/depot/layout_opt/optimize_c_urfd.py +0 -0
  32. {eflips_depot-4.6.8 → eflips_depot-4.6.9}/eflips/depot/layout_opt/packing.py +0 -0
  33. {eflips_depot-4.6.8 → eflips_depot-4.6.9}/eflips/depot/layout_opt/settings.py +0 -0
  34. {eflips_depot-4.6.8 → eflips_depot-4.6.9}/eflips/depot/layout_opt/template_creation.py +0 -0
  35. {eflips_depot-4.6.8 → eflips_depot-4.6.9}/eflips/depot/layout_opt/util.py +0 -0
  36. {eflips_depot-4.6.8 → eflips_depot-4.6.9}/eflips/depot/plots.py +0 -0
  37. {eflips_depot-4.6.8 → eflips_depot-4.6.9}/eflips/depot/rating.py +0 -0
  38. {eflips_depot-4.6.8 → eflips_depot-4.6.9}/eflips/depot/resources.py +0 -0
  39. {eflips_depot-4.6.8 → eflips_depot-4.6.9}/eflips/depot/settings_config.py +0 -0
  40. {eflips_depot-4.6.8 → eflips_depot-4.6.9}/eflips/depot/simple_vehicle.py +0 -0
  41. {eflips_depot-4.6.8 → eflips_depot-4.6.9}/eflips/depot/simulation.py +0 -0
  42. {eflips_depot-4.6.8 → eflips_depot-4.6.9}/eflips/depot/smart_charging.py +0 -0
  43. {eflips_depot-4.6.8 → eflips_depot-4.6.9}/eflips/depot/validation.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: eflips-depot
3
- Version: 4.6.8
3
+ Version: 4.6.9
4
4
  Summary: Depot Simulation for eFLIPS
5
5
  License: AGPL-3.0-or-later
6
6
  Author: Enrico Lauth
@@ -394,6 +394,7 @@ class VehicleSchedule:
394
394
  distance=None,
395
395
  start_soc=self.departure_soc,
396
396
  end_soc=self.arrival_soc,
397
+ minimal_soc=self.minimal_soc,
397
398
  charge_on_track=self.opportunity_charging,
398
399
  is_copy=self._is_copy,
399
400
  )
@@ -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
- from eflips.helperFunctions import flexprint
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.start_soc
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
@@ -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
- actual_charging_duration = self.env.now - self.starts[0]
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
@@ -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,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "eflips-depot"
3
- version = "4.6.8"
3
+ version = "4.6.9"
4
4
  description = "Depot Simulation for eFLIPS"
5
5
  authors = ["Enrico Lauth <enrico.lauth@tu-berlin.de>",
6
6
  "Ludger Heide <ludger.heide@tu-berlin.de",
File without changes
File without changes