Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
CFA Analysis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
JOSSOUD Olivier
CFA Analysis
Commits
1640fb27
Commit
1640fb27
authored
5 years ago
by
JOSSOUD Olivier
Browse files
Options
Downloads
Patches
Plain Diff
PumpCalibUim. Use cfatools package. Not finished.
parent
8201ef60
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/uim/pumpcalibuim.py
+6
-2
6 additions, 2 deletions
src/uim/pumpcalibuim.py
with
6 additions
and
2 deletions
src/uim/pumpcalibuim.py
+
6
−
2
View file @
1640fb27
...
...
@@ -8,6 +8,7 @@ from PyQt5.QtCore import *
import
pandas
as
pd
import
numpy
as
np
from
pandas.api.types
import
is_numeric_dtype
from
cfatools.provider.pump_calib
import
PumpCalibReader
import
utils
from
config
import
Config
...
...
@@ -39,10 +40,13 @@ class PumpCalibUim:
if
pump_text
==
"
Common pump
"
:
self
.
pump_prvd
=
self
.
compump_prvd
self
.
pump_reader
=
PumpCalibReader
(
self
.
config
.
read
(
"
DATA_SOURCE
"
,
"
absolute_root_dir
"
),
"
COMPUMP
"
)
elif
pump_text
==
"
Collector pump
"
:
self
.
pump_prvd
=
self
.
colpump_prvd
self
.
pump_reader
=
PumpCalibReader
(
self
.
config
.
read
(
"
DATA_SOURCE
"
,
"
absolute_root_dir
"
),
"
COLPUMP
"
)
elif
pump_text
==
"
Picarro pump
"
:
self
.
pump_prvd
=
self
.
picpump_prvd
self
.
pump_reader
=
PumpCalibReader
(
self
.
config
.
read
(
"
DATA_SOURCE
"
,
"
absolute_root_dir
"
),
"
PICPUMP
"
)
else
:
raise
ValueError
(
"
Impossible to assign a Provider from text [
"
+
pump_text
+
"
]
"
)
...
...
@@ -50,8 +54,8 @@ class PumpCalibUim:
def
change_pump
(
self
,
pump_text
:
str
=
None
):
self
.
set_current_pump_prvd
(
pump_text
)
self
.
runs_df
=
self
.
pump_
prvd
.
get_runs_df
()
self
.
coef_df
=
self
.
pump_
prvd
.
get_coef_df
()
self
.
runs_df
=
self
.
pump_
reader
.
get_runs_df
()
self
.
coef_df
=
self
.
pump_
reader
.
get_coef_df
()
self
.
__update_runs_plot__
(
self
.
runs_df
,
self
.
coef_df
)
self
.
__update_evol_plot__
(
self
.
pump_prvd
.
get_mlmin_to_rpm_evol_df
())
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment