@@ -315,25 +315,22 @@ def compare_command_logic(args, project_name, project_version):
315315 comparison_summary = "In summary:\n "
316316 if total_stable > 0 :
317317 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 "
321319 )
322320
323321 if total_unstable > 0 :
324322 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 "
328324 )
329325 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 "
332328 )
333329 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 "
336332 )
333+ comparison_summary += "\n "
337334
338335 comment_body += comparison_summary
339336 comment_body += "\n "
@@ -1102,9 +1099,9 @@ def get_v_pct_change_and_largest_var(
11021099 comparison_values .append (tuple [1 ])
11031100
11041101 comparison_df = pd .DataFrame (comparison_values )
1105- comparison_median = float (comparison_df .median ())
1102+ comparison_median = float (comparison_df .median (). iloc [ 0 ] )
11061103 comparison_v = comparison_median
1107- comparison_std = float (comparison_df .std ())
1104+ comparison_std = float (comparison_df .std (). iloc [ 0 ] )
11081105 if verbose :
11091106 logging .info (
11101107 "comparison_datapoints: {} value: {}; std-dev: {}; median: {}" .format (
0 commit comments