-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Import / Export of Dataset or site lists #104
Comments
|
Idea for Import: class DatasetImportAction(FileAction):
name = 'import-dataset'
icon = 'clipboard'
title = 'dataset'
tooltip = 'Import datasets'
def href(self, path: Path):
return conf.url('/download/to_db/dataset', filename=path.name)
def check(self, path: Path):
return False
try:
df = pd.read_excel(path.absolute, nrows=1)
return all(colname in df.columns for colname in ['start', 'end', 'site', 'valuetype', 'project'])
except (OSError, ValueError):
return False |
Another idea:
Same for sites download.htmlodmf/odmf/static/templates/download.html Lines 300 to 322 in 647f114
Receiving functionodmf/odmf/webpage/filemanager/upload.py Lines 170 to 209 in 647f114
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sometimes datasets need to be created in bulk, eg. distributed sampling at many places with multiple value types. Using a spreadsheet can make this simpler to repeat similar information.
The text was updated successfully, but these errors were encountered: