Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
CTCMP-R7204
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
aakash.bedi
CTCMP-R7204
Commits
a9d7939d
Commit
a9d7939d
authored
Apr 04, 2022
by
aakash.bedi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add total chlorine flow parameter
parent
2d889fd4
Pipeline
#33315
failed with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
app.py
app.py
+0
-3
scripts/core/recommender/parameter_optimizer.py
scripts/core/recommender/parameter_optimizer.py
+4
-0
No files found.
app.py
View file @
a9d7939d
...
...
@@ -45,9 +45,6 @@ def recommend_best_parameters():
payload
=
"live_query"
,
absolute_time
=
absolute_time
)
df_input
=
live_data_puller
.
get_data
()
df_input
[
"Bharuch-Unit 2.CTCMP.Stage IIA - Chlorination & Neutralization-I.Reactor R-7204.total_chlorine_flow"
]
=
\
df_input
[
"Bharuch-Unit 2.CTCMP.Stage IIA - Chlorination & Neutralization-I.Reactor R-7204.Flow 3"
]
+
\
df_input
[
"Bharuch-Unit 2.CTCMP.Stage IIA - Chlorination & Neutralization-I.Reactor R-7204.Flow 5"
]
data_dict
=
df_input
.
to_dict
(
orient
=
"records"
)
logger
.
debug
(
"Input Data Received"
)
optimizer
=
ParameterOptimization
()
...
...
scripts/core/recommender/parameter_optimizer.py
View file @
a9d7939d
...
...
@@ -247,6 +247,10 @@ class ParameterOptimization(object):
def
find_optimum
(
self
,
data_dict
,
add_predict
,
controllable
=
False
):
logger
.
info
(
"Finding optimum data for the last received live data."
)
df_validate
=
pd
.
DataFrame
(
data_dict
)
df_validate
[
"Bharuch-Unit 2.CTCMP.Stage IIA - Chlorination & Neutralization-I.Reactor R-7204.total_chlorine_flow"
]
=
\
df_validate
[
"Bharuch-Unit 2.CTCMP.Stage IIA - Chlorination & Neutralization-I.Reactor R-7204.Flow 3"
]
+
\
df_validate
[
"Bharuch-Unit 2.CTCMP.Stage IIA - Chlorination & Neutralization-I.Reactor R-7204.Flow 5"
]
data_1
=
df_validate
original_data
=
df_validate
.
to_dict
(
orient
=
"records"
)[
0
]
df_validate
=
df_validate
[
PARAMETER_INPUT
]
# print("df_validate =", df_validate)
...
...
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