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
586b5d03
Commit
586b5d03
authored
Apr 26, 2023
by
peng.xiaozhe
Browse files
Options
Browse Files
Download
Plain Diff
fix:删除无用代码
parents
9a160509
4ca2e3c0
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
23 deletions
+3
-23
IntergratePipe.py
unify_api/modules/shidianu/service/IntergratePipe.py
+3
-3
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 @
586b5d03
...
...
@@ -5,10 +5,7 @@ from unify_api.modules.shidianu.service.electricProportion import \
electricProportion
import
os
import
pandas
as
pd
import
matplotlib.pyplot
as
plt
plt
.
rcParams
[
'font.sans-serif'
]
=
[
'SimHei'
]
plt
.
rcParams
[
'axes.unicode_minus'
]
=
False
illegalConfig_hold
=
2500
highPowerEquip_hold
=
3000
...
...
@@ -70,6 +67,7 @@ def hisPieceFind(params, each_data):
return
resultDict
,
power_pa
,
day_time
<<<<<<<
HEAD
def
addLabels
(
sid
=
"sid"
,
aircondRunStages
=
""
,
electroRunStages
=
""
,
heaterRunStages
=
""
,
refrigRunStages
=
""
,
timeOrder
=
""
,
actionOrder
=
""
,
power
=
""
,
timeAll
=
""
):
...
...
@@ -99,3 +97,5 @@ def addLabels(sid="sid", aircondRunStages="", electroRunStages="",
x
=
[
each
.
split
(
" "
)[
1
][:
-
3
]
for
each
in
timeAll
]
plt
.
show
()
return
0
=======
>>>>>>>
master
unify_api/modules/shidianu/service/highPower.py
View file @
586b5d03
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
):
...
...
unify_api/modules/zhiwei_u/fault_foreast/read_dev_data-1.py
View file @
586b5d03
...
...
@@ -5,7 +5,6 @@ import os
import
sys
import
base64
import
struct
import
matplotlib.pyplot
as
plt
import
pandas
as
pd
import
re
import
zlib
...
...
unify_api/modules/zhiwei_u/fault_foreast/read_dev_data.py
View file @
586b5d03
...
...
@@ -5,11 +5,6 @@ import os
import
sys
import
base64
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
):
'''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