Skip to content
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

Float error #13

Merged
merged 5 commits into from
Jul 6, 2020
Merged

Float error #13

merged 5 commits into from
Jul 6, 2020

Conversation

IKnowLogic
Copy link

The purpose of this pull request, is to correct floating point errors which occurs when transforming flows from xlsb to csv. The pull request also reenables extraction of determining flows, adds aggregate and disaggregate flows, and cleans up a bit using pylama.

Many files have changed in this pull request, but most is due to the correction of syntax recommendations when running pylama -i E501, since this has not been done before.

Main file changes:
csv2rdf.py, In the extraction of flows from the .csv file, we find whether a flow is an aggregate flow or a disaggregate flow. If it is aggregate, we add a isPartOf link between the parent flow, and the child flow.

excel2csv.py, In the conversion from excel to csv, we aggreagte disaggregate flows for each country, as a way to reintroduce determining flows. Each flow object now has a single activity, but we also save disaggregate flows, so no information is lost. Using the new correspondance table between flow objects and aggregate flow objects to determine flows, we no longer need a square HUSE and HSUP table.

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants