# HG changeset patch # User luca_milaz # Date 1722885945 0 # Node ID db11bd09e80c297137a12739a89c08a5a59f0ed1 # Parent 77fa38217b6fa698dcef4c2071442c3618f83fcb Uploaded diff -r 77fa38217b6f -r db11bd09e80c marea_2/custom_data_generator.py --- 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()