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
cb010f33
Commit
cb010f33
authored
Jun 22, 2022
by
Aleksandra Mnich
Browse files
[SIGMON-371] render() instead of to_html()
parent
e4a67326
Pipeline
#4129297
failed with stages
in 14 minutes and 25 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lhcsmapi/analysis/qh/QuenchHeaterVoltageAnalysis.py
View file @
cb010f33
...
...
@@ -298,10 +298,10 @@ class QuenchHeaterVoltageAnalysis(CircuitAnalysis):
row_color_dct
=
{
False
:
'background-color: red'
,
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
)).
set_precision
(
1
).
to_html
()
+
lambda
s
:
first_last_u_comp_df
[
'result'
].
map
(
row_color_dct
)).
set_precision
(
1
).
render
()
+
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
)).
set_precision
(
3
).
to_html
(),
lambda
s
:
tau_comp_df
[
'result'
].
map
(
row_color_dct
)).
set_precision
(
3
).
render
(),
raw
=
True
)
def
get_analysis_result
(
self
):
...
...
lhcsmapi/analysis/qh/QuenchHeaterVoltageCurrentAnalysis.py
View file @
cb010f33
...
...
@@ -286,16 +286,16 @@ class QuenchHeaterVoltageCurrentAnalysis(QuenchHeaterVoltageAnalysis):
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
)).
set_precision
(
1
).
to_html
()
+
lambda
s
:
first_last_u_comp_df
[
'result'
].
map
(
row_color_dct
)).
set_precision
(
1
).
render
()
+
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
)).
set_precision
(
2
).
to_html
()
+
lambda
s
:
first_r_comp_df
[
'result'
].
map
(
row_color_dct
)).
set_precision
(
2
).
render
()
+
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
)).
set_precision
(
3
).
to_html
()
+
lambda
s
:
tau_comp_df
[
'result'
].
map
(
row_color_dct
)).
set_precision
(
3
).
render
()
+
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
)).
set_precision
(
3
).
to_html
(),
lambda
s
:
capacitance_comp_df
[
'result'
].
map
(
row_color_dct
)).
set_precision
(
3
).
render
(),
raw
=
True
)
@
staticmethod
...
...
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