add thin wrapper for getting files
This commit is contained in:
parent
d8ec6ef40e
commit
0f499f080a
4 changed files with 27 additions and 20 deletions
|
|
@ -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")
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue