changeset 327:db11bd09e80c draft

Uploaded
author luca_milaz
date Mon, 05 Aug 2024 19:25:45 +0000
parents 77fa38217b6f
children b182c46206e2
files marea_2/custom_data_generator.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/marea_2/custom_data_generator.py	Mon Aug 05 19:22:38 2024 +0000
+++ b/marea_2/custom_data_generator.py	Mon Aug 05 19:25:45 2024 +0000
@@ -151,7 +151,7 @@
 
 
 ###############################- FILE SAVING -################################
-def save_as_csv(data :dict, file_path :utils.FilePath, fieldNames :Tuple[str, str]) -> None:
+def save_as_csv(data :dict, file_path :str, fieldNames :Tuple[str, str]) -> None:
     """
     Saves any dictionary-shaped data in a .csv file created at the given file_path.
 
@@ -163,7 +163,7 @@
     Returns:
         None
     """
-    with open(file_path.show(), 'w', newline='') as csvfile:
+    with open(file_path, 'w', newline='') as csvfile:
         writer = csv.DictWriter(csvfile, fieldnames = fieldNames, delimiter='\t')
         writer.writeheader()