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
4ca2e3c0
Commit
4ca2e3c0
authored
Apr 26, 2023
by
peng.xiaozhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:删除无用代码
parent
4b40411d
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
54 deletions
+0
-54
IntergratePipe.py
unify_api/modules/shidianu/service/IntergratePipe.py
+0
-34
highPower.py
unify_api/modules/shidianu/service/highPower.py
+0
-14
read_dev_data-1.py
unify_api/modules/zhiwei_u/fault_foreast/read_dev_data-1.py
+0
-1
read_dev_data.py
unify_api/modules/zhiwei_u/fault_foreast/read_dev_data.py
+0
-5
No files found.
unify_api/modules/shidianu/service/IntergratePipe.py
View file @
4ca2e3c0
...
@@ -5,11 +5,7 @@ from unify_api.modules.shidianu.service.electricProportion import \
...
@@ -5,11 +5,7 @@ from unify_api.modules.shidianu.service.electricProportion import \
electricProportion
electricProportion
import
os
import
os
import
pandas
as
pd
import
pandas
as
pd
import
matplotlib.pyplot
as
plt
plt
.
rcParams
[
'font.sans-serif'
]
=
[
'SimHei'
]
plt
.
rcParams
[
'axes.unicode_minus'
]
=
False
illegalConfig_hold
=
2500
illegalConfig_hold
=
2500
highPowerEquip_hold
=
3000
highPowerEquip_hold
=
3000
...
@@ -71,33 +67,3 @@ def hisPieceFind(params, each_data):
...
@@ -71,33 +67,3 @@ def hisPieceFind(params, each_data):
return
resultDict
,
power_pa
,
day_time
return
resultDict
,
power_pa
,
day_time
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
unify_api/modules/shidianu/service/highPower.py
View file @
4ca2e3c0
import
pandas
as
pd
import
pandas
as
pd
import
numpy
as
np
import
os
import
matplotlib.pyplot
as
plt
# def quancalcu(sid, key="a"):
# staspath = os.path.join(
# "C:\\Users\\TTT\\PycharmProjects\\electdecomp\\venv\\realTimePowerDecomp\\statisVars",
# sid, key[1] + ".csv")
# data = pd.read_csv(staspath)
# data.columns = ["time1", "powerjump", "time2", "powerbig"]
# bigpowers = data["powerbig"]
# quanter = np.quantile(bigpowers, 0.9)
# return quanter
def
likesEquip
(
time
):
def
likesEquip
(
time
):
...
...
unify_api/modules/zhiwei_u/fault_foreast/read_dev_data-1.py
View file @
4ca2e3c0
...
@@ -5,7 +5,6 @@ import os
...
@@ -5,7 +5,6 @@ import os
import
sys
import
sys
import
base64
import
base64
import
struct
import
struct
import
matplotlib.pyplot
as
plt
import
pandas
as
pd
import
pandas
as
pd
import
re
import
re
import
zlib
import
zlib
...
...
unify_api/modules/zhiwei_u/fault_foreast/read_dev_data.py
View file @
4ca2e3c0
...
@@ -5,11 +5,6 @@ import os
...
@@ -5,11 +5,6 @@ import os
import
sys
import
sys
import
base64
import
base64
import
struct
import
struct
import
matplotlib.pyplot
as
plt
import
pandas
as
pd
import
re
import
zlib
import
pandas
as
pd
def
read_json_file
(
file_name
):
def
read_json_file
(
file_name
):
'''just read config of poll'''
'''just read config of poll'''
...
...
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