Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
U
unify_api2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chaonan
unify_api2
Commits
e57796df
Commit
e57796df
authored
Jul 27, 2023
by
lcn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修复
parent
1602e4f3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
12 deletions
+16
-12
load_forecast_service.py
...pi/modules/load_analysis/service/load_forecast_service.py
+16
-12
No files found.
unify_api/modules/load_analysis/service/load_forecast_service.py
View file @
e57796df
...
...
@@ -126,13 +126,17 @@ async def load_forecast_srv(cids, s_time, e_time, interval, slots):
for
num
,
slot
in
enumerate
(
slots
):
slot
=
pendulum
.
parse
(
slot
)
.
format
(
"HH:mm"
)
slots
[
num
]
=
slot
elif
interval
==
86400
:
for
num
,
slot
in
enumerate
(
slots
):
slot
=
pendulum
.
parse
(
slot
)
.
format
(
"MM-DD"
)
slots
[
num
]
=
slot
return
ForecastResp
(
pred_data
=
LoadValue
(
slots
=
slots
,
value
=
forecast_list
),
real_data
=
LoadValue
(
slots
=
slots
,
value
=
real_list
),
deviation_list
=
deviation_list
,
max_deviation
=
[
max_deviation
,
max_time
],
min_deviation
=
[
min_deviation
,
min_time
],
max_deviation
=
[
max_deviation
,
max_time
],
min_deviation
=
[
min_deviation
,
min_time
],
avg_deviation
=
avg_deviation
,
total_deviation
=
total_deviation
,
real_power_list
=
LoadValue
(
slots
=
slots
,
value
=
real_power_list
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment