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) 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