eflips-depot 1.1.0__tar.gz → 1.1.1__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.

Potentially problematic release.


This version of eflips-depot might be problematic. Click here for more details.

Files changed (38) hide show
  1. {eflips_depot-1.1.0 → eflips_depot-1.1.1}/PKG-INFO +1 -1
  2. {eflips_depot-1.1.0 → eflips_depot-1.1.1}/eflips/depot/api/__init__.py +14 -7
  3. {eflips_depot-1.1.0 → eflips_depot-1.1.1}/pyproject.toml +1 -1
  4. {eflips_depot-1.1.0 → eflips_depot-1.1.1}/LICENSE.md +0 -0
  5. {eflips_depot-1.1.0 → eflips_depot-1.1.1}/README.md +0 -0
  6. {eflips_depot-1.1.0 → eflips_depot-1.1.1}/eflips/depot/__init__.py +0 -0
  7. {eflips_depot-1.1.0 → eflips_depot-1.1.1}/eflips/depot/api/defaults/default_settings.json +0 -0
  8. {eflips_depot-1.1.0 → eflips_depot-1.1.1}/eflips/depot/api/private.py +0 -0
  9. {eflips_depot-1.1.0 → eflips_depot-1.1.1}/eflips/depot/configuration.py +0 -0
  10. {eflips_depot-1.1.0 → eflips_depot-1.1.1}/eflips/depot/depot.py +0 -0
  11. {eflips_depot-1.1.0 → eflips_depot-1.1.1}/eflips/depot/evaluation.py +0 -0
  12. {eflips_depot-1.1.0 → eflips_depot-1.1.1}/eflips/depot/filters.py +0 -0
  13. {eflips_depot-1.1.0 → eflips_depot-1.1.1}/eflips/depot/input_epex_power_price.py +0 -0
  14. {eflips_depot-1.1.0 → eflips_depot-1.1.1}/eflips/depot/layout_opt/__init__.py +0 -0
  15. {eflips_depot-1.1.0 → eflips_depot-1.1.1}/eflips/depot/layout_opt/doc/__init__.py +0 -0
  16. {eflips_depot-1.1.0 → eflips_depot-1.1.1}/eflips/depot/layout_opt/doc/direct_details.pdf +0 -0
  17. {eflips_depot-1.1.0 → eflips_depot-1.1.1}/eflips/depot/layout_opt/evaluation.py +0 -0
  18. {eflips_depot-1.1.0 → eflips_depot-1.1.1}/eflips/depot/layout_opt/opt_tools/__init__.py +0 -0
  19. {eflips_depot-1.1.0 → eflips_depot-1.1.1}/eflips/depot/layout_opt/opt_tools/crossover.py +0 -0
  20. {eflips_depot-1.1.0 → eflips_depot-1.1.1}/eflips/depot/layout_opt/opt_tools/fitness_c_urfd.py +0 -0
  21. {eflips_depot-1.1.0 → eflips_depot-1.1.1}/eflips/depot/layout_opt/opt_tools/fitness_util.py +0 -0
  22. {eflips_depot-1.1.0 → eflips_depot-1.1.1}/eflips/depot/layout_opt/opt_tools/init.py +0 -0
  23. {eflips_depot-1.1.0 → eflips_depot-1.1.1}/eflips/depot/layout_opt/opt_tools/mutation.py +0 -0
  24. {eflips_depot-1.1.0 → eflips_depot-1.1.1}/eflips/depot/layout_opt/optimize_c_urfd.py +0 -0
  25. {eflips_depot-1.1.0 → eflips_depot-1.1.1}/eflips/depot/layout_opt/packing.py +0 -0
  26. {eflips_depot-1.1.0 → eflips_depot-1.1.1}/eflips/depot/layout_opt/settings.py +0 -0
  27. {eflips_depot-1.1.0 → eflips_depot-1.1.1}/eflips/depot/layout_opt/template_creation.py +0 -0
  28. {eflips_depot-1.1.0 → eflips_depot-1.1.1}/eflips/depot/layout_opt/util.py +0 -0
  29. {eflips_depot-1.1.0 → eflips_depot-1.1.1}/eflips/depot/plots.py +0 -0
  30. {eflips_depot-1.1.0 → eflips_depot-1.1.1}/eflips/depot/processes.py +0 -0
  31. {eflips_depot-1.1.0 → eflips_depot-1.1.1}/eflips/depot/rating.py +0 -0
  32. {eflips_depot-1.1.0 → eflips_depot-1.1.1}/eflips/depot/resources.py +0 -0
  33. {eflips_depot-1.1.0 → eflips_depot-1.1.1}/eflips/depot/settings_config.py +0 -0
  34. {eflips_depot-1.1.0 → eflips_depot-1.1.1}/eflips/depot/simple_vehicle.py +0 -0
  35. {eflips_depot-1.1.0 → eflips_depot-1.1.1}/eflips/depot/simulation.py +0 -0
  36. {eflips_depot-1.1.0 → eflips_depot-1.1.1}/eflips/depot/smart_charging.py +0 -0
  37. {eflips_depot-1.1.0 → eflips_depot-1.1.1}/eflips/depot/standalone.py +0 -0
  38. {eflips_depot-1.1.0 → eflips_depot-1.1.1}/eflips/depot/validation.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: eflips-depot
3
- Version: 1.1.0
3
+ Version: 1.1.1
4
4
  Summary: Depot Simulation for eFLIPS
5
5
  License: AGPLv3
6
6
  Author: Enrico Lauth
@@ -833,13 +833,20 @@ def _add_evaluation_to_database(
833
833
  f"Could not find Rotation {schedule_id} in scenario {scenario_id}."
834
834
  )
835
835
  else:
836
- rotation_q.update({"vehicle_id": vehicle_id})
837
- for trip in rotation_q.one().trips:
838
- for event in trip.events:
839
- assert event.vehicle_id is None
840
- assert event.event_type == EventType.DRIVING
841
- event.vehicle_id = vehicle_id
842
- event.time_end = event.time_end - timedelta(seconds=1)
836
+ old_vehicle_id = rotation_q.one().vehicle_id
837
+ if old_vehicle_id is None:
838
+ rotation_q.update({"vehicle_id": vehicle_id})
839
+ for trip in rotation_q.one().trips:
840
+ for event in trip.events:
841
+ event.vehicle_id = vehicle_id
842
+ else:
843
+ # If there already is a vehicle assigned to this rotation, we need to change all teh events by this
844
+ # vehicle to the new vehicle
845
+ event_q = session.query(Event).filter(
846
+ Event.vehicle_id == old_vehicle_id
847
+ )
848
+ event_q.update({"vehicle_id": vehicle_id})
849
+ rotation_q.update({"vehicle_id": vehicle_id})
843
850
 
844
851
  # Write Events
845
852
  session.add_all(list_of_events)
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "eflips-depot"
3
- version = "1.1.0"
3
+ version = "1.1.1"
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