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
4a5aa641
Commit
4a5aa641
authored
Apr 26, 2023
by
peng.xiaozhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:冲突解决
parent
586b5d03
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
33 deletions
+0
-33
IntergratePipe.py
unify_api/modules/shidianu/service/IntergratePipe.py
+0
-33
No files found.
unify_api/modules/shidianu/service/IntergratePipe.py
View file @
4a5aa641
...
...
@@ -66,36 +66,3 @@ def hisPieceFind(params, each_data):
return
resultDict
,
power_pa
,
day_time
<<<<<<<
HEAD
def
addLabels
(
sid
=
"sid"
,
aircondRunStages
=
""
,
electroRunStages
=
""
,
heaterRunStages
=
""
,
refrigRunStages
=
""
,
timeOrder
=
""
,
actionOrder
=
""
,
power
=
""
,
timeAll
=
""
):
fig
,
ax
=
plt
.
subplots
()
ax
.
plot
(
power
)
for
eachtime
in
range
(
len
(
timeOrder
)):
index
=
timeAll
.
index
(
timeOrder
[
eachtime
])
if
actionOrder
[
eachtime
][:
2
]
==
"关闭"
:
if
0.6691
+
power
[
index
]
<
max
(
power
[
index
-
3
:
index
+
3
]):
plt
.
annotate
(
actionOrder
[
eachtime
],
xy
=
(
index
,
power
[
index
]),
xytext
=
(
index
+
30
,
1.6691
+
power
[
index
]),
arrowprops
=
dict
(
arrowstyle
=
'->'
),
fontsize
=
6
)
else
:
plt
.
annotate
(
actionOrder
[
eachtime
],
xy
=
(
index
,
power
[
index
]),
xytext
=
(
index
+
30
,
0.6691
+
power
[
index
]),
arrowprops
=
dict
(
arrowstyle
=
'->'
),
fontsize
=
6
)
elif
actionOrder
[
eachtime
][:
2
]
==
"开启"
:
if
power
[
index
]
>
2.3
:
plt
.
annotate
(
actionOrder
[
eachtime
],
xy
=
(
index
,
power
[
index
]),
xytext
=
(
index
-
100
,
0.3691
+
power
[
index
]),
arrowprops
=
dict
(
arrowstyle
=
'->'
),
fontsize
=
6
)
else
:
plt
.
annotate
(
actionOrder
[
eachtime
],
xy
=
(
index
,
power
[
index
]),
xytext
=
(
index
-
100
,
0.6691
+
power
[
index
]),
arrowprops
=
dict
(
arrowstyle
=
'->'
),
fontsize
=
6
)
x
=
[
each
.
split
(
" "
)[
1
][:
-
3
]
for
each
in
timeAll
]
plt
.
show
()
return
0
=======
>>>>>>>
master
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