add thin wrapper for getting files

This commit is contained in:
Justus Kuhlmann 2025-11-27 15:25:54 +01:00
commit 0f499f080a
Signed by: jkuhl
GPG key ID: 00ED992DD79B85A6
4 changed files with 27 additions and 20 deletions

View file

@ -1,3 +1,5 @@
import os
import datalad.api as dl
def str2list(string):
@ -15,3 +17,10 @@ def m2k(m):
def k2m(k):
return (1/(2*k))-4
def get_file(path, file):
print("Loading data...")
dl.get(os.path.join(path, file), dataset=path)
print("> downloaded file")