-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: aggregate in python (#807)
## 🔧 Problem After computing the impacts in python, we use a js script `computeAggregated.js` and a elm file `ComputeAggregated.elm` to compute the aggregated impacts (ecoscore and pef). This leads to several problems : - `computeAggregated.js` compute aggregated impacts for all domains (textile, food, object) when we want to compute only for 1 domain leading to unwanted diff. - `computeAggregated.js` changes the order of the attributes in the json leading to unwanted diff - This split the export in different files, different programming languages, it makes no sense and adds a lot of complexity. ## 🍰 Solution For each domain the export should be in 1 python file. In this PR there is only export.py for food as it the only domain with an export.py script right now ## 🏝️ How to test run `make export_food` should make no diff ecobalyse-private: agregate_in_python --------- Co-authored-by: Christophe Combelles <[email protected]>
- Loading branch information
Showing
4 changed files
with
3,074 additions
and
2,960 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.