We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7997e7d commit 4e8c27eCopy full SHA for 4e8c27e
templateflow/api.py
@@ -197,14 +197,15 @@ def _datalad_get(filepath):
197
from datalad import api
198
from datalad.support.exceptions import IncompleteResultsError
199
200
+ relpath = str(filepath.relative_to(TF_LAYOUT.root))
201
try:
- api.get(str(filepath))
202
+ api.get(path=str(relpath), dataset=str(TF_LAYOUT.root))
203
except IncompleteResultsError as exc:
204
if exc.failed[0]["message"] == "path not associated with any dataset":
205
from .conf import TF_GITHUB_SOURCE
206
207
api.install(path=TF_LAYOUT.root, source=TF_GITHUB_SOURCE, recursive=True)
208
209
else:
210
raise
211
0 commit comments