From 13e0217b3bf93a2fcdac647f9da5dc4b08d4682f Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Wed, 29 Apr 2020 13:30:33 -0400 Subject: [PATCH] BF: provide path to the dataset as "dataset" argument this is due to the change in behavior of 0.12.x series of DataLad. See https://github.com/datalad/datalad/issues/3759 for more info --- setup.cfg | 2 +- templateflow/conf/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.cfg b/setup.cfg index 855437ca..011b18f1 100644 --- a/setup.cfg +++ b/setup.cfg @@ -46,7 +46,7 @@ exclude = citations = doi2bib datalad = - datalad ~= 0.11.8 + datalad ~= 0.12.0 doc = nbsphinx packaging diff --git a/templateflow/conf/__init__.py b/templateflow/conf/__init__.py index 74a13617..31116475 100644 --- a/templateflow/conf/__init__.py +++ b/templateflow/conf/__init__.py @@ -69,7 +69,7 @@ def _update_datalad(): print("Updating TEMPLATEFLOW_HOME using DataLad ...") try: - update(str(TF_HOME), recursive=True, merge=True) + update(dataset=str(TF_HOME), recursive=True, merge=True) except Exception as e: warn(f"Error updating TemplateFlow's home directory (using DataLad): {e}") return True