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

Ingredients #272

Merged
merged 141 commits into from
May 31, 2023
Merged
Show file tree
Hide file tree
Changes from 125 commits
Commits
Show all changes
141 commits
Select commit Hold shift + click to select a range
319160f
Updated
ccomb Apr 13, 2023
a2a4bcf
Added the `explore` notebook
ccomb Apr 13, 2023
0dd4e9c
Merge branch 'master' of github.com:MTES-MCT/ecobalyse into ingredients
ccomb Apr 13, 2023
be9e95a
Changed the name of the project and database
ccomb Apr 14, 2023
916470d
Updated BW with a fix and remove an inconsistent activity
ccomb Apr 14, 2023
63234c5
Added a first ingredients notebook as a bw db
ccomb Apr 14, 2023
9977530
Notebook to load, add, delete, edit, push ingredients
ccomb Apr 15, 2023
df4c683
Better ui
ccomb Apr 17, 2023
14b75da
Agribalyse 3.0 may not exist
ccomb Apr 17, 2023
51b5d9c
'' may not exist as well.. :-/
ccomb Apr 17, 2023
2230d3b
don"t fail if no unit
ccomb Apr 17, 2023
36e99f4
Refactored the explore notebook
ccomb Apr 18, 2023
5b237f7
w_ as for widget_
ccomb Apr 18, 2023
0f2ddc8
better UX, less buttons
ccomb Apr 19, 2023
709b385
less call to display()
ccomb Apr 19, 2023
2a8f4a3
Improved layout
ccomb Apr 19, 2023
7907bba
improved UX
ccomb Apr 19, 2023
4681b43
search field also for organic and bbc
ccomb Apr 19, 2023
4778bcf
Merge branch 'master' of github.com:MTES-MCT/ecobalyse into ingredients
ccomb Apr 19, 2023
e2bcab2
Categories
ccomb Apr 19, 2023
cd9e0ad
also display the json
ccomb Apr 19, 2023
a59590b
bw2parameters has moved
ccomb Apr 20, 2023
b83b020
absolute import
ccomb Apr 20, 2023
e1b4668
Use the code instead of the name for complex ingredients
ccomb Apr 20, 2023
7a6cb51
Instruction to change the passwor
ccomb Apr 20, 2023
279b7ab
Added new import script
ccomb Apr 21, 2023
8fce8ad
default values for imports
ccomb Apr 21, 2023
f0e8d8c
switch to main again
ccomb Apr 21, 2023
867a4d5
make command to import agb311 and ei3.9.1
ccomb Apr 21, 2023
fe0b9fd
add/commit/push assuming the presence of a token
ccomb Apr 21, 2023
811a89c
mention that this is the hash of en emptystring
ccomb Apr 21, 2023
89dd02f
display json, not dict
ccomb Apr 21, 2023
0302849
Allow to run import both when running jupyter or not. Removed
ccomb Apr 21, 2023
4c21bd2
better print in jupyter
ccomb Apr 21, 2023
edc5ebe
fixed initial display
ccomb Apr 21, 2023
f1d4a59
improved revert and give feedback to the user
ccomb Apr 21, 2023
fe11cdf
Changed ingredients
Apr 21, 2023
9f226f0
Merge branch 'master' of github.com:MTES-MCT/ecobalyse into ingredients
ccomb Apr 21, 2023
c5a6f2f
Merge branch 'ingredients' of github.com:MTES-MCT/ecobalyse into ingr…
ccomb Apr 21, 2023
9e6dd87
Revert "Changed ingredients"
ccomb Apr 21, 2023
faef8b9
fixed problems with encoding
ccomb Apr 21, 2023
5744f6a
Changed ingredients
Apr 21, 2023
eb3753e
Revert "Changed ingredients"
ccomb Apr 21, 2023
d35dd58
don't encode here
ccomb Apr 21, 2023
f2b6ded
Changed ingredients
Apr 21, 2023
12a41a9
Revert "Changed ingredients" (this time's OK)
ccomb Apr 21, 2023
a796028
Allow to run with or without container running
ccomb Apr 21, 2023
f789266
Single csv file with code, kind, alias, displayName and name
ccomb Apr 24, 2023
79ac5ee
modified names for impacts (probably due to agb311)
ccomb Apr 24, 2023
e439d14
Moved bvi data from a separated csv to the unique export file
ccomb Apr 25, 2023
ceb7e52
added numbers in the selection list to easy process selection
ccomb Apr 25, 2023
51c1e16
Forgot bvi data
ccomb Apr 25, 2023
c38c3c0
simplify the LCA calculation
ccomb Apr 25, 2023
18430da
more inlining and cleanup
ccomb Apr 25, 2023
9ab5909
Moved filenames at the top and improved display
ccomb Apr 25, 2023
628c7c9
More simplifications
ccomb Apr 25, 2023
2635925
One more input variable
ccomb Apr 25, 2023
3170685
reformat csv file
ccomb Apr 25, 2023
001ef06
Replace brightway/simapro codes with simple search strings
ccomb Apr 25, 2023
b3a5a66
Changed ingredients
Apr 26, 2023
d1ad9ff
Merge branch 'master' of github.com:MTES-MCT/ecobalyse into ingredients
ccomb Apr 26, 2023
dcb5e10
Merge branch 'ingredients' of github.com:MTES-MCT/ecobalyse into ingr…
ccomb Apr 26, 2023
e89c6d6
Revert "Changed ingredients"
ccomb Apr 26, 2023
2921ed1
Changed ingredients
Apr 26, 2023
196f639
Changed ingredients
Apr 26, 2023
d4505ae
Better UX for the ingredients form
ccomb Apr 27, 2023
7239c07
Merge branch 'ingredients' of github.com:MTES-MCT/ecobalyse into ingr…
ccomb Apr 27, 2023
369890f
Better placeholders
ccomb Apr 27, 2023
3d3b1f7
Changed ingredients
Apr 27, 2023
4c2a2be
Allow to select/copy the process name
ccomb Apr 28, 2023
b440133
Merge branch 'ingredients' of github.com:MTES-MCT/ecobalyse into ingr…
ccomb Apr 28, 2023
91f48a0
Explain the ratio
ccomb Apr 28, 2023
4578ed6
Better explanation of the ratio
ccomb Apr 28, 2023
6d45e3d
Changed ingredients
Apr 28, 2023
d229083
comments and variable name
ccomb May 2, 2023
f524077
fixed inversion of docker run/exec
ccomb May 3, 2023
dc2dd57
default import values
ccomb May 3, 2023
a56977e
default project and default values
ccomb May 3, 2023
9a5fd8a
Merge branch 'ingredients' of github.com:MTES-MCT/ecobalyse into ingr…
ccomb May 3, 2023
f4bc1bf
missing setup
ccomb May 3, 2023
d5e6a8d
do the import separately
ccomb May 4, 2023
9aca205
fixed the stop command
ccomb May 4, 2023
c9ec71e
switch to custom bw2data for single char search
ccomb May 5, 2023
8ac0211
added a root_shell make command
ccomb May 9, 2023
816b43c
renamed agb biosphere
ccomb May 9, 2023
03aa766
additional migrations from gcoste
ccomb May 11, 2023
6719a84
don't include base data, just core migrations
ccomb May 11, 2023
aef6031
don't normalize biosphere
ccomb May 11, 2023
5af6311
try without biosphere3
ccomb May 11, 2023
70fcf1e
normalize biosphere to align LCI and LCIA. Drop unused (unlinked) CFs…
ccomb May 15, 2023
b9169a4
Keep imports.py
ccomb May 15, 2023
a279264
Copy imports.py into import_agribalyse.py
ccomb May 15, 2023
e384a18
Duplicate imports.py history.
ccomb May 15, 2023
92e3a64
Set back imports.py file
ccomb May 15, 2023
7799a55
Keep imports.py
ccomb May 15, 2023
85f5a8f
Copy imports.py into import_ecoinvent.py
ccomb May 15, 2023
12d7f52
Duplicate imports.py history.
ccomb May 15, 2023
ab44eb2
Set back imports.py file
ccomb May 15, 2023
6c1fcd1
split agribalyse and ecoinvent imports
ccomb May 15, 2023
feae878
restart after changing the password
ccomb May 15, 2023
c561ee1
Adapted the export to the new ingredients and the modified import
ccomb May 16, 2023
bdfd221
New method
ccomb May 16, 2023
db2ae6a
New impacts. Needs review. Something's wrong
ccomb May 16, 2023
7aa46ce
wrong comment
ccomb May 17, 2023
1e573cc
Project unset during the if
ccomb May 17, 2023
191f87b
No need for sub-cch impacts
ccomb May 17, 2023
f98558e
typo
ccomb May 17, 2023
ab65f04
don't hardcode the method
ccomb May 18, 2023
eaefc10
switch again to bw25
ccomb May 24, 2023
986ed61
switch to simapro ef3.1 csv, don't add unlinked CFs
ccomb May 24, 2023
7c20dd4
Keep import_agribalyse.py
ccomb May 24, 2023
e5f90e8
Copy import_agribalyse.py into import_ef.py
ccomb May 24, 2023
cd565cc
Duplicate import_agribalyse.py history.
ccomb May 24, 2023
9ec1c20
Set back import_agribalyse.py file
ccomb May 24, 2023
4343adb
split agribalyse and ef
ccomb May 24, 2023
d77d5d6
switch bw2data to some weird main branch
ccomb May 24, 2023
324296c
renamed import_ef to import_method
ccomb May 24, 2023
9bbf13d
unused import
ccomb May 24, 2023
ba23aae
updated doc
ccomb May 25, 2023
2fc4cbf
updated with new EF3.1
ccomb May 25, 2023
5cc6466
missing impact categories
ccomb May 25, 2023
12d0339
new export data
ccomb May 25, 2023
8e4092a
cleanup and updated doc
ccomb May 25, 2023
9f20796
merge etfo1/etfo2 and etf1/etf2
ccomb May 25, 2023
8261654
updated full command run
ccomb May 25, 2023
45b6f92
Add .gitignore.
n1k0 May 25, 2023
c6045f4
Removed water fix strategy
ccomb May 26, 2023
54fc83a
starting to fix export_ciqual
ccomb May 26, 2023
4b0b188
comments
ccomb May 26, 2023
b7b5207
New wtu impacts
ccomb May 26, 2023
7c1b86e
Merge branch 'master' of github.com:MTES-MCT/ecobalyse into ingredients
ccomb May 26, 2023
7f15b48
Merge branch 'ingredients' of github.com:MTES-MCT/ecobalyse into ingr…
ccomb May 26, 2023
eacdd18
fixed method selection
ccomb May 26, 2023
56c2fce
Disable the fix_localized_water_flows strategy and simapro-water
ccomb May 31, 2023
536b068
disabled attempt to use the same strategy and migration as for LCI
ccomb May 31, 2023
2f6eca4
use the right biosphere and don't import biosphere3
ccomb May 31, 2023
6a07ceb
new impacts
ccomb May 31, 2023
646e50a
Merge branch 'master' of github.com:MTES-MCT/ecobalyse into ingredients
ccomb May 31, 2023
d0d9ed3
trigrams with dashes
ccomb May 31, 2023
cde5560
trigrams with dashes
ccomb May 31, 2023
9ee16bc
revert json output to master
ccomb May 31, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 44 additions & 13 deletions data/Makefile
Original file line number Diff line number Diff line change
@@ -1,36 +1,67 @@
SHELL := /bin/bash
NAME := $(shell echo $$PWD|sed 's/\/data//'|sed 's/.*\///')
DOCKERRUN := docker run --rm --name $(NAME) -it -v $$PWD/../:/home/jovyan/ecobalyse -v $(NAME):/home/jovyan
DOCKEREXEC := docker exec -u jovyan -it

json: image import_agribalyse export_builder
json: image import_agribalyse import_method import_ecoinvent export_builder

image:
docker build -t $(NAME) -f Dockerfile .
docker build -t $(NAME) docker

import_ecoinvent:
@if [ "$(shell docker container inspect -f '{{.State.Running}}' $(NAME) )" = "true" ]; then \
$(DOCKEREXEC) -w /home/jovyan/ecobalyse/data $(NAME) python3 import_ecoinvent.py;\
else $(DOCKERRUN) -w /home/jovyan/ecobalyse/data $(NAME) python3 import_ecoinvent.py; fi

import_agribalyse:
curl -o food/import_agb/agribalyse3_no_param.CSV.zip https://nextcloud.prelab.fr/index.php/s/kmYtfqHa42EZA9R/download/agribalyse3_no_param.CSV.zip
$(DOCKERRUN) -w /home/jovyan/ecobalyse/data/food/import_agb $(NAME) python3 importing_databases.py
@if [ "$(shell docker container inspect -f '{{.State.Running}}' $(NAME) )" = "true" ]; then \
$(DOCKEREXEC) -w /home/jovyan/ecobalyse/data $(NAME) python3 import_agribalyse.py;\
else $(DOCKERRUN) -w /home/jovyan/ecobalyse/data $(NAME) python3 import_agribalyse.py; fi

import_method:
@if [ "$(shell docker container inspect -f '{{.State.Running}}' $(NAME) )" = "true" ]; then \
$(DOCKEREXEC) -w /home/jovyan/ecobalyse/data $(NAME) python3 import_method.py;\
else $(DOCKERRUN) -w /home/jovyan/ecobalyse/data $(NAME) python3 import_method.py; fi


export_ciqual:
$(DOCKERRUN) -w /home/jovyan/ecobalyse/data/food/export_agb $(NAME) python3 export_ciqual.py
@if [ "$(shell docker container inspect -f '{{.State.Running}}' $(NAME) )" = "true" ]; then \
$(DOCKEREXEC) -w /home/jovyan/ecobalyse/data/food/export_agb $(NAME) python3 export_ciqual.py;\
else $(DOCKERRUN) -w /home/jovyan/ecobalyse/data/food/export_agb $(NAME) python3 export_ciqual.py; fi

export_builder:
$(DOCKERRUN) -w /home/jovyan/ecobalyse/data/food/export_agb $(NAME) python3 export_builder.py
@if [ "$(shell docker container inspect -f '{{.State.Running}}' $(NAME) )" = "true" ]; then \
$(DOCKEREXEC) -w /home/jovyan/ecobalyse/data/food/export_agb $(NAME) python3 export_builder.py;\
else $(DOCKERRUN) -w /home/jovyan/ecobalyse/data/food/export_agb $(NAME) python3 export_builder.py; fi

corrected_impacts:
$(DOCKERRUN) -w /home/jovyan/ecobalyse/data/food/manual_update_agb3.1.1 $(NAME) python3 update_impacts_311.py
$(DOCKERRUN) -w /home/jovyan/ecobalyse/data/food/manual_update_agb3.1.1 $(NAME) python3 compute_corrected_impacts.py

bash:
$(DOCKERRUN) -w /home/jovyan/ecobalyse/data $(NAME) bash
python:
echo Running Python inside the container...
@if [ "$(shell docker container inspect -f '{{.State.Running}}' $(NAME) )" = "true" ]; then \
$(DOCKEREXEC) $(NAME) python;\
else $(DOCKERRUN) -w /home/jovyan/ecobalyse/data $(NAME) python; fi

notebook:
$(DOCKERRUN) -d -p 8888:8888 -e JUPYTER_ENABLE_LAB=yes $(NAME) start-notebook.sh
docker logs -f $(NAME)
root_shell:
echo starting a root shell inside the container...
@if [ "$(shell docker container inspect -f '{{.State.Running}}' $(NAME) )" = "true" ]; then \
$(DOCKEREXEC) -u root $(NAME) bash;\
else $(DOCKERRUN) -u root -w /home/jovyan/ecobalyse/data $(NAME) bash; fi

shell:
echo starting a user shell inside the container...
@if [ "$(shell docker container inspect -f '{{.State.Running}}' $(NAME) )" = "true" ]; then \
$(DOCKEREXEC) $(NAME) bash;\
else $(DOCKERRUN) -w /home/jovyan/ecobalyse/data $(NAME) bash; fi

kill_notebook:
docker kill $(NAME)
start_notebook:
$(DOCKERRUN) -d -p 8888:8888 -e JUPYTER_ENABLE_LAB=yes $(NAME) start-notebook.sh
echo ### Run: `make shell` then `jupyter notebook password` to change the jupyter password, then restart with `make stop_notebook` and `make start_notebook`.

stop_notebook:
docker exec $(NAME) pkill jupyter

clean_data:
docker volume rm $(NAME)
Expand Down
25 changes: 16 additions & 9 deletions data/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,25 @@ En cas de problème vous pouvez redémarrer de zéro en faisant d'abord un `make
## Autres commandes :

* `make image` : pour construire l'image docker choisie
* `make import_agribalyse` : pour importer la base dans Brightway. Assurez-vous d'avoir le fichier `agribalyse3_no_param.CSV.zip` dans le dossier `food/import_agb/`
* `make import_agribalyse` : pour importer Agribalyse 3.1.1 dans Brightway. Assurez-vous d'avoir le fichier `AGB3.1.1.20230306.CSV.zip` dans le dossier `data/`
* `make import_method` : pour importer EF 3.1 adapted dans Brightway. Assurez-vous d'avoir le fichier `Environmental Footprint .1 (adapted).CSV` dans le dossier `data/`
* `make import_ecoinvent` : pour importer Ecoinvent 3.9.1. Assurez-vous d'avoir le dossier `ECOINVENT3.9.1/` dans le dossier `data/`
* `make export_builder` : pour exporter les json pour le builder
n1k0 marked this conversation as resolved.
Show resolved Hide resolved
* `make json` : lance toutes les commandes précédentes dans l'ordre
n1k0 marked this conversation as resolved.
Show resolved Hide resolved
* `make export_ciqual` : pour exporter les json des produits ciqual. Assurez-vous d'avoir le fichier `Agribalyse_Synthese.csv` dans le dossier `food/`
n1k0 marked this conversation as resolved.
Show resolved Hide resolved
* `make bash` : lance un shell à l'intérieur conteneur
* `make notebook` : lancer le serveur Jupyter dans le conteneur (si image Jupyter)
* `make shell` : lance un shell à l'intérieur du conteneur
* `make root_shell` : lance un shell root à l'intérieur du conteneur
* `make start_notebook` : lance le serveur Jupyter dans le conteneur
* `make stop_notebook` : arrête le serveur Jupyter donc aussi le conteneur
* `make clean_data` : supprime toutes les données (celles de brightway et
jupyter mais pas les json générés)
* `make clean_image` : supprime l'image docker
* `make clean` : lance `clean_data` et `clean_image`


## Travailler dans le conteneur :

Vous pouvez entrer dans le conteneur avec `make bash`.
Vous pouvez entrer dans le conteneur avec `make shell`.

Toutes les données du conteneur, notamment celles de Brightway et de Jupyter,
sont dans `/home/jovyan` qui est situé dans un volume docker
Expand All @@ -38,9 +44,10 @@ comparées puis commités.

## Lancer le serveur Jupyter

Vous pouvez démarrer le serveur Jupyter avec : `make notebook`. Ensuite
ctrl-cliquez sur le lien généré dans le terminal pour vous y connecter sans mot
de passe
Vous pouvez démarrer le serveur Jupyter avec : `make start_notebook`. Ensuite
si vous avez reconstruit l'image, vous pouvez changer le mot de passe de jupyter
avec : `make shell` puis `jupyter notebook password`, puis exit et redémarrez avec
`make stop_notebook` puis `make start_notebook`.

## Remarques

Expand Down Expand Up @@ -73,7 +80,7 @@ Activez l'environnement virtuel :

$ conda activate ecobalyse-env

Puis installez le package ecobalyse_data :
Puis installez le package `ecobalyse_data` :

$ conda develop .

Expand All @@ -83,7 +90,7 @@ Une fois que vous avez [installé
pip](https://pip.pypa.io/en/stable/installation/) et [créé et activé un
environnement
virtuel](https://packaging.python.org/en/latest/tutorials/installing-packages/#creating-and-using-virtual-environments),
installez le package ecobalyse_data de la sorte :
installez le package `ecobalyse_data` de la sorte :

$ pip install -r requirements.txt
$ pip install -e .
Expand Down
12 changes: 11 additions & 1 deletion data/Dockerfile → data/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM jupyter/minimal-notebook:python-3.9
FROM jupyter/minimal-notebook:python-3.10

ENV BRIGHTWAY2_DIR /home/$NB_USER/data
ENV BRIGHTWAY2_DOCKER 1
Expand All @@ -14,6 +14,13 @@ RUN mkdir -p /home/$NB_USER/data \
&& fix-permissions "/home/${NB_USER}/notebooks" \
&& fix-permissions "/home/${NB_USER}/output"

# keep in sync with requirements.txt
# allow to update the image if the source repo is updated
ADD https://api.github.com/repos/ccomb/brightway2-io/git/refs/heads/main bw2-io.json
ADD https://api.github.com/repos/brightway-lca/brightway2-parameters/git/refs/heads/main bw2-parameters.json
ADD https://api.github.com/repos/ccomb/brightway2-data/git/refs/heads/dev bw2-data.json
ADD https://api.github.com/repos/brightway-lca/brightway2-calc/git/refs/heads/main bw2-calc.json
ADD https://api.github.com/repos/brightway-lca/brightway2-analyzer/git/refs/heads/main bw2-analyzer.json

COPY requirements.txt .
USER root
Expand All @@ -25,6 +32,9 @@ RUN apt update \

COPY entrypoint.sh /

RUN jupyter nbextension enable --py widgetsnbextension


VOLUME /home/$NB_USER
WORKDIR /home/$NB_USER/notebooks
ENTRYPOINT ["/entrypoint.sh"]
File renamed without changes.
16 changes: 16 additions & 0 deletions data/docker/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# don't forget to keep sync the api link in Dockerfile
IPython>=8.0, <9.0
fjson>=0.1, <0.2
flatdict>=4.0, <4.1
git+https://github.com/ccomb/brightway2-io@main
git+https://github.com/brightway-lca/brightway2-parameters@main
git+https://github.com/ccomb/brightway2-data@dev
git+https://github.com/brightway-lca/brightway2-calc@main
git+https://github.com/brightway-lca/brightway2-analyzer@main
ipywidgets>=8.0.0, <8.1
matplotlib>=3.7.0, <3.8
numpy>=1.24.0, <1.25
olca-ipc==0.0.12
pandas>=1.5.0, <1.6
scipy>=1.10.0, <1.11
xlrd>=2.0.0, <2.1
22 changes: 7 additions & 15 deletions data/food/export_agb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,20 +55,15 @@ si c'est un ingrédient simple ou complexe, de la sorte :
- `default`: le `simapro_id` qu'on retrouve dans un export agribalyse par le biais de brightway
- `variants`: optionnellement un objet `variants` avec des modes de production alternatif

Attention, il faut que les différents `simapro_id` correspondent à des procédés
exportés dans `builder_processes.json`, et pour cela, il faut donc rajouter les
noms de ces ingrédients (noms agribalyse) dans le fichier `builder_processes_to_export.txt`.
Attention, il faut que les différents noms de procédés soient des chaînes
de recherche dont le premier résultat dans brightway correspond au procédé souhaité.
Il faut aussi ajouter ces procédés dans `builder_processes_to_export.csv`.

Pour trouver le `simapro_id` correspondant à un nom d'ingrédient (nom
agribalyse), il est possible d'utiliser le petit script python
`code_for_process_name.py`:

python code_for_process_name.py "Sunflower, at farm (WFLDB 3.1)/FR U"

Voici un exemple d'ajout d'un ingrédient simple : [le
Voici un exemple d'ajout d'un ingrédient simple : (TODO update) [le
tournesol](https://github.com/MTES-MCT/ecobalyse-data/pull/14/commits/0dc2091095002c4f13b5147fe819ef6afa49e22f).

Dans le cas où l'indicateur "bvi" (biodiversité de Lindner) est connu, il faut aussi rajouter une entrée dans le fichier `bvi.csv`
Dans le cas où l'indicateur "bvi" (biodiversité de Lindner) est connu, il faut
aussi rajouter une entrée dans le fichier `builder_processes_to_export.csv`

### Ingrédient complexe

Expand All @@ -93,8 +88,5 @@ Dans le cas où l'indicateur "bvi" (biodiversité de Lindner) est connu, il faut
- le nom agribalyse de l'ingrédient "par défaut" (conventionnel)
- le nom agribalyse de l'ingrédient du variant spécifié (du blé bio dans notre example)

Là aussi il faut que les différents `simapro_id` correspondent à des procédés
exportés dans `builder_processes.json`.

Voici un exemple d'ajout d'un ingrédient complexe : [la farine de
Voici un exemple d'ajout d'un ingrédient complexe : (TODO update) [la farine de
blé](https://github.com/MTES-MCT/ecobalyse-data/pull/11/commits/2c7817d310fbc65bb954e339fcaf45369f0b5abe).
59 changes: 59 additions & 0 deletions data/food/export_agb/builder_processes_to_export.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
kind,alias,displayName,bvi,name
,,,0.2271,"Carrot organic Lower Normandy at farm gate"
,,,0.1321,"Carrot conventional national average at farm gate"
,,,1.2164,"Soft wheat grain conventional national average animal feed at farm gate production"
,,,0.9939,"soft wheat grain organic central region"
,,,1.2174,"Soft wheat grain conventional breadmaking quality 15% moisture at farm gate"
,,,2.8229,"Egg national average at farm gate"
,,,2.7312,"Egg organic at farm gate"
,,,3.7279,"Egg Bleu Blanc Coeur outdoor system at farm gate"
,,,0.8161,"Cow milk national average at farm gate"
,,,1.411313691,"Wheat flour at industrial mill"
,,,3.423726823,"Sunflower at farm FR"
,,,2.351161646,"Sunflower grain organic 3 at farm gate"
,,,0.073211803,"Rape seed FR production Cut-off"
,,,1.464805983,"Winter rapeseed organic at farm gate"
,,,0.074402694,"Tomato medium size conventional soil based non-heated greenhouse at greenhouse"
,,,0.131792529,"Tomato organic greenhouse production national average at greenhouse"
,,,0.338079058,"Ware potato conventional variety mix national average at farm gate"
,,,15.04866738,"Ground beef fresh case ready for direct consumption at plant"
,,,6.087620104,"Cooked ham case ready at plant"
,,,20.6954393,"Meat with bone lamb"
,,,5.408719682,"Meat without bone chicken for direct consumption"
,,,,"Mango conventional Val de San Francisco at orchard"
packaging,steel,Acier,0.1133,"Steel unalloyed {RER} steel production converter unalloyed"
packaging,ldpe,Polyéthylène basse densité,0.3318,"Packaging film low density polyethylene {RER} production"
packaging,ps,Polystyrène,0.0011,"Polystyrene expandable {RER} production"
packaging,glass,Verre,0.3211,"Packaging glass white {RER} w/o CH+DE production"
packaging,pp,Polypropylène,0.0003,"Polypropylene granulate {RER}| production"
packaging,cardboard,Carton,1.1059,"Corrugated board box {RER} production Cut-off Copied from Ecoinvent"
packaging,paper,Papier,7.4795,"Kraft paper production"
packaging,pvc,PVC,0.0004,"Polyvinylchloride production suspension polymerised {RER} polymerisation"
packaging,pet,PET,0.245,"Polyethylene terephthalate granulate bottle grade {RER} production Cut-off Copied from Ecoinvent"
packaging,hdpe,Polyéthylène haute densité,0.0004,"Polyethylene high density granulate {RER} production Cut-off Copied from Ecoinvent"
packaging,aluminium,Aluminium,0.94,"Aluminium primary ingot {RoW} production Cut-off Copied from Ecoinvent"
transformation,canning,Mise en conserve,0.0089,"Canning fruits or vegetables industrial 1kg of canned product FR"
transformation,mixing,Mélange,,"Mixing processing dummy"
transformation,cooking,Cuisson,0.012,"Cooking industrial 1kg of cooked product FR"
,,,0.513278847,"Cow milk organic system 1 at farm gate"
,lorry,,0.055765784,"Transport freight lorry 16-32 metric ton EURO5 {RER} EURO5"
,boat,,0.000292724,"Transport freight sea ship"
,plane,,0.012214369,"Transport freight aircraft"
,boat-cooling,,,"Transport freight sea ship reefer"
,lorry-cooling,,,"Transport freight lorry refrigeration EURO5 R134a refrigerant cooling {GLO}"
,,,0.728840715,"Grape full production (phase) integrated variety mix Languedoc-Roussillon at vineyard"
,,,0.539152617,"Grape full production (phase) organic variety mix Languedoc-Roussillon at vineyard"
,low-voltage-electricity,,,"Electricity low voltage {FR} market for Cut-off Copied from Ecoinvent"
,tapwater,,,"Tap water Europe market for Cut-off Copied from Ecoinvent"
,domestic-gas-heat,,,"Heat central or small-scale natural gas Europe market for heat natural gas Cut-off Copied from Ecoinvent"
,,,,"Rapeseed oil mill {GLO}"
,,,,"sunflower oil at mill {glo}"
,,,,"Zucchini springtime under tunnel conventionel at farm gate {FR} U"
,,,,"pear, conventional, at orchard"
,,,,"Melon, conventional, national average, at farm gate"
,,,,"Lettuce, conventional, national average, at farm gate {FR} U"
,,,,"Butter, 82% fat, unsalted, at dairy {FR}"
,,,,"French bean, conventional, national average, at farm gate {FR}"
,,,,"Durum wheat grain, conventional, national average, at farm gate {FR}"
,,,,"Onion, national average, at farm"
,,,,"Peach, production mix, national average, at orchard {FR}"
47 changes: 0 additions & 47 deletions data/food/export_agb/builder_processes_to_export.txt

This file was deleted.

Loading