eflips-depot 4.15.9__tar.gz → 4.15.10__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.
- {eflips_depot-4.15.9 → eflips_depot-4.15.10}/PKG-INFO +1 -1
- {eflips_depot-4.15.9 → eflips_depot-4.15.10}/eflips/depot/api/__init__.py +12 -2
- {eflips_depot-4.15.9 → eflips_depot-4.15.10}/pyproject.toml +1 -1
- {eflips_depot-4.15.9 → eflips_depot-4.15.10}/LICENSE.md +0 -0
- {eflips_depot-4.15.9 → eflips_depot-4.15.10}/README.md +0 -0
- {eflips_depot-4.15.9 → eflips_depot-4.15.10}/eflips/depot/__init__.py +0 -0
- {eflips_depot-4.15.9 → eflips_depot-4.15.10}/eflips/depot/api/defaults/default_settings.json +0 -0
- {eflips_depot-4.15.9 → eflips_depot-4.15.10}/eflips/depot/api/private/__init__.py +0 -0
- {eflips_depot-4.15.9 → eflips_depot-4.15.10}/eflips/depot/api/private/consumption.py +0 -0
- {eflips_depot-4.15.9 → eflips_depot-4.15.10}/eflips/depot/api/private/depot.py +0 -0
- {eflips_depot-4.15.9 → eflips_depot-4.15.10}/eflips/depot/api/private/results_to_database.py +0 -0
- {eflips_depot-4.15.9 → eflips_depot-4.15.10}/eflips/depot/api/private/util.py +0 -0
- {eflips_depot-4.15.9 → eflips_depot-4.15.10}/eflips/depot/configuration.py +0 -0
- {eflips_depot-4.15.9 → eflips_depot-4.15.10}/eflips/depot/depot.py +0 -0
- {eflips_depot-4.15.9 → eflips_depot-4.15.10}/eflips/depot/evaluation.py +0 -0
- {eflips_depot-4.15.9 → eflips_depot-4.15.10}/eflips/depot/filters.py +0 -0
- {eflips_depot-4.15.9 → eflips_depot-4.15.10}/eflips/depot/input_epex_power_price.py +0 -0
- {eflips_depot-4.15.9 → eflips_depot-4.15.10}/eflips/depot/layout_opt/__init__.py +0 -0
- {eflips_depot-4.15.9 → eflips_depot-4.15.10}/eflips/depot/layout_opt/doc/__init__.py +0 -0
- {eflips_depot-4.15.9 → eflips_depot-4.15.10}/eflips/depot/layout_opt/doc/direct_details.pdf +0 -0
- {eflips_depot-4.15.9 → eflips_depot-4.15.10}/eflips/depot/layout_opt/evaluation.py +0 -0
- {eflips_depot-4.15.9 → eflips_depot-4.15.10}/eflips/depot/layout_opt/opt_tools/__init__.py +0 -0
- {eflips_depot-4.15.9 → eflips_depot-4.15.10}/eflips/depot/layout_opt/opt_tools/crossover.py +0 -0
- {eflips_depot-4.15.9 → eflips_depot-4.15.10}/eflips/depot/layout_opt/opt_tools/fitness_c_urfd.py +0 -0
- {eflips_depot-4.15.9 → eflips_depot-4.15.10}/eflips/depot/layout_opt/opt_tools/fitness_util.py +0 -0
- {eflips_depot-4.15.9 → eflips_depot-4.15.10}/eflips/depot/layout_opt/opt_tools/init.py +0 -0
- {eflips_depot-4.15.9 → eflips_depot-4.15.10}/eflips/depot/layout_opt/opt_tools/mutation.py +0 -0
- {eflips_depot-4.15.9 → eflips_depot-4.15.10}/eflips/depot/layout_opt/optimize_c_urfd.py +0 -0
- {eflips_depot-4.15.9 → eflips_depot-4.15.10}/eflips/depot/layout_opt/packing.py +0 -0
- {eflips_depot-4.15.9 → eflips_depot-4.15.10}/eflips/depot/layout_opt/settings.py +0 -0
- {eflips_depot-4.15.9 → eflips_depot-4.15.10}/eflips/depot/layout_opt/template_creation.py +0 -0
- {eflips_depot-4.15.9 → eflips_depot-4.15.10}/eflips/depot/layout_opt/util.py +0 -0
- {eflips_depot-4.15.9 → eflips_depot-4.15.10}/eflips/depot/plots.py +0 -0
- {eflips_depot-4.15.9 → eflips_depot-4.15.10}/eflips/depot/processes.py +0 -0
- {eflips_depot-4.15.9 → eflips_depot-4.15.10}/eflips/depot/rating.py +0 -0
- {eflips_depot-4.15.9 → eflips_depot-4.15.10}/eflips/depot/resources.py +0 -0
- {eflips_depot-4.15.9 → eflips_depot-4.15.10}/eflips/depot/settings_config.py +0 -0
- {eflips_depot-4.15.9 → eflips_depot-4.15.10}/eflips/depot/simple_vehicle.py +0 -0
- {eflips_depot-4.15.9 → eflips_depot-4.15.10}/eflips/depot/simulation.py +0 -0
- {eflips_depot-4.15.9 → eflips_depot-4.15.10}/eflips/depot/smart_charging.py +0 -0
- {eflips_depot-4.15.9 → eflips_depot-4.15.10}/eflips/depot/standalone.py +0 -0
- {eflips_depot-4.15.9 → eflips_depot-4.15.10}/eflips/depot/validation.py +0 -0
|
@@ -328,13 +328,23 @@ def simple_consumption_simulation(
|
|
|
328
328
|
|
|
329
329
|
# The departure SoC for this rotation is the SoC of the last event preceding the first trip
|
|
330
330
|
with session.no_autoflush:
|
|
331
|
-
|
|
331
|
+
current_soc_q = (
|
|
332
332
|
session.query(Event.soc_end)
|
|
333
333
|
.filter(Event.vehicle_id == rotation.vehicle_id)
|
|
334
334
|
.filter(Event.time_end <= rotation.trips[0].departure_time)
|
|
335
335
|
.order_by(Event.time_end.desc())
|
|
336
|
-
.first()
|
|
336
|
+
.first()
|
|
337
337
|
)
|
|
338
|
+
if current_soc_q is None:
|
|
339
|
+
# We – for some reason – do not have an initial event for this vehicle. This is due to unstable
|
|
340
|
+
# simulation in the depot. We set the SoC to 1.0 and add a warning.
|
|
341
|
+
current_soc = 1.0
|
|
342
|
+
warnings.warn(
|
|
343
|
+
f"No initial event found for vehicle {vehicle.id} before rotation {rotation.id}. Assuming 100% SoC.",
|
|
344
|
+
ConsistencyWarning,
|
|
345
|
+
)
|
|
346
|
+
else:
|
|
347
|
+
current_soc = current_soc_q[0]
|
|
338
348
|
|
|
339
349
|
for trip in rotation.trips:
|
|
340
350
|
# Set up a timeseries
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{eflips_depot-4.15.9 → eflips_depot-4.15.10}/eflips/depot/api/defaults/default_settings.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{eflips_depot-4.15.9 → eflips_depot-4.15.10}/eflips/depot/api/private/results_to_database.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{eflips_depot-4.15.9 → eflips_depot-4.15.10}/eflips/depot/layout_opt/opt_tools/fitness_c_urfd.py
RENAMED
|
File without changes
|
{eflips_depot-4.15.9 → eflips_depot-4.15.10}/eflips/depot/layout_opt/opt_tools/fitness_util.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|