Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LHCData
lhc-sm-api
Commits
e4d2915f
Commit
e4d2915f
authored
Jun 21, 2022
by
Aleksandra Mnich
Browse files
[SIGMON-371] precision works!
parent
74e5dd76
Pipeline
#4125191
failed with stages
in 7 minutes and 15 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lhcsmapi/analysis/qh/QuenchHeaterVoltageCurrentAnalysis.py
View file @
e4d2915f
...
...
@@ -284,20 +284,19 @@ class QuenchHeaterVoltageCurrentAnalysis(QuenchHeaterVoltageAnalysis):
:return: None
"""
row_color_dct
=
{
False
:
'background-color: red'
,
True
:
''
,
np
.
nan
:
''
}
display_html
(
first_last_u_comp_df
.
style
.
set_table_attributes
(
"style='display:inline'"
).
set_caption
(
'Comparison of the inititial and final voltage'
).
apply
(
lambda
s
:
first_last_u_comp_df
[
'result'
].
map
(
row_color_dct
)).
to_html
(
float_format
=
'{:.1f}'
.
format
)
+
first_r_comp_df
.
style
.
set_table_attributes
(
"style='display:inline'"
).
set_caption
(
'Comparison of the initial resistance to the reference'
).
apply
(
lambda
s
:
first_r_comp_df
[
'result'
].
map
(
row_color_dct
)).
to_html
(
float_format
=
'{:.2f}'
.
format
)
+
tau_comp_df
.
style
.
set_table_attributes
(
"style='display:inline'"
).
set_caption
(
'Comparison of the discharge characteristic time to the reference'
).
apply
(
lambda
s
:
tau_comp_df
[
'result'
].
map
(
row_color_dct
)).
to_html
(
float_format
=
'{:.3f}'
.
format
)
+
capacitance_comp_df
.
style
.
set_table_attributes
(
"style='display:inline'"
).
set_caption
(
'Comparison of the estimated capacitance to the reference'
).
apply
(
lambda
s
:
capacitance_comp_df
[
'result'
].
map
(
row_color_dct
)).
to_html
(
float_format
=
'{:.3f}'
.
format
),
raw
=
True
)
display_html
(
first_last_u_comp_df
.
style
.
set_table_attributes
(
"style='display:inline'"
).
set_caption
(
'Comparison of the inititial and final voltage'
).
apply
(
lambda
s
:
first_last_u_comp_df
[
'result'
].
map
(
row_color_dct
)).
format
(
precision
=
1
).
to_html
()
+
first_r_comp_df
.
style
.
set_table_attributes
(
"style='display:inline'"
).
set_caption
(
'Comparison of the initial resistance to the reference'
).
apply
(
lambda
s
:
first_r_comp_df
[
'result'
].
map
(
row_color_dct
)).
format
(
precision
=
2
).
to_html
()
+
tau_comp_df
.
style
.
set_table_attributes
(
"style='display:inline'"
).
set_caption
(
'Comparison of the discharge characteristic time to the reference'
).
apply
(
lambda
s
:
tau_comp_df
[
'result'
].
map
(
row_color_dct
)).
format
(
precision
=
3
).
to_html
()
+
capacitance_comp_df
.
style
.
set_table_attributes
(
"style='display:inline'"
).
set_caption
(
'Comparison of the estimated capacitance to the reference'
).
apply
(
lambda
s
:
capacitance_comp_df
[
'result'
].
map
(
row_color_dct
)).
format
(
precision
=
3
).
to_html
(),
raw
=
True
)
@
staticmethod
def
synchronize_raw_signal_to_decay
(
hds_dfs
:
List
[
pd
.
DataFrame
],
index_to_sync
:
float
)
->
List
[
pd
.
DataFrame
]:
...
...
Write
Preview
Supports
Markdown
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