Update stage_5_convert_metadata.py

This commit is contained in:
David Rotermund 2025-03-19 18:35:14 +01:00 committed by GitHub
parent a33172f38b
commit 6d8a7fbbbc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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(