Commit e4a67326 authored by Aleksandra Mnich's avatar Aleksandra Mnich
Browse files

[SIGMON-371] format(precision=) not supported by pandas 1.2.2

parent 07289079
Pipeline #4129194 failed with stages
in 8 minutes and 45 seconds
......@@ -296,14 +296,13 @@ class QuenchHeaterVoltageAnalysis(CircuitAnalysis):
:return: None
"""
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))
.to_html(float_format='{:.1f}'.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)
, 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)).set_precision(1).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)).set_precision(3).to_html(),
raw=True)
def get_analysis_result(self):
print(self.analysis_result.toJSON())
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment