29 lines
No EOL
469 B
Python
29 lines
No EOL
469 B
Python
import os
|
|
import datalad.api as dl
|
|
|
|
|
|
def str2list(string):
|
|
return string.split(",")
|
|
|
|
def list2str(mylist):
|
|
s = ",".join(mylist)
|
|
return s
|
|
|
|
cached = True
|
|
|
|
def m2k(m):
|
|
return 1/(2*m+8)
|
|
|
|
|
|
def k2m(k):
|
|
return (1/(2*k))-4
|
|
|
|
|
|
def get_file(path, file):
|
|
if file == "backlogger.db":
|
|
print("Downloading database...")
|
|
else:
|
|
print("Downloading data...")
|
|
dl.get(os.path.join(path, file), dataset=path)
|
|
print("> downloaded file")
|
|
|