-
Notifications
You must be signed in to change notification settings - Fork 1
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
Easy export of data #166
Comments
Here is a repo with a Python script that can be a template for an database exporter. I'm not sure though whether the exported data are enough. They only contain the JSON data from the job_results table. |
Updated to work with the new database schema |
@nclaidiere @smathot Please have a look at project https://github.com/kristian-lange/omm_db_exporter. This simple Python script can be extended to your needs, e.g. take the database's host, username, pw as arguments or use other IDs than the study ID to query the database. So far it takes a study ID as an argument and writes a file in CSV format with the job result data. It can deal with inconsistencies in the job variables, e.g. if new variables were added during running a study. Is this okay? Any wishes? Edit: The CSV contains additionally to the job result data and all job variables the following fields:
|
This looks ok to me. It will be a bit difficult for @nclaidiere to have an opinion before he can actually use it to export data, so let's pick this up when we've migrated the system to the new server. But in general terms, this is indeed what we need. |
I agree, difficult to know but this looks good. Two questions though:
|
Hi @nclaidiere and @smathot! I addressed the missing points and added:
|
Nice touch with the command-line options! |
Fantastic thanks! |
No description provided.
The text was updated successfully, but these errors were encountered: