Skip to content

Commit

Permalink
refactor: 変数名、docstringの修正
Browse files Browse the repository at this point in the history
  • Loading branch information
keiya121 committed Sep 8, 2024
1 parent 87a4343 commit d340543
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/csv_to_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def _read_csv(self) -> List[dict]:
"""CSVファイルを読み込み、辞書のリストを返す.
Return:
run_log_data (List[dict]): 辞書形式の走行ログデータ
run_log_data (List[dict]): 走行ログデータ
"""
run_log_data = []
with open(self.csv_file_path, mode='r', encoding='utf-8') as csv_file:
Expand All @@ -45,7 +45,7 @@ def _write_json(self, run_log_data: List[dict]) -> None:
"""データをJSONファイルに書き込む.
Args:
run_log_data (List[dict]): 辞書形式の走行ログデータ
run_log_data (List[dict]): 走行ログデータ
"""
json_data = {'runLog': run_log_data}

Expand All @@ -60,9 +60,9 @@ def _get_json_file_path(self) -> str:
"""JSONファイルのパスを作成する.
Return:
json_filepath (str): jsonファイルのパス
json_file_path (str): jsonファイルのパス
"""
base, _ = os.path.splitext(os.path.basename(self.csv_file_path))
json_filepath = os.path.join(
json_file_path = os.path.join(
'src', 'server', 'run_log_json', base + '.json')
return json_filepath
return json_file_path

0 comments on commit d340543

Please sign in to comment.