From 6d8a7fbbbcbc828980a816cb8e389df2c13b4938 Mon Sep 17 00:00:00 2001 From: David Rotermund Date: Wed, 19 Mar 2025 18:35:14 +0100 Subject: [PATCH] Update stage_5_convert_metadata.py --- stage_5_convert_metadata.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stage_5_convert_metadata.py b/stage_5_convert_metadata.py index ed4ef73..9f4073b 100644 --- a/stage_5_convert_metadata.py +++ b/stage_5_convert_metadata.py @@ -6,13 +6,13 @@ from functions.get_trials import get_trials from functions.get_experiments import get_experiments -def converter(filename: str = "config_M_Sert_Cre_49.json") -> None: +def converter(config_filename: str = "config_M_Sert_Cre_49.json") -> None: - if os.path.isfile(filename) is False: - print(f"{filename} is missing") + if os.path.isfile(config_filename) is False: + print(f"{config_filename} is missing") exit() - with open(filename, "r") as file: + with open(config_filename, "r") as file: config = json.loads(jsmin(file.read())) raw_data_path: str = os.path.join(