Compare commits
2 commits
641c612a59
...
3b64d8457b
| Author | SHA1 | Date | |
|---|---|---|---|
|
3b64d8457b |
|||
|
2100d90511 |
4 changed files with 1 additions and 21 deletions
|
|
@ -1,7 +0,0 @@
|
||||||
import .datalad as dl
|
|
||||||
|
|
||||||
|
|
||||||
class DataBackend:
|
|
||||||
@abstractmethod
|
|
||||||
def get_file(self, data, file):
|
|
||||||
pass
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
||||||
import datalad.api as dl
|
|
||||||
import os
|
|
||||||
from corrlib.data_backend.databackend import
|
|
||||||
|
|
||||||
def DLBackend()
|
|
||||||
|
|
||||||
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")
|
|
||||||
|
|
@ -2,7 +2,7 @@ from configparser import ConfigParser
|
||||||
import sqlite3
|
import sqlite3
|
||||||
import datalad.api as dl
|
import datalad.api as dl
|
||||||
import os
|
import os
|
||||||
import tracker as tr
|
import .tracker as tr
|
||||||
|
|
||||||
|
|
||||||
def _create_db(db: str) -> None:
|
def _create_db(db: str) -> None:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue