From 294df0a6c9bd0c644b9ff26ec16fbcdead49edca Mon Sep 17 00:00:00 2001 From: Justus Kuhlmann Date: Thu, 4 Dec 2025 12:07:42 +0100 Subject: [PATCH 1/2] cleaner implementation --- corrlib/trackers/datalad.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/corrlib/trackers/datalad.py b/corrlib/trackers/datalad.py index e3be365..c4e3e70 100644 --- a/corrlib/trackers/datalad.py +++ b/corrlib/trackers/datalad.py @@ -14,9 +14,7 @@ def get(path: str, file: str) -> None: def save(path: str, message: str, files: Optional[list[str]]=None) -> None: - if files is None: - files = path - else: + if files is not None: files = [os.path.join(path, f) for f in files] dl.save(files, message=message, dataset=path) return From 1264a09ed0a3847d8f89acbf4dcc8b4a8d6cf589 Mon Sep 17 00:00:00 2001 From: Justus Kuhlmann Date: Thu, 4 Dec 2025 12:09:26 +0100 Subject: [PATCH 2/2] change cached to be string --- corrlib/initialization.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/corrlib/initialization.py b/corrlib/initialization.py index e3a078e..13b6e66 100644 --- a/corrlib/initialization.py +++ b/corrlib/initialization.py @@ -50,7 +50,7 @@ def _create_config(path: str) -> None: 'toml_imports_path': os.path.join(path, 'toml_imports'), 'import_scripts_path': os.path.join(path, 'import_scripts'), 'tracker': 'datalad', - 'cached': True, + 'cached': 'True', } with open(os.path.join(path, '.corrlib'), 'w') as configfile: config.write(configfile)