Skip to content

Commit

Permalink
rename some utilities
Browse files Browse the repository at this point in the history
  • Loading branch information
gargnitingoogle committed Oct 9, 2024
1 parent db0f060 commit 1389ac6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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,
Expand All @@ -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,
Expand Down
8 changes: 4 additions & 4 deletions perfmetrics/scripts/testing_on_gke/examples/fio/parse_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 1389ac6

Please sign in to comment.