-
Notifications
You must be signed in to change notification settings - Fork 6
Enable download of datapackage as zip #422
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
base: main
Are you sure you want to change the base?
Conversation
|
The idea is to enable download of datapackage and then iterate to make changes to the |
3013618 to
d182559
Compare
This need to be placed somewhere else and is currently only for testing purposes
In order to compute the annuities
The foreign keys are not yet correctly built/linked
8f898dd to
b43ac95
Compare
Move the infer_metadata call to the to_datapackage method of the Scenario model class
paulapreuss
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using the current pinned version of tabular in the requirements (pointing to the dev branch), I get the error infer_metadata_from_data() got an unexpected keyword argument 'fk_targets'. I looked around the oemof-tabular repo and saw your PR which introduces this keyword in fix/datapackage. However, pointing to this branch instead causes the following dependency conflict in the requirements:
ERROR: Cannot install datapackage==1.5.1 and jsonschema==4.4.0 because these package versions have conflicting dependencies.
The conflict is caused by:
The user requested jsonschema==4.4.0
datapackage 1.5.1 depends on jsonschema<3.0 and >=2.5
I was able to bypass this error by unpinning the jsonschema version, but now I am not sure if the version installed might cause issues within the functions that use the package. Would have to double check this.
After this, the datapackage export seems to work and contain all the necessary files. Very cool feature!
This enable the download of a datapackage of a scenario.
One can use the URL:
http://127.0.0.1:8000/en/scenario/export/datapackage/
Or click on "Export as datapackage" on the progession ribbon (this is just for convenience, we should have this button somewhere else)
TODO: