Skip to content

Commit 7fddf5b

Browse files
authored
fix: partially revert 4e8c27e keeping the dataset argument setting
1 parent 493d414 commit 7fddf5b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

templateflow/api.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,15 +197,14 @@ def _datalad_get(filepath):
197197
from datalad import api
198198
from datalad.support.exceptions import IncompleteResultsError
199199

200-
relpath = str(filepath.relative_to(TF_LAYOUT.root))
201200
try:
202-
api.get(path=str(relpath), dataset=str(TF_LAYOUT.root))
201+
api.get(filepath, dataset=str(TF_LAYOUT.root))
203202
except IncompleteResultsError as exc:
204203
if exc.failed[0]["message"] == "path not associated with any dataset":
205204
from .conf import TF_GITHUB_SOURCE
206205

207206
api.install(path=TF_LAYOUT.root, source=TF_GITHUB_SOURCE, recursive=True)
208-
api.get(path=str(relpath), dataset=str(TF_LAYOUT.root))
207+
api.get(filepath, dataset=str(TF_LAYOUT.root))
209208
else:
210209
raise
211210

0 commit comments

Comments
 (0)