From cb6a3beb275617e6f573203c9b4bb969b28cb57f Mon Sep 17 00:00:00 2001 From: Nitin Garg Date: Thu, 3 Oct 2024 19:04:52 +0000 Subject: [PATCH] rename some utilities --- .../scripts/testing_on_gke/examples/dlio/parse_logs.py | 8 ++++---- .../scripts/testing_on_gke/examples/fio/parse_logs.py | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/perfmetrics/scripts/testing_on_gke/examples/dlio/parse_logs.py b/perfmetrics/scripts/testing_on_gke/examples/dlio/parse_logs.py index 8fe3ccf9c5..4357ed4420 100644 --- a/perfmetrics/scripts/testing_on_gke/examples/dlio/parse_logs.py +++ b/perfmetrics/scripts/testing_on_gke/examples/dlio/parse_logs.py @@ -329,7 +329,7 @@ def writeOutput( ) rows.append(new_row) - def exportToCsvFile(output_file_path: str, header: str, rows: List): + def export_to_csv(output_file_path: str, header: str, rows: List): if output_file_path and output_file_path.strip(): ensure_directory_exists(os.path.dirname(output_file_path)) with open(output_file_path, "a") as output_file_fwr: @@ -343,9 +343,9 @@ def exportToCsvFile(output_file_path: str, header: str, rows: List): f" {output_file_path} !!!" ) - exportToCsvFile(output_file_path=args.output_file, header=_HEADER, rows=rows) + export_to_csv(output_file_path=args.output_file, header=_HEADER, rows=rows) - def exportToGsheet( + def export_to_gsheet( header: str, rows: List, output_gsheet_id: str, @@ -372,7 +372,7 @@ def exportToGsheet( f" '{args.output_worksheet_name}' in {url(args.output_gsheet_id)}" ) - exportToGsheet( + export_to_gsheet( output_gsheet_id=args.output_gsheet_id, output_worksheet_name=args.output_worksheet_name, output_gsheet_keyfile=args.output_gsheet_keyfile, diff --git a/perfmetrics/scripts/testing_on_gke/examples/fio/parse_logs.py b/perfmetrics/scripts/testing_on_gke/examples/fio/parse_logs.py index b6c763433f..a84e433698 100644 --- a/perfmetrics/scripts/testing_on_gke/examples/fio/parse_logs.py +++ b/perfmetrics/scripts/testing_on_gke/examples/fio/parse_logs.py @@ -363,7 +363,7 @@ def writeOutput( ) rows.append(new_row) - def exportToCsvFile(output_file_path: str, header: str, rows: List): + def export_to_csv(output_file_path: str, header: str, rows: List): if output_file_path and output_file_path.strip(): ensure_directory_exists(os.path.dirname(output_file_path)) with open(output_file_path, "a") as output_file_fwr: @@ -377,9 +377,9 @@ def exportToCsvFile(output_file_path: str, header: str, rows: List): f" {output_file_path} !!!" ) - exportToCsvFile(output_file_path=args.output_file, header=_HEADER, rows=rows) + export_to_csv(output_file_path=args.output_file, header=_HEADER, rows=rows) - def exportToGsheet( + def export_to_gsheet( header: str, rows: List, output_gsheet_id: str, @@ -406,7 +406,7 @@ def exportToGsheet( f" '{args.output_worksheet_name}' in {url(args.output_gsheet_id)}" ) - exportToGsheet( + export_to_gsheet( output_gsheet_id=args.output_gsheet_id, output_worksheet_name=args.output_worksheet_name, output_gsheet_keyfile=args.output_gsheet_keyfile,