From 7b6df321083187d809af45f5cd0dec0258797448 Mon Sep 17 00:00:00 2001 From: Xavier Desoindre Date: Tue, 19 Nov 2024 16:05:04 +0100 Subject: [PATCH] fix: review values from agribalyse --- src/data/categories/boisson.json | 88 ++-- src/data/categories/boisson.ts | 88 ++-- src/data/categories/fruitsetlegumes.json | 608 +++++++++++------------ src/data/categories/fruitsetlegumes.ts | 608 +++++++++++------------ src/scripts/buildFromAgribalyse.ts | 20 +- testa/fruitsetlegumes.test.ts | 44 +- 6 files changed, 720 insertions(+), 736 deletions(-) diff --git a/src/data/categories/boisson.json b/src/data/categories/boisson.json index f5a3c2151..7ec800687 100644 --- a/src/data/categories/boisson.json +++ b/src/data/categories/boisson.json @@ -26,23 +26,23 @@ "ecv": [ { "id": 30, - "value": 0.006279361839311691 + "value": 0.0044520645 }, { "id": 32, - "value": 0.16442163693709994 + "value": 0.14366176 }, { "id": 33, - "value": 0.06062765944766532 + "value": 0.10265719 }, { "id": 34, - "value": 0.033147419529957686 + "value": 0.01535022 }, { "id": 35, - "value": 0.002598542165965416 + "value": 0.00095338542 } ], "default": true, @@ -64,27 +64,27 @@ "ecv": [ { "id": 30, - "value": 0.10413263417225607 + "value": 0.064760169 }, { "id": 31, - "value": 0.01732426171634879 + "value": 0.027819751 }, { "id": 32, - "value": 0.22981063504556218 + "value": 0.17741769 }, { "id": 33, - "value": 0.09278663168184571 + "value": 0.19871756 }, { "id": 34, - "value": 0.052697348606487844 + "value": 0.035836187 }, { "id": 35, - "value": 0.014473543677499463 + "value": 0.0066736979 } ], "default": true, @@ -106,27 +106,27 @@ "ecv": [ { "id": 30, - "value": 0.07616837712773988 + "value": 0.064228912 }, { "id": 31, - "value": 0.28598336634616334 + "value": 0.26196323 }, { "id": 32, - "value": 0.4592427423084754 + "value": 0.47782284 }, { "id": 33, - "value": 0.19457960320640558 + "value": 0.27284366 }, { "id": 34, - "value": 0.08111568200617866 + "value": 0.035836187 }, { "id": 35, - "value": 0.022278755905036994 + "value": 0.0066736979 } ], "default": true, @@ -148,27 +148,27 @@ "ecv": [ { "id": 30, - "value": 0.44669260873710237 + "value": 0.28869136 }, { "id": 31, - "value": 0.22386911365243536 + "value": 0.12484796 }, { "id": 32, - "value": 0.38050084514641896 + "value": 0.56487392 }, { "id": 33, - "value": 0.09579033761903151 + "value": 0.18988631 }, { "id": 34, - "value": 0.028107858804597485 + "value": 0.015380971000000002 }, { "id": 35, - "value": 0.015393454940414145 + "value": 0.0066736979 } ], "default": true, @@ -191,23 +191,23 @@ "ecv": [ { "id": 30, - "value": 0.799152957419679 + "value": 0.80811036 }, { "id": 31, - "value": 0.015443376410528314 + "value": 0.01123937 }, { "id": 32, - "value": 0.15286265337366634 + "value": 0.14806368 }, { "id": 33, - "value": 0.16535549763055887 + "value": 0.19902596 }, { "id": 34, - "value": 0.049326298165567405 + "value": 0.015701413 } ], "default": true, @@ -229,23 +229,23 @@ "ecv": [ { "id": 30, - "value": 0.13061776408521542 + "value": 0.11838402 }, { "id": 31, - "value": 0.06453821103848224 + "value": 0.088129258 }, { "id": 32, - "value": 0.10069163573007084 + "value": 0.09985047 }, { "id": 33, - "value": 0.10676070898306896 + "value": 0.12466629000000001 }, { "id": 34, - "value": 0.0430412391631626 + "value": 0.014619521 } ], "total": 0.42, @@ -266,23 +266,23 @@ "ecv": [ { "id": 30, - "value": 0.02452355378915698 + "value": 0.022870449 }, { "id": 32, - "value": 0.0006555673797149556 + "value": 0.0026323455 }, { "id": 33, - "value": 0.0006900499206393254 + "value": 0.0022694993 }, { "id": 34, - "value": 0.00013555602943513944 + "value": 0.0001567597 }, { "id": 35, - "value": 0.0131566263810536 + "value": 0.0112323 } ], "default": true, @@ -303,27 +303,27 @@ "ecv": [ { "id": 30, - "value": 0.5360726648026617 + "value": 0.53277699 }, { "id": 31, - "value": 0.020654948604764477 + "value": 0.027576344 }, { "id": 32, - "value": 0.003083304397760912 + "value": 0.0058242779 }, { "id": 33, - "value": 0.009655399325691972 + "value": 0.015867933 }, { "id": 34, - "value": 0.0013928452705040861 + "value": 0.00091437936 }, { "id": 35, - "value": 0.023365480858616866 + "value": 0.011264719 } ], "default": true, diff --git a/src/data/categories/boisson.ts b/src/data/categories/boisson.ts index 80d0b032f..138a7aa49 100644 --- a/src/data/categories/boisson.ts +++ b/src/data/categories/boisson.ts @@ -12,23 +12,23 @@ export const boissons = [ ecv: [ { id: 30, - value: 0.006279361839311691, + value: 0.0044520645, }, { id: 32, - value: 0.16442163693709994, + value: 0.14366176, }, { id: 33, - value: 0.06062765944766532, + value: 0.10265719, }, { id: 34, - value: 0.033147419529957686, + value: 0.01535022, }, { id: 35, - value: 0.002598542165965416, + value: 0.00095338542, }, ], }, @@ -39,27 +39,27 @@ export const boissons = [ ecv: [ { id: 30, - value: 0.10413263417225607, + value: 0.064760169, }, { id: 31, - value: 0.01732426171634879, + value: 0.027819751, }, { id: 32, - value: 0.22981063504556218, + value: 0.17741769, }, { id: 33, - value: 0.09278663168184571, + value: 0.19871756, }, { id: 34, - value: 0.052697348606487844, + value: 0.035836187, }, { id: 35, - value: 0.014473543677499463, + value: 0.0066736979, }, ], }, @@ -70,27 +70,27 @@ export const boissons = [ ecv: [ { id: 30, - value: 0.07616837712773988, + value: 0.064228912, }, { id: 31, - value: 0.28598336634616334, + value: 0.26196323, }, { id: 32, - value: 0.4592427423084754, + value: 0.47782284, }, { id: 33, - value: 0.19457960320640558, + value: 0.27284366, }, { id: 34, - value: 0.08111568200617866, + value: 0.035836187, }, { id: 35, - value: 0.022278755905036994, + value: 0.0066736979, }, ], }, @@ -101,27 +101,27 @@ export const boissons = [ ecv: [ { id: 30, - value: 0.44669260873710237, + value: 0.28869136, }, { id: 31, - value: 0.22386911365243536, + value: 0.12484796, }, { id: 32, - value: 0.38050084514641896, + value: 0.56487392, }, { id: 33, - value: 0.09579033761903151, + value: 0.18988631, }, { id: 34, - value: 0.028107858804597485, + value: 0.015380971000000002, }, { id: 35, - value: 0.015393454940414145, + value: 0.0066736979, }, ], }, @@ -132,23 +132,23 @@ export const boissons = [ ecv: [ { id: 30, - value: 0.799152957419679, + value: 0.80811036, }, { id: 31, - value: 0.015443376410528314, + value: 0.01123937, }, { id: 32, - value: 0.15286265337366634, + value: 0.14806368, }, { id: 33, - value: 0.16535549763055887, + value: 0.19902596, }, { id: 34, - value: 0.049326298165567405, + value: 0.015701413, }, ], }, @@ -159,23 +159,23 @@ export const boissons = [ ecv: [ { id: 30, - value: 0.13061776408521542, + value: 0.11838402, }, { id: 31, - value: 0.06453821103848224, + value: 0.088129258, }, { id: 32, - value: 0.10069163573007084, + value: 0.09985047, }, { id: 33, - value: 0.10676070898306896, + value: 0.12466629000000001, }, { id: 34, - value: 0.0430412391631626, + value: 0.014619521, }, ], total: 0.42, @@ -186,23 +186,23 @@ export const boissons = [ ecv: [ { id: 30, - value: 0.02452355378915698, + value: 0.022870449, }, { id: 32, - value: 0.0006555673797149556, + value: 0.0026323455, }, { id: 33, - value: 0.0006900499206393254, + value: 0.0022694993, }, { id: 34, - value: 0.00013555602943513944, + value: 0.0001567597, }, { id: 35, - value: 0.0131566263810536, + value: 0.0112323, }, ], }, @@ -212,27 +212,27 @@ export const boissons = [ ecv: [ { id: 30, - value: 0.5360726648026617, + value: 0.53277699, }, { id: 31, - value: 0.020654948604764477, + value: 0.027576344, }, { id: 32, - value: 0.003083304397760912, + value: 0.0058242779, }, { id: 33, - value: 0.009655399325691972, + value: 0.015867933, }, { id: 34, - value: 0.0013928452705040861, + value: 0.00091437936, }, { id: 35, - value: 0.023365480858616866, + value: 0.011264719, }, ], }, diff --git a/src/data/categories/fruitsetlegumes.json b/src/data/categories/fruitsetlegumes.json index 8e7086a16..35e7c1df0 100644 --- a/src/data/categories/fruitsetlegumes.json +++ b/src/data/categories/fruitsetlegumes.json @@ -10,19 +10,19 @@ "ecv": [ { "id": 30, - "value": 0.40146402806811304 + "value": 0.22238959 }, { "id": 33, - "value": 0.07100668042349577 + "value": 0.23917279 }, { "id": 34, - "value": 0.003109841816120535 + "value": 0.0055671528 }, { "id": 35, - "value": 0.0014852275922706364 + "value": 0.0099362451 } ], "default": true, @@ -44,19 +44,19 @@ "ecv": [ { "id": 30, - "value": 0.2547701865767705 + "value": 0.10991945 }, { "id": 33, - "value": 0.11500545989914154 + "value": 0.24073503 }, { "id": 34, - "value": 0.018931904779608256 + "value": 0.013720184 }, { "id": 35, - "value": 0.007807531744479746 + "value": 0.032140419 } ], "default": true, @@ -78,19 +78,19 @@ "ecv": [ { "id": 30, - "value": 0.4846464505613365 + "value": 0.19625882 }, { "id": 33, - "value": 0.12374803403082975 + "value": 0.344695 }, { "id": 34, - "value": 0.011901309567525144 + "value": 0.01265945 }, { "id": 35, - "value": 0.013668524840308626 + "value": 0.080351049 } ], "default": true, @@ -112,19 +112,19 @@ "ecv": [ { "id": 30, - "value": 0.5512462253829189 + "value": 0.18786463 }, { "id": 33, - "value": 0.12390561297084524 + "value": 0.37082451 }, { "id": 34, - "value": 0.013388383947377347 + "value": 0.015004354 }, { "id": 35, - "value": 0.022722851698858557 + "value": 0.13756958 } ], "default": true, @@ -146,19 +146,19 @@ "ecv": [ { "id": 30, - "value": 0.2318884350768168 + "value": 0.084945522 }, { "id": 33, - "value": 0.07749464346752033 + "value": 0.17315136 }, { "id": 34, - "value": 0.031008194059212856 + "value": 0.019594963 }, { "id": 35, - "value": 0.017651621396450073 + "value": 0.080351049 } ], "default": true, @@ -180,19 +180,19 @@ "ecv": [ { "id": 30, - "value": 2.1967691892319436 + "value": 1.4243398 }, { "id": 33, - "value": 0.9352055719787857 + "value": 1.0942501 }, { "id": 34, - "value": 0.1862461113598876 + "value": 0.072722368 }, { "id": 35, - "value": 0.5587081954293829 + "value": 1.2856168 } ], "default": true, @@ -214,19 +214,19 @@ "ecv": [ { "id": 30, - "value": 1.327629397818207 + "value": 0.93812691 }, { "id": 33, - "value": 0.157476163593698 + "value": 0.38261078 }, { "id": 34, - "value": 0.029714931935578007 + "value": 0.024289271 }, { "id": 35, - "value": 0.04448858765251692 + "value": 0.21428212 } ], "default": true, @@ -248,19 +248,19 @@ "ecv": [ { "id": 30, - "value": 0.21870781928982266 + "value": 0.080693939 }, { "id": 33, - "value": 0.12288446318909398 + "value": 0.24073503 }, { "id": 34, - "value": 0.014386392186676835 + "value": 0.010751711 }, { "id": 35, - "value": 0.008342424334406453 + "value": 0.032140419 } ], "default": true, @@ -282,19 +282,19 @@ "ecv": [ { "id": 30, - "value": 0.1985556955183914 + "value": 0.14247925 }, { "id": 33, - "value": 0.19964778729974925 + "value": 0.27356253 }, { "id": 34, - "value": 0.11473182070388492 + "value": 0.046360746 }, { "id": 35, - "value": 0.029818271477974494 + "value": 0.080351049 } ], "default": true, @@ -316,19 +316,19 @@ "ecv": [ { "id": 30, - "value": 0.21870781928982266 + "value": 0.080693939 }, { "id": 33, - "value": 0.12288446318909398 + "value": 0.24073503 }, { "id": 34, - "value": 0.014386392186676835 + "value": 0.010751711 }, { "id": 35, - "value": 0.008342424334406453 + "value": 0.032140419 } ], "default": true, @@ -350,19 +350,19 @@ "ecv": [ { "id": 30, - "value": 0.48095696660704207 + "value": 0.43138668 }, { "id": 33, - "value": 0.17206273471044398 + "value": 0.22561858 }, { "id": 34, - "value": 0.020143815778269795 + "value": 0.01007658 }, { "id": 35, - "value": 0.003854568004244177 + "value": 0.0099362451 } ], "default": true, @@ -384,19 +384,19 @@ "ecv": [ { "id": 30, - "value": 0.2744686179990303 + "value": 0.093440074 }, { "id": 33, - "value": 0.12717084462453185 + "value": 0.27356253 }, { "id": 34, - "value": 0.07308141373145949 + "value": 0.046360746 }, { "id": 35, - "value": 0.018993522644978326 + "value": 0.080351049 } ], "default": true, @@ -418,19 +418,19 @@ "ecv": [ { "id": 30, - "value": 0.5131364995464165 + "value": 0.35608494 }, { "id": 33, - "value": 0.21845176415253645 + "value": 0.27356253 }, { "id": 34, - "value": 0.04350465054337229 + "value": 0.018180592 }, { "id": 35, - "value": 0.08700460775767485 + "value": 0.21426946 } ], "default": true, @@ -452,19 +452,19 @@ "ecv": [ { "id": 30, - "value": 0.3788543057978092 + "value": 0.31335475 }, { "id": 33, - "value": 0.1612853340230889 + "value": 0.24073503 }, { "id": 34, - "value": 0.0321199608362954 + "value": 0.015998921 }, { "id": 35, - "value": 0.0035590722428065053 + "value": 0.0057299719 } ], "default": true, @@ -486,19 +486,19 @@ "ecv": [ { "id": 30, - "value": 0.45524941290667564 + "value": 0.35608494 }, { "id": 33, - "value": 0.19380815332134424 + "value": 0.27356253 }, { "id": 34, - "value": 0.057508549205910114 + "value": 0.025513693 }, { "id": 35, - "value": 0.028946096566070008 + "value": 0.080351049 } ], "default": true, @@ -520,19 +520,19 @@ "ecv": [ { "id": 30, - "value": 0.2829827597867092 + "value": 0.18660557 }, { "id": 33, - "value": 0.15433472453021685 + "value": 0.24073503 }, { "id": 34, - "value": 0.025406187771915913 + "value": 0.013720184 }, { "id": 35, - "value": 0.010477530911158064 + "value": 0.032140419 } ], "default": true, @@ -554,19 +554,19 @@ "ecv": [ { "id": 30, - "value": 0.3948815373068884 + "value": 0.2224172 }, { "id": 33, - "value": 0.17027309100485263 + "value": 0.29790004 }, { "id": 34, - "value": 0.030683139472821738 + "value": 0.018180592 }, { "id": 35, - "value": 0.023011113215437206 + "value": 0.080351049 } ], "default": true, @@ -588,19 +588,19 @@ "ecv": [ { "id": 30, - "value": 0.3249566112753587 + "value": 0.19572714 }, { "id": 33, - "value": 0.1267880175884188 + "value": 0.24073503 }, { "id": 34, - "value": 0.023167730906306763 + "value": 0.014917201 }, { "id": 35, - "value": 0.008607430229915764 + "value": 0.032140419 } ], "default": true, @@ -622,19 +622,19 @@ "ecv": [ { "id": 30, - "value": 0.5250268671805667 + "value": 0.30023238 }, { "id": 33, - "value": 0.22207954480171793 + "value": 0.36475005 }, { "id": 34, - "value": 0.1276227005592863 + "value": 0.061814329 }, { "id": 35, - "value": 0.06633710645842904 + "value": 0.21426946 } ], "default": true, @@ -656,19 +656,19 @@ "ecv": [ { "id": 30, - "value": 0.23531079919928174 + "value": 0.082227266 }, { "id": 33, - "value": 0.10902766714087427 + "value": 0.24073503 }, { "id": 34, - "value": 0.013123084645555711 + "value": 0.0097605452 }, { "id": 35, - "value": 0.007401709214288365 + "value": 0.032140419 } ], "default": true, @@ -690,19 +690,19 @@ "ecv": [ { "id": 30, - "value": 0.6518647722304847 + "value": 0.53775347 }, { "id": 33, - "value": 0.16598537558972426 + "value": 0.27356253 }, { "id": 34, - "value": 0.09538700432995566 + "value": 0.046360746 }, { "id": 35, - "value": 0.024790642849835256 + "value": 0.080351049 } ], "default": true, @@ -724,19 +724,19 @@ "ecv": [ { "id": 30, - "value": 0.1501613878291217 + "value": 0.11750866 }, { "id": 33, - "value": 0.15098729419749254 + "value": 0.22561858 }, { "id": 34, - "value": 0.08676803636837423 + "value": 0.038235667 }, { "id": 35, - "value": 0.003382433705011497 + "value": 0.0099362451 } ], "default": true, @@ -760,19 +760,19 @@ "ecv": [ { "id": 30, - "value": 1.8072992522991684 + "value": 0.1635442 }, { "id": 33, - "value": 8.755759543156284 + "value": 10.382059 }, { "id": 34, - "value": 0.04115101307427565 + "value": 0.015591118 }, { "id": 35, - "value": 0.03733555847027189 + "value": 0.080351049 } ], "default": true, @@ -794,19 +794,19 @@ "ecv": [ { "id": 30, - "value": 0.6167064670815313 + "value": 0.48799384 }, { "id": 33, - "value": 0.2823070232147077 + "value": 0.37600339 }, { "id": 34, - "value": 0.036295342373374985 + "value": 0.018180592 }, { "id": 35, - "value": 0.027220038330385988 + "value": 0.080351049 } ], "default": true, @@ -830,19 +830,19 @@ "ecv": [ { "id": 30, - "value": 0.31085338573632987 + "value": 0.11347802 }, { "id": 33, - "value": 0.07009748452830465 + "value": 0.24073503 }, { "id": 34, - "value": 0.01823640246843202 + "value": 0.020034805 }, { "id": 35, - "value": 0.01387469926693342 + "value": 0.038814117 } ], "default": true, @@ -864,19 +864,19 @@ "ecv": [ { "id": 30, - "value": 0.5250268671805667 + "value": 0.30023238 }, { "id": 33, - "value": 0.22207954480171793 + "value": 0.36475005 }, { "id": 34, - "value": 0.1276227005592863 + "value": 0.061814329 }, { "id": 35, - "value": 0.06633710645842904 + "value": 0.21426946 } ], "default": true, @@ -898,19 +898,19 @@ "ecv": [ { "id": 30, - "value": 0.5250268671805667 + "value": 0.30023238 }, { "id": 33, - "value": 0.22207954480171793 + "value": 0.36475005 }, { "id": 34, - "value": 0.1276227005592863 + "value": 0.061814329 }, { "id": 35, - "value": 0.06633710645842904 + "value": 0.21426946 } ], "default": true, @@ -932,19 +932,19 @@ "ecv": [ { "id": 30, - "value": 0.21870781928982266 + "value": 0.080693939 }, { "id": 33, - "value": 0.12288446318909398 + "value": 0.24073503 }, { "id": 34, - "value": 0.014386392186676839 + "value": 0.010751711 }, { "id": 35, - "value": 0.008342424334406453 + "value": 0.032140419 } ], "default": true, @@ -966,19 +966,19 @@ "ecv": [ { "id": 30, - "value": 0.5590874300039954 + "value": 0.39438298 }, { "id": 32, - "value": 0.14492032711285208 + "value": 0.26506589 }, { "id": 33, - "value": 0.06918517048486783 + "value": 0.13112869 }, { "id": 34, - "value": 0.03729287339828466 + "value": 0.019908241 } ], "default": true, @@ -1000,19 +1000,19 @@ "ecv": [ { "id": 30, - "value": 0.2488429591112444 + "value": 0.10002787 }, { "id": 33, - "value": 0.11861897696298362 + "value": 0.24635495 }, { "id": 34, - "value": 0.014250534193702704 + "value": 0.011012889 }, { "id": 35, - "value": 0.007823657732069384 + "value": 0.032140419 } ], "default": true, @@ -1034,19 +1034,19 @@ "ecv": [ { "id": 30, - "value": 0.267491959110919 + "value": 0.091697658 }, { "id": 33, - "value": 0.1502946069120538 + "value": 0.27356253 }, { "id": 34, - "value": 0.017595366153782457 + "value": 0.012217853 }, { "id": 35, - "value": 0.022447157823244808 + "value": 0.080351049 } ], "default": true, @@ -1068,15 +1068,15 @@ "ecv": [ { "id": 30, - "value": 0.5180955567960798 + "value": 0.42618276 }, { "id": 33, - "value": 0.11384770088796828 + "value": 0.21885003 }, { "id": 34, - "value": 0.03318591931595206 + "value": 0.020096387 } ], "default": true, @@ -1098,19 +1098,19 @@ "ecv": [ { "id": 30, - "value": 0.5518885583147793 + "value": 0.40243746 }, { "id": 33, - "value": 0.17044406082494665 + "value": 0.27356253 }, { "id": 34, - "value": 0.02107649884179719 + "value": 0.012514646 }, { "id": 35, - "value": 0.025456567018476744 + "value": 0.080351049 } ], "default": true, @@ -1132,19 +1132,19 @@ "ecv": [ { "id": 30, - "value": 0.8018993677679974 + "value": 0.75605782 }, { "id": 33, - "value": 0.29034903892726466 + "value": 0.32592714 }, { "id": 34, - "value": 0.05635866042364036 + "value": 0.021283765 }, { "id": 35, - "value": 0.03501270688109747 + "value": 0.080351049 } ], "default": true, @@ -1166,19 +1166,19 @@ "ecv": [ { "id": 30, - "value": 0.3948815373068884 + "value": 0.2224172 }, { "id": 33, - "value": 0.17027309100485263 + "value": 0.29790004 }, { "id": 34, - "value": 0.030683139472821738 + "value": 0.018180592 }, { "id": 35, - "value": 0.023011113215437206 + "value": 0.080351049 } ], "default": true, @@ -1200,19 +1200,19 @@ "ecv": [ { "id": 30, - "value": 0.3881547265906991 + "value": 0.35621594 }, { "id": 33, - "value": 0.18753609390158912 + "value": 0.22561858 }, { "id": 34, - "value": 0.02195532073628385 + "value": 0.01007658 }, { "id": 35, - "value": 0.004201203871427947 + "value": 0.0099362451 } ], "default": true, @@ -1234,19 +1234,19 @@ "ecv": [ { "id": 30, - "value": 0.26749195911091894 + "value": 0.091697658 }, { "id": 33, - "value": 0.1502946069120538 + "value": 0.27356253 }, { "id": 34, - "value": 0.01759536615378246 + "value": 0.012217853 }, { "id": 35, - "value": 0.02244715782324481 + "value": 0.080351049 } ], "default": true, @@ -1268,19 +1268,19 @@ "ecv": [ { "id": 30, - "value": 0.37484185214687293 + "value": 0.31335475 }, { "id": 33, - "value": 0.100514588828102 + "value": 0.14862509 }, { "id": 34, - "value": 0.018682097933140285 + "value": 0.010751711 }, { "id": 35, - "value": 0.010833431091884844 + "value": 0.032140419 } ], "default": true, @@ -1302,19 +1302,19 @@ "ecv": [ { "id": 30, - "value": 1.5808848689288106 + "value": 1.4268828 }, { "id": 33, - "value": 0.16400856157383012 + "value": 0.27356253 }, { "id": 34, - "value": 0.026998669479118702 + "value": 0.015591118 }, { "id": 35, - "value": 0.024495397018240356 + "value": 0.080351049 } ], "default": true, @@ -1336,19 +1336,19 @@ "ecv": [ { "id": 30, - "value": 1.8023380399713715 + "value": 1.6698515 }, { "id": 33, - "value": 0.04549092139611165 + "value": 0.14946824 }, { "id": 34, - "value": 0.02701232284999322 + "value": 0.025173812 }, { "id": 35, - "value": 0.005363840782523507 + "value": 0.035711573 } ], "default": true, @@ -1370,19 +1370,19 @@ "ecv": [ { "id": 31, - "value": 1.0833147091099529 + "value": 0.55684123 }, { "id": 33, - "value": 0.10209270185223396 + "value": 0.43280172 }, { "id": 34, - "value": 0.011031431598929678 + "value": 0.017512084 }, { "id": 35, - "value": 0.024985651438883212 + "value": 0.21426946 } ], "default": true, @@ -1404,19 +1404,19 @@ "ecv": [ { "id": 30, - "value": 0.726023664597355 + "value": 0.2576576 }, { "id": 33, - "value": 0.12219019567494512 + "value": 0.46262808 }, { "id": 34, - "value": 0.009137511017664302 + "value": 0.015004354 }, { "id": 35, - "value": 0.015508242710035574 + "value": 0.13756958 } ], "default": true, @@ -1438,19 +1438,19 @@ "ecv": [ { "id": 30, - "value": 0.32696964988622773 + "value": 0.12490846999999998 }, { "id": 33, - "value": 0.18515294196122192 + "value": 0.32908042 }, { "id": 34, - "value": 0.006923273026071387 + "value": 0.0067501727 }, { "id": 35, - "value": 0.022044246826478944 + "value": 0.080351049 } ], "default": true, @@ -1472,19 +1472,19 @@ "ecv": [ { "id": 30, - "value": 0.5264847662963503 + "value": 0.21796035 }, { "id": 33, - "value": 0.06806288156514599 + "value": 0.29964738 }, { "id": 34, - "value": 0.009963001152310288 + "value": 0.015591118 }, { "id": 35, - "value": 0.009039247986193464 + "value": 0.080351049 } ], "default": true, @@ -1506,19 +1506,19 @@ "ecv": [ { "id": 30, - "value": 1.5901941672341455 + "value": 1.4268828 }, { "id": 33, - "value": 0.16497435272935823 + "value": 0.27356253 }, { "id": 34, - "value": 0.007738389579073022 + "value": 0.0067501727 }, { "id": 35, - "value": 0.024639642157423022 + "value": 0.080351049 } ], "default": true, @@ -1540,23 +1540,23 @@ "ecv": [ { "id": 30, - "value": 0.7254928911153846 + "value": 0.4974984 }, { "id": 31, - "value": 0.018875390793624165 + "value": 0.01432555 }, { "id": 33, - "value": 0.21183823246585762 + "value": 0.38009761 }, { "id": 34, - "value": 0.0021630305838026376 + "value": 0.0045425747 }, { "id": 35, - "value": 0.018445638741330768 + "value": 0.080351049 } ], "default": true, @@ -1578,19 +1578,19 @@ "ecv": [ { "id": 30, - "value": 0.33080235322545093 + "value": 0.0046518993 }, { "id": 33, - "value": 0.07471912513665556 + "value": 0.32460129 }, { "id": 34, - "value": 0.008073632430015852 + "value": 0.013134063 }, { "id": 35, - "value": 0.0091431905078776 + "value": 0.080351049 } ], "default": true, @@ -1612,19 +1612,19 @@ "ecv": [ { "id": 30, - "value": 0.6671106652173151 + "value": 0.31889524 }, { "id": 33, - "value": 0.1848975025015616 + "value": 0.38120935 }, { "id": 34, - "value": 0.026953165351735784 + "value": 0.017020934 }, { "id": 35, - "value": 0.05243365092938753 + "value": 0.21426946 } ], "default": true, @@ -1646,19 +1646,19 @@ "ecv": [ { "id": 30, - "value": 1.105821313370722 + "value": 0.83658095 }, { "id": 33, - "value": 0.07630630439580667 + "value": 0.27356253 }, { "id": 34, - "value": 0.012561348455141478 + "value": 0.015591118 }, { "id": 35, - "value": 0.011396680778329766 + "value": 0.080351049 } ], "default": true, @@ -1680,19 +1680,19 @@ "ecv": [ { "id": 30, - "value": 0.5516745396456768 + "value": 0.27069047 }, { "id": 33, - "value": 0.06577248673377466 + "value": 0.27356253 }, { "id": 34, - "value": 0.010099314647502546 + "value": 0.012765701 }, { "id": 35, - "value": 0.009823408973046163 + "value": 0.080351049 } ], "default": true, @@ -1714,19 +1714,19 @@ "ecv": [ { "id": 30, - "value": 0.81634159152278 + "value": 0.63308777 }, { "id": 33, - "value": 0.05489349981435049 + "value": 0.22561858 }, { "id": 34, - "value": 0.009036427639252406 + "value": 0.012858654 }, { "id": 35, - "value": 0.0012297301236171496 + "value": 0.0099362451 } ], "default": true, @@ -1748,19 +1748,19 @@ "ecv": [ { "id": 30, - "value": 4.4273156212923395 + "value": 4.1880839 }, { "id": 31, - "value": 0.06631423045897496 + "value": 0.193667 }, { "id": 33, - "value": 0.1243784389891823 + "value": 0.24855809 }, { "id": 34, - "value": 0.034957130259502846 + "value": 0.022656431 } ], "default": true, @@ -1782,23 +1782,23 @@ "ecv": [ { "id": 30, - "value": 3.7682299167498408 + "value": 3.0057327 }, { "id": 32, - "value": 0.19227068360559735 + "value": 0.53013177 }, { "id": 33, - "value": 0.09179029158898216 + "value": 0.26225739 }, { "id": 34, - "value": 0.05647588702076113 + "value": 0.045312862 }, { "id": 35, - "value": 0.05607213303481815 + "value": 0.32140419 } ], "default": true, @@ -1820,19 +1820,19 @@ "ecv": [ { "id": 30, - "value": 0.9153825473257319 + "value": 0.60236424 }, { "id": 33, - "value": 0.03982863631175173 + "value": 0.27356253 }, { "id": 34, - "value": 0.0018682267824330797 + "value": 0.0067501727 }, { "id": 35, - "value": 0.0059485812800832245 + "value": 0.080351049 } ], "default": true, @@ -1854,19 +1854,19 @@ "ecv": [ { "id": 30, - "value": 0.9193106557979828 + "value": 0.60236424 }, { "id": 33, - "value": 0.039999549777593374 + "value": 0.27356253 }, { "id": 34, - "value": 0.006584623469626956 + "value": 0.015591118 }, { "id": 35, - "value": 0.00597410795479691 + "value": 0.080351049 } ], "default": true, @@ -1888,19 +1888,19 @@ "ecv": [ { "id": 30, - "value": 0.4748974093662752 + "value": 0.35608494 }, { "id": 33, - "value": 0.20217267132475333 + "value": 0.27356253 }, { "id": 34, - "value": 0.009483237043029268 + "value": 0.0067501727 }, { "id": 35, - "value": 0.030195373965942154 + "value": 0.080351049 } ], "default": true, @@ -1922,19 +1922,19 @@ "ecv": [ { "id": 30, - "value": 0.5203124812236186 + "value": 0.22061455 }, { "id": 33, - "value": 0.06366413517604866 + "value": 0.28802092 }, { "id": 34, - "value": 0.002810672523080817 + "value": 0.0067501727 }, { "id": 35, - "value": 0.008949402777251819 + "value": 0.080351049 } ], "default": true, @@ -1956,23 +1956,23 @@ "ecv": [ { "id": 30, - "value": 1.193131040702151 + "value": 0.60236424 }, { "id": 32, - "value": 0.07171672834715612 + "value": 0.35147703 }, { "id": 33, - "value": 0.05417833774270202 + "value": 0.28554207 }, { "id": 34, - "value": 0.008545880115061162 + "value": 0.015591118 }, { "id": 35, - "value": 0.007753520092929479 + "value": 0.080351049 } ], "default": true, @@ -1994,23 +1994,23 @@ "ecv": [ { "id": 30, - "value": 0.42247817556364853 + "value": 0.14767705 }, { "id": 32, - "value": 0.23107612594473056 + "value": 0.35147703 }, { "id": 33, - "value": 0.17456625091857256 + "value": 0.28554207 }, { "id": 34, - "value": 0.027535400948818504 + "value": 0.015591118 }, { "id": 35, - "value": 0.024982363624229915 + "value": 0.080351049 } ], "default": true, @@ -2032,19 +2032,19 @@ "ecv": [ { "id": 30, - "value": 1.2954829217552046 + "value": 1.0250766 }, { "id": 33, - "value": 0.17386182153933968 + "value": 0.43445757 }, { "id": 34, - "value": 0.0038527783666459587 + "value": 0.0055671528 }, { "id": 35, - "value": 0.0018400462388097818 + "value": 0.0099362451 } ], "default": true, @@ -2066,19 +2066,19 @@ "ecv": [ { "id": 30, - "value": 0.27341934474951646 + "value": 0.076599513 }, { "id": 33, - "value": 0.08190737602897352 + "value": 0.24960251 }, { "id": 34, - "value": 0.0036594786082843286 + "value": 0.005940152 }, { "id": 35, - "value": 0.005296394613225656 + "value": 0.032140419 } ], "default": true, @@ -2100,19 +2100,19 @@ "ecv": [ { "id": 30, - "value": 0.3135493456304906 + "value": 0.1487964 }, { "id": 33, - "value": 0.11876845385012552 + "value": 0.26207109 }, { "id": 34, - "value": 0.017282838108235988 + "value": 0.013720184 }, { "id": 35, - "value": 0.007127455411147958 + "value": 0.032140419 } ], "default": true, @@ -2134,19 +2134,19 @@ "ecv": [ { "id": 30, - "value": 0.31094313792574774 + "value": 0.19572714 }, { "id": 33, - "value": 0.12132039377688243 + "value": 0.24073503 }, { "id": 34, - "value": 0.022168642510005814 + "value": 0.014917201 }, { "id": 35, - "value": 0.002677168687364001 + "value": 0.0057299719 } ], "default": true, @@ -2168,19 +2168,19 @@ "ecv": [ { "id": 30, - "value": 0.6052678990137963 + "value": 0.5231282 }, { "id": 33, - "value": 0.20558117492666145 + "value": 0.27356253 }, { "id": 34, - "value": 0.06100194915162366 + "value": 0.025513693 }, { "id": 35, - "value": 0.030704448907918618 + "value": 0.080351049 } ], "default": true, @@ -2203,19 +2203,19 @@ "ecv": [ { "id": 30, - "value": 0.3387797113397951 + "value": 0.21205178 }, { "id": 33, - "value": 0.18476558024305728 + "value": 0.27356253 }, { "id": 34, - "value": 0.030415636746221317 + "value": 0.015591118 }, { "id": 35, - "value": 0.027595548670926253 + "value": 0.080351049 } ], "default": true, @@ -2237,19 +2237,19 @@ "ecv": [ { "id": 30, - "value": 0.784887627238915 + "value": 0.36854012 }, { "id": 33, - "value": 0.40369427532200425 + "value": 0.59153752 }, { "id": 34, - "value": 0.011573429169881933 + "value": 0.010800276 }, { "id": 35, - "value": 0.09212677426919891 + "value": 0.32140419 } ], "default": true, @@ -2271,19 +2271,19 @@ "ecv": [ { "id": 30, - "value": 0.5414110726969145 + "value": 0.31629881 }, { "id": 33, - "value": 0.26905091124465946 + "value": 0.40893121 }, { "id": 34, - "value": 0.029727700179135168 + "value": 0.017811293 }, { "id": 35, - "value": 0.0404212088792907 + "value": 0.13756958 } ], "default": true, @@ -2305,19 +2305,19 @@ "ecv": [ { "id": 30, - "value": 1.245661481703931 + "value": 0.86139181 }, { "id": 33, - "value": 0.1925264065004108 + "value": 0.46369755 }, { "id": 34, - "value": 0.017918409364132016 + "value": 0.017811293 }, { "id": 35, - "value": 0.024363935431526183 + "value": 0.13756958 } ], "default": true, @@ -2339,19 +2339,19 @@ "ecv": [ { "id": 30, - "value": 0.4510695936352177 + "value": 0.1635442 }, { "id": 33, - "value": 0.06239045780565181 + "value": 0.27356253 }, { "id": 34, - "value": 0.010270557419573601 + "value": 0.015591118 }, { "id": 35, - "value": 0.009318288139556933 + "value": 0.080351049 } ], "default": true, @@ -2373,19 +2373,19 @@ "ecv": [ { "id": 30, - "value": 2.406885789206207 + "value": 2.2964659 }, { "id": 32, - "value": 0.1848272926269017 + "value": 0.28118162 }, { "id": 33, - "value": 0.1293980331458001 + "value": 0.16236686 }, { "id": 34, - "value": 0.038999873021091015 + "value": 0.020096608 } ], "default": true, @@ -2407,19 +2407,19 @@ "ecv": [ { "id": 30, - "value": 0.6704029253772589 + "value": 0.52613809 }, { "id": 33, - "value": 0.17070675301295968 + "value": 0.27356253 }, { "id": 34, - "value": 0.026211890362449766 + "value": 0.012765701 }, { "id": 35, - "value": 0.025495801247331758 + "value": 0.080351049 } ], "default": true, @@ -2441,19 +2441,19 @@ "ecv": [ { "id": 30, - "value": 0.3153061169059525 + "value": 0.12490847 }, { "id": 33, - "value": 0.14233190293683579 + "value": 0.27356253 }, { "id": 34, - "value": 0.006676308748808555 + "value": 0.0067501727 }, { "id": 35, - "value": 0.021257893108403186 + "value": 0.080351049 } ], "default": true, @@ -2475,19 +2475,19 @@ "ecv": [ { "id": 30, - "value": 0.6276714194919251 + "value": 0.48760375 }, { "id": 33, - "value": 0.2363260098786109 + "value": 0.32572638 }, { "id": 34, - "value": 0.008707752440716822 + "value": 0.0067501727 }, { "id": 35, - "value": 0.027726169888747185 + "value": 0.080351049 } ], "default": true, @@ -2509,23 +2509,23 @@ "ecv": [ { "id": 30, - "value": 1.809626612518601 + "value": 1.1287117 }, { "id": 32, - "value": 0.25422073154537705 + "value": 0.53013177 }, { "id": 33, - "value": 0.28110383195738514 + "value": 0.4682019 }, { "id": 34, - "value": 0.07467254520477501 + "value": 0.045312862 }, { "id": 35, - "value": 0.07413870077386148 + "value": 0.32140419 } ], "default": true, @@ -2547,19 +2547,19 @@ "ecv": [ { "id": 30, - "value": 0.4709379119589203 + "value": 0.23917143 }, { "id": 33, - "value": 0.14620600161122319 + "value": 0.31519117 }, { "id": 34, - "value": 0.0058124880835162965 + "value": 0.0067501727 }, { "id": 35, - "value": 0.018507420046340317 + "value": 0.080351049 } ], "default": true, diff --git a/src/data/categories/fruitsetlegumes.ts b/src/data/categories/fruitsetlegumes.ts index b58025f0b..355f53d3e 100644 --- a/src/data/categories/fruitsetlegumes.ts +++ b/src/data/categories/fruitsetlegumes.ts @@ -5,19 +5,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.40146402806811304, + value: 0.22238959, }, { id: 33, - value: 0.07100668042349577, + value: 0.23917279, }, { id: 34, - value: 0.003109841816120535, + value: 0.0055671528, }, { id: 35, - value: 0.0014852275922706364, + value: 0.0099362451, }, ], months: [4, 5, 6], @@ -28,19 +28,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.2547701865767705, + value: 0.10991945, }, { id: 33, - value: 0.11500545989914154, + value: 0.24073503, }, { id: 34, - value: 0.018931904779608256, + value: 0.013720184, }, { id: 35, - value: 0.007807531744479746, + value: 0.032140419, }, ], months: [0, 1, 2, 3, 7, 8, 9, 10, 11], @@ -51,19 +51,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.4846464505613365, + value: 0.19625882, }, { id: 33, - value: 0.12374803403082975, + value: 0.344695, }, { id: 34, - value: 0.011901309567525144, + value: 0.01265945, }, { id: 35, - value: 0.013668524840308626, + value: 0.080351049, }, ], months: [0, 1, 2], @@ -74,19 +74,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.5512462253829189, + value: 0.18786463, }, { id: 33, - value: 0.12390561297084524, + value: 0.37082451, }, { id: 34, - value: 0.013388383947377347, + value: 0.015004354, }, { id: 35, - value: 0.022722851698858557, + value: 0.13756958, }, ], months: [0, 1], @@ -97,19 +97,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.2318884350768168, + value: 0.084945522, }, { id: 33, - value: 0.07749464346752033, + value: 0.17315136, }, { id: 34, - value: 0.031008194059212856, + value: 0.019594963, }, { id: 35, - value: 0.017651621396450073, + value: 0.080351049, }, ], months: [6, 7, 8, 9, 10, 11], @@ -120,19 +120,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 2.1967691892319436, + value: 1.4243398, }, { id: 33, - value: 0.9352055719787857, + value: 1.0942501, }, { id: 34, - value: 0.1862461113598876, + value: 0.072722368, }, { id: 35, - value: 0.5587081954293829, + value: 1.2856168, }, ], months: [4, 5, 6, 7, 8], @@ -143,19 +143,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 1.327629397818207, + value: 0.93812691, }, { id: 33, - value: 0.157476163593698, + value: 0.38261078, }, { id: 34, - value: 0.029714931935578007, + value: 0.024289271, }, { id: 35, - value: 0.04448858765251692, + value: 0.21428212, }, ], months: [3, 4, 5], @@ -166,19 +166,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.21870781928982266, + value: 0.080693939, }, { id: 33, - value: 0.12288446318909398, + value: 0.24073503, }, { id: 34, - value: 0.014386392186676835, + value: 0.010751711, }, { id: 35, - value: 0.008342424334406453, + value: 0.032140419, }, ], months: [0, 1, 2, 9, 10, 11], @@ -189,19 +189,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.1985556955183914, + value: 0.14247925, }, { id: 33, - value: 0.19964778729974925, + value: 0.27356253, }, { id: 34, - value: 0.11473182070388492, + value: 0.046360746, }, { id: 35, - value: 0.029818271477974494, + value: 0.080351049, }, ], months: [5, 6, 7, 8, 9, 10], @@ -212,19 +212,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.21870781928982266, + value: 0.080693939, }, { id: 33, - value: 0.12288446318909398, + value: 0.24073503, }, { id: 34, - value: 0.014386392186676835, + value: 0.010751711, }, { id: 35, - value: 0.008342424334406453, + value: 0.032140419, }, ], months: [0, 1, 2, 8, 9, 10, 11], @@ -235,19 +235,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.48095696660704207, + value: 0.43138668, }, { id: 33, - value: 0.17206273471044398, + value: 0.22561858, }, { id: 34, - value: 0.020143815778269795, + value: 0.01007658, }, { id: 35, - value: 0.003854568004244177, + value: 0.0099362451, }, ], months: [0, 1, 2, 9, 10, 11], @@ -258,19 +258,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.2744686179990303, + value: 0.093440074, }, { id: 33, - value: 0.12717084462453185, + value: 0.27356253, }, { id: 34, - value: 0.07308141373145949, + value: 0.046360746, }, { id: 35, - value: 0.018993522644978326, + value: 0.080351049, }, ], months: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], @@ -281,19 +281,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.5131364995464165, + value: 0.35608494, }, { id: 33, - value: 0.21845176415253645, + value: 0.27356253, }, { id: 34, - value: 0.04350465054337229, + value: 0.018180592, }, { id: 35, - value: 0.08700460775767485, + value: 0.21426946, }, ], months: [0, 1, 2, 9, 10, 11], @@ -304,19 +304,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.3788543057978092, + value: 0.31335475, }, { id: 33, - value: 0.1612853340230889, + value: 0.24073503, }, { id: 34, - value: 0.0321199608362954, + value: 0.015998921, }, { id: 35, - value: 0.0035590722428065053, + value: 0.0057299719, }, ], months: [0, 1, 2, 9, 10, 11], @@ -327,19 +327,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.45524941290667564, + value: 0.35608494, }, { id: 33, - value: 0.19380815332134424, + value: 0.27356253, }, { id: 34, - value: 0.057508549205910114, + value: 0.025513693, }, { id: 35, - value: 0.028946096566070008, + value: 0.080351049, }, ], months: [0, 1, 2, 8, 9, 10, 11], @@ -350,19 +350,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.2829827597867092, + value: 0.18660557, }, { id: 33, - value: 0.15433472453021685, + value: 0.24073503, }, { id: 34, - value: 0.025406187771915913, + value: 0.013720184, }, { id: 35, - value: 0.010477530911158064, + value: 0.032140419, }, ], months: [4, 5, 6, 7, 8, 9], @@ -373,19 +373,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.3948815373068884, + value: 0.2224172, }, { id: 33, - value: 0.17027309100485263, + value: 0.29790004, }, { id: 34, - value: 0.030683139472821738, + value: 0.018180592, }, { id: 35, - value: 0.023011113215437206, + value: 0.080351049, }, ], months: [0, 8, 9, 10, 11], @@ -396,19 +396,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.3249566112753587, + value: 0.19572714, }, { id: 33, - value: 0.1267880175884188, + value: 0.24073503, }, { id: 34, - value: 0.023167730906306763, + value: 0.014917201, }, { id: 35, - value: 0.008607430229915764, + value: 0.032140419, }, ], months: [4, 5, 6, 7, 8, 9], @@ -419,19 +419,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.5250268671805667, + value: 0.30023238, }, { id: 33, - value: 0.22207954480171793, + value: 0.36475005, }, { id: 34, - value: 0.1276227005592863, + value: 0.061814329, }, { id: 35, - value: 0.06633710645842904, + value: 0.21426946, }, ], months: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], @@ -442,19 +442,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.23531079919928174, + value: 0.082227266, }, { id: 33, - value: 0.10902766714087427, + value: 0.24073503, }, { id: 34, - value: 0.013123084645555711, + value: 0.0097605452, }, { id: 35, - value: 0.007401709214288365, + value: 0.032140419, }, ], months: [9, 10, 11], @@ -465,19 +465,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.6518647722304847, + value: 0.53775347, }, { id: 33, - value: 0.16598537558972426, + value: 0.27356253, }, { id: 34, - value: 0.09538700432995566, + value: 0.046360746, }, { id: 35, - value: 0.024790642849835256, + value: 0.080351049, }, ], months: [0, 1, 2, 3, 4, 9], @@ -488,19 +488,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.1501613878291217, + value: 0.11750866, }, { id: 33, - value: 0.15098729419749254, + value: 0.22561858, }, { id: 34, - value: 0.08676803636837423, + value: 0.038235667, }, { id: 35, - value: 0.003382433705011497, + value: 0.0099362451, }, ], months: [0, 1, 2, 3, 4, 8, 9, 10, 11], @@ -511,19 +511,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 1.8072992522991684, + value: 0.1635442, }, { id: 33, - value: 8.755759543156284, + value: 10.382059, }, { id: 34, - value: 0.04115101307427565, + value: 0.015591118, }, { id: 35, - value: 0.03733555847027189, + value: 0.080351049, }, ], months: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], @@ -534,19 +534,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.6167064670815313, + value: 0.48799384, }, { id: 33, - value: 0.2823070232147077, + value: 0.37600339, }, { id: 34, - value: 0.036295342373374985, + value: 0.018180592, }, { id: 35, - value: 0.027220038330385988, + value: 0.080351049, }, ], months: [3, 5, 6, 7, 8, 9, 10], @@ -558,19 +558,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.31085338573632987, + value: 0.11347802, }, { id: 33, - value: 0.07009748452830465, + value: 0.24073503, }, { id: 34, - value: 0.01823640246843202, + value: 0.020034805, }, { id: 35, - value: 0.01387469926693342, + value: 0.038814117, }, ], months: [5, 6, 7, 8, 9], @@ -581,19 +581,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.5250268671805667, + value: 0.30023238, }, { id: 33, - value: 0.22207954480171793, + value: 0.36475005, }, { id: 34, - value: 0.1276227005592863, + value: 0.061814329, }, { id: 35, - value: 0.06633710645842904, + value: 0.21426946, }, ], months: [4, 5, 6, 7, 8], @@ -604,19 +604,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.5250268671805667, + value: 0.30023238, }, { id: 33, - value: 0.22207954480171793, + value: 0.36475005, }, { id: 34, - value: 0.1276227005592863, + value: 0.061814329, }, { id: 35, - value: 0.06633710645842904, + value: 0.21426946, }, ], months: [0, 1, 9, 10, 11], @@ -627,19 +627,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.21870781928982266, + value: 0.080693939, }, { id: 33, - value: 0.12288446318909398, + value: 0.24073503, }, { id: 34, - value: 0.014386392186676839, + value: 0.010751711, }, { id: 35, - value: 0.008342424334406453, + value: 0.032140419, }, ], months: [0, 1, 2, 3, 4, 9, 10, 11], @@ -650,19 +650,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.5590874300039954, + value: 0.39438298, }, { id: 32, - value: 0.14492032711285208, + value: 0.26506589, }, { id: 33, - value: 0.06918517048486783, + value: 0.13112869, }, { id: 34, - value: 0.03729287339828466, + value: 0.019908241, }, ], months: [6, 7, 8], @@ -673,19 +673,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.2488429591112444, + value: 0.10002787, }, { id: 33, - value: 0.11861897696298362, + value: 0.24635495, }, { id: 34, - value: 0.014250534193702704, + value: 0.011012889, }, { id: 35, - value: 0.007823657732069384, + value: 0.032140419, }, ], months: [0, 1, 2, 3, 8, 9, 10, 11], @@ -696,19 +696,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.267491959110919, + value: 0.091697658, }, { id: 33, - value: 0.1502946069120538, + value: 0.27356253, }, { id: 34, - value: 0.017595366153782457, + value: 0.012217853, }, { id: 35, - value: 0.022447157823244808, + value: 0.080351049, }, ], months: [0, 1, 2, 9, 10, 11], @@ -719,15 +719,15 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.5180955567960798, + value: 0.42618276, }, { id: 33, - value: 0.11384770088796828, + value: 0.21885003, }, { id: 34, - value: 0.03318591931595206, + value: 0.020096387, }, ], months: [4, 5, 6], @@ -738,19 +738,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.5518885583147793, + value: 0.40243746, }, { id: 33, - value: 0.17044406082494665, + value: 0.27356253, }, { id: 34, - value: 0.02107649884179719, + value: 0.012514646, }, { id: 35, - value: 0.025456567018476744, + value: 0.080351049, }, ], months: [0, 1, 2, 3, 8, 9, 10, 11], @@ -761,19 +761,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.8018993677679974, + value: 0.75605782, }, { id: 33, - value: 0.29034903892726466, + value: 0.32592714, }, { id: 34, - value: 0.05635866042364036, + value: 0.021283765, }, { id: 35, - value: 0.03501270688109747, + value: 0.080351049, }, ], months: [5, 6, 7, 8], @@ -784,19 +784,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.3948815373068884, + value: 0.2224172, }, { id: 33, - value: 0.17027309100485263, + value: 0.29790004, }, { id: 34, - value: 0.030683139472821738, + value: 0.018180592, }, { id: 35, - value: 0.023011113215437206, + value: 0.080351049, }, ], months: [0, 8, 9, 10, 11], @@ -807,19 +807,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.3881547265906991, + value: 0.35621594, }, { id: 33, - value: 0.18753609390158912, + value: 0.22561858, }, { id: 34, - value: 0.02195532073628385, + value: 0.01007658, }, { id: 35, - value: 0.004201203871427947, + value: 0.0099362451, }, ], months: [2, 3, 4, 5], @@ -830,19 +830,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.26749195911091894, + value: 0.091697658, }, { id: 33, - value: 0.1502946069120538, + value: 0.27356253, }, { id: 34, - value: 0.01759536615378246, + value: 0.012217853, }, { id: 35, - value: 0.02244715782324481, + value: 0.080351049, }, ], months: [0, 1, 2, 10, 11], @@ -853,19 +853,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.37484185214687293, + value: 0.31335475, }, { id: 33, - value: 0.100514588828102, + value: 0.14862509, }, { id: 34, - value: 0.018682097933140285, + value: 0.010751711, }, { id: 35, - value: 0.010833431091884844, + value: 0.032140419, }, ], months: [0, 1, 10, 11], @@ -876,19 +876,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 1.5808848689288106, + value: 1.4268828, }, { id: 33, - value: 0.16400856157383012, + value: 0.27356253, }, { id: 34, - value: 0.026998669479118702, + value: 0.015591118, }, { id: 35, - value: 0.024495397018240356, + value: 0.080351049, }, ], months: [5, 6, 7], @@ -899,19 +899,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 1.8023380399713715, + value: 1.6698515, }, { id: 33, - value: 0.04549092139611165, + value: 0.14946824, }, { id: 34, - value: 0.02701232284999322, + value: 0.025173812, }, { id: 35, - value: 0.005363840782523507, + value: 0.035711573, }, ], months: [9, 10], @@ -922,19 +922,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 31, - value: 1.0833147091099529, + value: 0.55684123, }, { id: 33, - value: 0.10209270185223396, + value: 0.43280172, }, { id: 34, - value: 0.011031431598929678, + value: 0.017512084, }, { id: 35, - value: 0.024985651438883212, + value: 0.21426946, }, ], months: [0, 1, 10, 11], @@ -946,19 +946,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.726023664597355, + value: 0.2576576, }, { id: 33, - value: 0.12219019567494512, + value: 0.46262808, }, { id: 34, - value: 0.009137511017664302, + value: 0.015004354, }, { id: 35, - value: 0.015508242710035574, + value: 0.13756958, }, ], months: [1, 2, 3, 4, 5], @@ -969,19 +969,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.32696964988622773, + value: 0.12490846999999998, }, { id: 33, - value: 0.18515294196122192, + value: 0.32908042, }, { id: 34, - value: 0.006923273026071387, + value: 0.0067501727, }, { id: 35, - value: 0.022044246826478944, + value: 0.080351049, }, ], months: [9], @@ -992,19 +992,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.5264847662963503, + value: 0.21796035, }, { id: 33, - value: 0.06806288156514599, + value: 0.29964738, }, { id: 34, - value: 0.009963001152310288, + value: 0.015591118, }, { id: 35, - value: 0.009039247986193464, + value: 0.080351049, }, ], months: [6, 7, 8, 9], @@ -1015,19 +1015,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 1.5901941672341455, + value: 1.4268828, }, { id: 33, - value: 0.16497435272935823, + value: 0.27356253, }, { id: 34, - value: 0.007738389579073022, + value: 0.0067501727, }, { id: 35, - value: 0.024639642157423022, + value: 0.080351049, }, ], months: [5, 6, 7], @@ -1038,23 +1038,23 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.7254928911153846, + value: 0.4974984, }, { id: 31, - value: 0.018875390793624165, + value: 0.01432555, }, { id: 33, - value: 0.21183823246585762, + value: 0.38009761, }, { id: 34, - value: 0.0021630305838026376, + value: 0.0045425747, }, { id: 35, - value: 0.018445638741330768, + value: 0.080351049, }, ], months: [0, 1, 2, 10, 11], @@ -1065,19 +1065,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.33080235322545093, + value: 0.0046518993, }, { id: 33, - value: 0.07471912513665556, + value: 0.32460129, }, { id: 34, - value: 0.008073632430015852, + value: 0.013134063, }, { id: 35, - value: 0.0091431905078776, + value: 0.080351049, }, ], months: [0, 1, 10, 11], @@ -1088,19 +1088,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.6671106652173151, + value: 0.31889524, }, { id: 33, - value: 0.1848975025015616, + value: 0.38120935, }, { id: 34, - value: 0.026953165351735784, + value: 0.017020934, }, { id: 35, - value: 0.05243365092938753, + value: 0.21426946, }, ], months: [5, 6, 7, 8], @@ -1111,19 +1111,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 1.105821313370722, + value: 0.83658095, }, { id: 33, - value: 0.07630630439580667, + value: 0.27356253, }, { id: 34, - value: 0.012561348455141478, + value: 0.015591118, }, { id: 35, - value: 0.011396680778329766, + value: 0.080351049, }, ], months: [7, 8], @@ -1134,19 +1134,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.5516745396456768, + value: 0.27069047, }, { id: 33, - value: 0.06577248673377466, + value: 0.27356253, }, { id: 34, - value: 0.010099314647502546, + value: 0.012765701, }, { id: 35, - value: 0.009823408973046163, + value: 0.080351049, }, ], months: [7, 8], @@ -1157,19 +1157,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.81634159152278, + value: 0.63308777, }, { id: 33, - value: 0.05489349981435049, + value: 0.22561858, }, { id: 34, - value: 0.009036427639252406, + value: 0.012858654, }, { id: 35, - value: 0.0012297301236171496, + value: 0.0099362451, }, ], months: [6, 7, 8], @@ -1180,19 +1180,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 4.4273156212923395, + value: 4.1880839, }, { id: 31, - value: 0.06631423045897496, + value: 0.193667, }, { id: 33, - value: 0.1243784389891823, + value: 0.24855809, }, { id: 34, - value: 0.034957130259502846, + value: 0.022656431, }, ], months: [8, 9, 10], @@ -1203,23 +1203,23 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 3.7682299167498408, + value: 3.0057327, }, { id: 32, - value: 0.19227068360559735, + value: 0.53013177, }, { id: 33, - value: 0.09179029158898216, + value: 0.26225739, }, { id: 34, - value: 0.05647588702076113, + value: 0.045312862, }, { id: 35, - value: 0.05607213303481815, + value: 0.32140419, }, ], months: [8, 9], @@ -1230,19 +1230,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.9153825473257319, + value: 0.60236424, }, { id: 33, - value: 0.03982863631175173, + value: 0.27356253, }, { id: 34, - value: 0.0018682267824330797, + value: 0.0067501727, }, { id: 35, - value: 0.0059485812800832245, + value: 0.080351049, }, ], months: [6, 7, 8], @@ -1253,19 +1253,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.9193106557979828, + value: 0.60236424, }, { id: 33, - value: 0.039999549777593374, + value: 0.27356253, }, { id: 34, - value: 0.006584623469626956, + value: 0.015591118, }, { id: 35, - value: 0.00597410795479691, + value: 0.080351049, }, ], months: [8], @@ -1276,19 +1276,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.4748974093662752, + value: 0.35608494, }, { id: 33, - value: 0.20217267132475333, + value: 0.27356253, }, { id: 34, - value: 0.009483237043029268, + value: 0.0067501727, }, { id: 35, - value: 0.030195373965942154, + value: 0.080351049, }, ], months: [3, 4, 5], @@ -1299,19 +1299,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.5203124812236186, + value: 0.22061455, }, { id: 33, - value: 0.06366413517604866, + value: 0.28802092, }, { id: 34, - value: 0.002810672523080817, + value: 0.0067501727, }, { id: 35, - value: 0.008949402777251819, + value: 0.080351049, }, ], months: [5, 6, 7, 8], @@ -1322,23 +1322,23 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 1.193131040702151, + value: 0.60236424, }, { id: 32, - value: 0.07171672834715612, + value: 0.35147703, }, { id: 33, - value: 0.05417833774270202, + value: 0.28554207, }, { id: 34, - value: 0.008545880115061162, + value: 0.015591118, }, { id: 35, - value: 0.007753520092929479, + value: 0.080351049, }, ], months: [5, 6], @@ -1349,23 +1349,23 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.42247817556364853, + value: 0.14767705, }, { id: 32, - value: 0.23107612594473056, + value: 0.35147703, }, { id: 33, - value: 0.17456625091857256, + value: 0.28554207, }, { id: 34, - value: 0.027535400948818504, + value: 0.015591118, }, { id: 35, - value: 0.024982363624229915, + value: 0.080351049, }, ], months: [5, 6, 7], @@ -1376,19 +1376,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 1.2954829217552046, + value: 1.0250766, }, { id: 33, - value: 0.17386182153933968, + value: 0.43445757, }, { id: 34, - value: 0.0038527783666459587, + value: 0.0055671528, }, { id: 35, - value: 0.0018400462388097818, + value: 0.0099362451, }, ], months: [5, 6, 7], @@ -1399,19 +1399,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.27341934474951646, + value: 0.076599513, }, { id: 33, - value: 0.08190737602897352, + value: 0.24960251, }, { id: 34, - value: 0.0036594786082843286, + value: 0.005940152, }, { id: 35, - value: 0.005296394613225656, + value: 0.032140419, }, ], months: [0, 1, 2, 7, 8, 9, 10, 11], @@ -1422,19 +1422,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.3135493456304906, + value: 0.1487964, }, { id: 33, - value: 0.11876845385012552, + value: 0.26207109, }, { id: 34, - value: 0.017282838108235988, + value: 0.013720184, }, { id: 35, - value: 0.007127455411147958, + value: 0.032140419, }, ], months: [8, 9], @@ -1445,19 +1445,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.31094313792574774, + value: 0.19572714, }, { id: 33, - value: 0.12132039377688243, + value: 0.24073503, }, { id: 34, - value: 0.022168642510005814, + value: 0.014917201, }, { id: 35, - value: 0.002677168687364001, + value: 0.0057299719, }, ], months: [5, 6, 7, 8], @@ -1468,19 +1468,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.6052678990137963, + value: 0.5231282, }, { id: 33, - value: 0.20558117492666145, + value: 0.27356253, }, { id: 34, - value: 0.06100194915162366, + value: 0.025513693, }, { id: 35, - value: 0.030704448907918618, + value: 0.080351049, }, ], months: [8, 9, 10], @@ -1491,19 +1491,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.3387797113397951, + value: 0.21205178, }, { id: 33, - value: 0.18476558024305728, + value: 0.27356253, }, { id: 34, - value: 0.030415636746221317, + value: 0.015591118, }, { id: 35, - value: 0.027595548670926253, + value: 0.080351049, }, ], months: [5, 6, 7, 8], @@ -1514,19 +1514,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.784887627238915, + value: 0.36854012, }, { id: 33, - value: 0.40369427532200425, + value: 0.59153752, }, { id: 34, - value: 0.011573429169881933, + value: 0.010800276, }, { id: 35, - value: 0.09212677426919891, + value: 0.32140419, }, ], months: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], @@ -1537,19 +1537,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.5414110726969145, + value: 0.31629881, }, { id: 33, - value: 0.26905091124465946, + value: 0.40893121, }, { id: 34, - value: 0.029727700179135168, + value: 0.017811293, }, { id: 35, - value: 0.0404212088792907, + value: 0.13756958, }, ], months: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], @@ -1560,19 +1560,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 1.245661481703931, + value: 0.86139181, }, { id: 33, - value: 0.1925264065004108, + value: 0.46369755, }, { id: 34, - value: 0.017918409364132016, + value: 0.017811293, }, { id: 35, - value: 0.024363935431526183, + value: 0.13756958, }, ], months: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], @@ -1583,19 +1583,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.4510695936352177, + value: 0.1635442, }, { id: 33, - value: 0.06239045780565181, + value: 0.27356253, }, { id: 34, - value: 0.010270557419573601, + value: 0.015591118, }, { id: 35, - value: 0.009318288139556933, + value: 0.080351049, }, ], months: [0, 10, 11], @@ -1606,19 +1606,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 2.406885789206207, + value: 2.2964659, }, { id: 32, - value: 0.1848272926269017, + value: 0.28118162, }, { id: 33, - value: 0.1293980331458001, + value: 0.16236686, }, { id: 34, - value: 0.038999873021091015, + value: 0.020096608, }, ], months: [0, 9, 10, 11], @@ -1629,19 +1629,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.6704029253772589, + value: 0.52613809, }, { id: 33, - value: 0.17070675301295968, + value: 0.27356253, }, { id: 34, - value: 0.026211890362449766, + value: 0.012765701, }, { id: 35, - value: 0.025495801247331758, + value: 0.080351049, }, ], months: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], @@ -1652,19 +1652,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.3153061169059525, + value: 0.12490847, }, { id: 33, - value: 0.14233190293683579, + value: 0.27356253, }, { id: 34, - value: 0.006676308748808555, + value: 0.0067501727, }, { id: 35, - value: 0.021257893108403186, + value: 0.080351049, }, ], months: [0, 1, 10, 11], @@ -1675,19 +1675,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.6276714194919251, + value: 0.48760375, }, { id: 33, - value: 0.2363260098786109, + value: 0.32572638, }, { id: 34, - value: 0.008707752440716822, + value: 0.0067501727, }, { id: 35, - value: 0.027726169888747185, + value: 0.080351049, }, ], months: [0, 9, 10, 11], @@ -1698,23 +1698,23 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 1.809626612518601, + value: 1.1287117, }, { id: 32, - value: 0.25422073154537705, + value: 0.53013177, }, { id: 33, - value: 0.28110383195738514, + value: 0.4682019, }, { id: 34, - value: 0.07467254520477501, + value: 0.045312862, }, { id: 35, - value: 0.07413870077386148, + value: 0.32140419, }, ], months: [0, 1, 10, 11], @@ -1725,19 +1725,19 @@ export const fruitsEtLegumes = [ ecv: [ { id: 30, - value: 0.4709379119589203, + value: 0.23917143, }, { id: 33, - value: 0.14620600161122319, + value: 0.31519117, }, { id: 34, - value: 0.0058124880835162965, + value: 0.0067501727, }, { id: 35, - value: 0.018507420046340317, + value: 0.080351049, }, ], months: [5, 6, 7, 8], diff --git a/src/scripts/buildFromAgribalyse.ts b/src/scripts/buildFromAgribalyse.ts index 4fd2f4ea8..56d1d9512 100644 --- a/src/scripts/buildFromAgribalyse.ts +++ b/src/scripts/buildFromAgribalyse.ts @@ -6,7 +6,6 @@ import { BoissonEquivalent, EquivalentValue, FruitsEtLegumesEquivalent } from '. enum AgrybalisePrefixEnum { ChangementClimatique = 'Changement_climatique_-_', - ScoreUniqueEF = 'Score_unique_EF_-_', } const existingEquivalentsByCategory: Record< @@ -30,20 +29,9 @@ const agrybaliseValues = [ 'Code_CIQUAL', 'Code_AGB', "Sous-groupe_d'aliment", - ...Object.keys(finalitiesId).flatMap((finality) => [ - AgrybalisePrefixEnum.ChangementClimatique + finality, - AgrybalisePrefixEnum.ScoreUniqueEF + finality, - ]), + ...Object.keys(finalitiesId).flatMap((finality) => [AgrybalisePrefixEnum.ChangementClimatique + finality]), ] -function sumValues(prefix: AgrybalisePrefixEnum, value: Record) { - let res = 0 - Object.keys(finalitiesId).forEach((finality) => { - res += value[`${prefix}${finality}`] - }) - return res -} - const updateEquivalents = ( equivalents: (BoissonEquivalent | FruitsEtLegumesEquivalent)[], values: (Record & { Code_CIQUAL: number; Code_AGB?: string; "Sous-groupe_d'aliment": string })[] @@ -71,13 +59,9 @@ const updateEquivalents = ( } console.log(`${equivalent.slug}: "${value["Sous-groupe_d'aliment"]}",`) - const finalC02 = sumValues(AgrybalisePrefixEnum.ChangementClimatique, value) - const finalEF = sumValues(AgrybalisePrefixEnum.ScoreUniqueEF, value) - const delta = finalC02 / finalEF - const newEcvs: EquivalentValue[] = [] Object.entries(finalitiesId).forEach(([finality, id]) => { - const ecv = value[`${AgrybalisePrefixEnum.ScoreUniqueEF}${finality}`] * delta + const ecv = value[`${AgrybalisePrefixEnum.ChangementClimatique}${finality}`] if (ecv !== 0) { newEcvs.push({ id, diff --git a/testa/fruitsetlegumes.test.ts b/testa/fruitsetlegumes.test.ts index 542b6d277..a413f3462 100644 --- a/testa/fruitsetlegumes.test.ts +++ b/testa/fruitsetlegumes.test.ts @@ -63,21 +63,21 @@ describe('fruitsetlegumes', () => { expect(data).toEqual({ data: [ { - ecv: 0.396515083, + ecv: 0.39651508300000005, months: [1, 2, 3, 4, 8, 9, 10, 11, 12], name: 'Pomme', slug: 'pomme', category: 'fruits', }, { - ecv: 0.358042894, + ecv: 0.35804289400000006, months: [7, 8, 9, 10, 11, 12], name: 'Ail', slug: 'ail', category: 'herbes', }, { - ecv: 0.3643210989999999, + ecv: 0.364321099, months: [1, 2, 3, 10, 11, 12], name: 'Betterave', slug: 'betterave', @@ -91,28 +91,28 @@ describe('fruitsetlegumes', () => { category: 'légumes', }, { - ecv: 0.3643210989999999, + ecv: 0.364321099, months: [1, 2, 3, 9, 10, 11, 12], name: 'Carotte', slug: 'carotte', category: 'légumes', }, { - ecv: 0.6770180851000002, + ecv: 0.6770180851, months: [1, 2, 3, 10, 11, 12], name: 'Céleri', slug: 'celeri', category: 'légumes', }, { - ecv: 0.4937143989999999, + ecv: 0.493714399, months: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], name: 'Champignon (morille crue)', slug: 'champignonmorille', category: 'légumes', }, { - ecv: 0.862097522, + ecv: 0.8620975220000001, months: [1, 2, 3, 10, 11, 12], name: 'Chou', slug: 'chou', @@ -154,21 +154,21 @@ describe('fruitsetlegumes', () => { category: 'légumes', }, { - ecv: 0.9410662189999999, + ecv: 0.941066219, months: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], name: 'Cresson', slug: 'cresson', category: 'légumes', }, { - ecv: 0.3648632602000001, + ecv: 0.36486326020000004, months: [10, 11, 12], name: 'Échalote', slug: 'echalote', category: 'légumes', }, { - ecv: 0.9380277949999998, + ecv: 0.9380277949999999, months: [1, 2, 3, 4, 5, 10], name: 'Endive', slug: 'endive', @@ -182,14 +182,14 @@ describe('fruitsetlegumes', () => { category: 'légumes', }, { - ecv: 10.641545366999999, + ecv: 10.641545367, months: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], name: 'Mangue', slug: 'mangue', category: 'fruits', }, { - ecv: 0.962528871, + ecv: 0.9625288710000001, months: [4, 6, 7, 8, 9, 10, 11], name: 'Fenouil', slug: 'fenouil', @@ -203,7 +203,7 @@ describe('fruitsetlegumes', () => { category: 'légumes', }, { - ecv: 0.9410662189999999, + ecv: 0.941066219, months: [1, 2, 10, 11, 12], name: 'Mâche', slug: 'mache', @@ -217,7 +217,7 @@ describe('fruitsetlegumes', () => { category: 'légumes', }, { - ecv: 0.38953612800000015, + ecv: 0.38953612800000004, months: [1, 2, 3, 4, 9, 10, 11, 12], name: 'Oignon', slug: 'oignon', @@ -252,7 +252,7 @@ describe('fruitsetlegumes', () => { category: 'fruits à coque et graines oléagineuses', }, { - ecv: 0.5410901117000001, + ecv: 0.5410901117, months: [10], name: 'Coing', slug: 'coing', @@ -294,7 +294,7 @@ describe('fruitsetlegumes', () => { category: 'fruits', }, { - ecv: 0.9025554719999999, + ecv: 0.9025554720000001, months: [9, 10, 11], name: 'Brocoli', slug: 'brocoli', @@ -308,7 +308,7 @@ describe('fruitsetlegumes', () => { category: 'fruits', }, { - ecv: 0.8806108929999997, + ecv: 0.8806108929999998, months: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], name: 'Banane', slug: 'banane', @@ -356,28 +356,28 @@ describe('fruitsetlegumes', () => { expect(data).toEqual({ data: [ { - ecv: 0.396515083, + ecv: 0.39651508300000005, months: [1, 2, 3, 4, 8, 9, 10, 11, 12], name: 'Pomme', slug: 'pomme', category: 'fruits', }, { - ecv: 0.358042894, + ecv: 0.35804289400000006, months: [7, 8, 9, 10, 11, 12], name: 'Ail', slug: 'ail', category: 'herbes', }, { - ecv: 10.641545366999999, + ecv: 10.641545367, months: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], name: 'Mangue', slug: 'mangue', category: 'fruits', }, { - ecv: 0.5410901117000001, + ecv: 0.5410901117, months: [10], name: 'Coing', slug: 'coing', @@ -412,7 +412,7 @@ describe('fruitsetlegumes', () => { category: 'fruits', }, { - ecv: 0.8806108929999997, + ecv: 0.8806108929999998, months: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], name: 'Banane', slug: 'banane',