rename getter method

This commit is contained in:
Justus Kuhlmann 2025-12-04 11:09:03 +01:00
commit 15fd97af8e
Signed by: jkuhl
GPG key ID: 00ED992DD79B85A6
3 changed files with 26 additions and 7 deletions

View file

@ -12,7 +12,7 @@ def get_tracker(path):
return tracker
def get_file(path, file):
def get(path, file):
tracker = get_tracker(path)
if tracker == 'datalad':
dl.get_file(path, file)
@ -20,3 +20,10 @@ def get_file(path, file):
raise ValueError(f"Tracker {tracker} is not supported.")
return
def save(path, message, files):
tracker = get_tracker(path)
if tracker == 'datalad':
dl.save(files, message=message, dataset=path)
else:
raise ValueError(f"Tracker {tracker} is not supported.")