@@ -315,25 +315,22 @@ def compare_command_logic(args, project_name, project_version):
315
315
comparison_summary = "In summary:\n "
316
316
if total_stable > 0 :
317
317
comparison_summary += (
318
- "- Detected a total of {} stable tests between versions.\n " .format (
319
- total_stable ,
320
- )
318
+ f"- Detected a total of { total_stable } stable tests between versions.\n "
321
319
)
322
320
323
321
if total_unstable > 0 :
324
322
comparison_summary += (
325
- "- Detected a total of {} highly unstable benchmarks.\n " .format (
326
- total_unstable
327
- )
323
+ f"- Detected a total of { total_unstable } highly unstable benchmarks.\n "
328
324
)
329
325
if total_improvements > 0 :
330
- comparison_summary += "- Detected a total of {} improvements above the improvement water line. \n " . format (
331
- total_improvements
326
+ comparison_summary += (
327
+ f"- Detected a total of { total_improvements } improvements above the improvement water line. \n "
332
328
)
333
329
if total_regressions > 0 :
334
- comparison_summary += "- Detected a total of {} regressions bellow the regression water line {}. \n " . format (
335
- total_regressions , args .regressions_percent_lower_limit
330
+ comparison_summary += (
331
+ f"- Detected a total of { total_regressions } regressions bellow the regression water line { args .regressions_percent_lower_limit } %. \n "
336
332
)
333
+ comparison_summary += "\n "
337
334
338
335
comment_body += comparison_summary
339
336
comment_body += "\n "
@@ -1102,9 +1099,9 @@ def get_v_pct_change_and_largest_var(
1102
1099
comparison_values .append (tuple [1 ])
1103
1100
1104
1101
comparison_df = pd .DataFrame (comparison_values )
1105
- comparison_median = float (comparison_df .median ())
1102
+ comparison_median = float (comparison_df .median (). iloc [ 0 ] )
1106
1103
comparison_v = comparison_median
1107
- comparison_std = float (comparison_df .std ())
1104
+ comparison_std = float (comparison_df .std (). iloc [ 0 ] )
1108
1105
if verbose :
1109
1106
logging .info (
1110
1107
"comparison_datapoints: {} value: {}; std-dev: {}; median: {}" .format (
0 commit comments