eflips-depot 4.0.1__py3-none-any.whl → 4.0.2__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/api/private/smart_charging.py +6 -3
- {eflips_depot-4.0.1.dist-info → eflips_depot-4.0.2.dist-info}/METADATA +1 -1
- {eflips_depot-4.0.1.dist-info → eflips_depot-4.0.2.dist-info}/RECORD +5 -5
- {eflips_depot-4.0.1.dist-info → eflips_depot-4.0.2.dist-info}/LICENSE.md +0 -0
- {eflips_depot-4.0.1.dist-info → eflips_depot-4.0.2.dist-info}/WHEEL +0 -0
|
@@ -253,13 +253,16 @@ def optimize_charging_events_even(charging_events: List[Event]) -> None:
|
|
|
253
253
|
socs[socs < event.soc_start] = event.soc_start
|
|
254
254
|
socs[socs > event.soc_end] = event.soc_end
|
|
255
255
|
|
|
256
|
-
# Add a timeseries to the event
|
|
256
|
+
# Add a timeseries to the event, removing the first and last index, since they will be the same as the start and
|
|
257
|
+
# end SoC
|
|
257
258
|
event.timeseries = {
|
|
258
259
|
"time": [
|
|
259
260
|
datetime.fromtimestamp(t).astimezone().isoformat()
|
|
260
261
|
for t in total_time[start_index:end_index]
|
|
261
|
-
]
|
|
262
|
-
|
|
262
|
+
][
|
|
263
|
+
1:-1
|
|
264
|
+
], # Remove the first and last index
|
|
265
|
+
"soc": socs.tolist()[1:-1],
|
|
263
266
|
}
|
|
264
267
|
if event.timeseries["time"][0] < event.time_start.isoformat():
|
|
265
268
|
event.timeseries["time"][0] = event.time_start.isoformat()
|
|
@@ -3,7 +3,7 @@ eflips/depot/api/__init__.py,sha256=ecO_I4Tdh2vcNtxoYrNXehgKscgl26sMYqhkLoPO2lU,
|
|
|
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/depot.py,sha256=z17kGwXyt3XmOze8hn0hKpDrAUOd4pFV9ojNDEQmx5A,18112
|
|
6
|
-
eflips/depot/api/private/smart_charging.py,sha256=
|
|
6
|
+
eflips/depot/api/private/smart_charging.py,sha256=2wPBV67qq7TKvU4YYQeqNLhMxOgAHSLNXyanEZp_9a0,13701
|
|
7
7
|
eflips/depot/api/private/util.py,sha256=BFdhyaCSClLJo8DjlIQCV_db-Cc-qqNuGnNa50GzaLs,16741
|
|
8
8
|
eflips/depot/configuration.py,sha256=Op3hlir-dEN7yHr0kTqbYANoCBKFWK6uKOv3NJl8w_w,35678
|
|
9
9
|
eflips/depot/depot.py,sha256=afIlaiX-J-M5-K_oAGMr_soL3_QjIAwrQKDaZzTwle0,105566
|
|
@@ -35,7 +35,7 @@ eflips/depot/simulation.py,sha256=ee0qTzOzG-8ybN36ie_NJallXfC7jUaS9JZvaYFziLs,10
|
|
|
35
35
|
eflips/depot/smart_charging.py,sha256=C3BYqzn2-OYY4ipXm0ETtavbAM9QXZMYULBpVoChf0E,54311
|
|
36
36
|
eflips/depot/standalone.py,sha256=VxcTzBaB67fNJUMmjPRwKXjhqTy6oQ41Coote2LvAmk,22338
|
|
37
37
|
eflips/depot/validation.py,sha256=TIuY7cQtEJI4H2VVMSuY5IIVkacEEZ67weeMuY3NSAM,7097
|
|
38
|
-
eflips_depot-4.0.
|
|
39
|
-
eflips_depot-4.0.
|
|
40
|
-
eflips_depot-4.0.
|
|
41
|
-
eflips_depot-4.0.
|
|
38
|
+
eflips_depot-4.0.2.dist-info/LICENSE.md,sha256=KB4XTk1fPHjtZCYDyPyreu6h1LVJVZXYg-5vePcWZAc,34143
|
|
39
|
+
eflips_depot-4.0.2.dist-info/METADATA,sha256=Pj3gfLs4STeXx4SweyUecCh-GoFnhtlUk_Gb1KjM8Wc,5788
|
|
40
|
+
eflips_depot-4.0.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
41
|
+
eflips_depot-4.0.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|