feat: ajout methode de calcul cep 1.7 (janvier 2027) - #177
Open
elliot-redfroggy wants to merge 1 commit into
Open
feat: ajout methode de calcul cep 1.7 (janvier 2027)#177elliot-redfroggy wants to merge 1 commit into
elliot-redfroggy wants to merge 1 commit into
Conversation
Implémente le coefficient d'énergie primaire 1.7 pour l'électricité, applicable au 1er janvier 2027 conformément à l'arrêté : https://www.legifrance.gouv.fr/jorf/id/JORFTEXT000054747079 Changements : - src/conso.js : ajout COEFF_EP_1_7 et coef_ep_1_7 (objet coefficients) - src/engine.js : calcul conso1_7 avec coef_ep_1_7, exposition des champs ep_conso_5_usages_2027, ep_conso_5_usages_2027_m2, classe_bilan_dpe_2027 + appel calculateEnr pour conso1_7 (correction déduction production PV) - src/16.2_production_enr.js : updateEPConso supporte un coefficient numérique en plus du booléen (rétrocompat. préservée), import COEFF_EP_1_7 - src/index.js + index.js : export get_conso_coeff_1_7_2027 - test/open3cl-coeff-1-7.spec.js : tests unitaires (4 tests, 215 fixtures) Closes Open3CL#176
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Résumé
Implémentation du coefficient d'énergie primaire 1.7 pour l'électricité, applicable au 1er janvier 2027, conformément à l'arrêté :
https://www.legifrance.gouv.fr/jorf/id/JORFTEXT000054747079
Même approche que le précédent changement (CEP 1.9 → suffixe
_2026), en ajoutant un suffixe_2027pour la période transitoire.Changements
src/conso.js: ajout deCOEFF_EP_1_7(constante 1.7) etcoef_ep_1_7(objet de coefficients électricité)src/engine.js:conso1_7aveccoef_ep_1_7productionENR.calculateEnrpourconso1_7(correction : déduction production PV avec le bon coefficient)ep_conso_5_usages_2027,ep_conso_5_usages_2027_m2,classe_bilan_dpe_2027COEFF_EP_1_7pour passer le coefficient numérique àcalculateEnrsrc/16.2_production_enr.js:updateEPConsosupporte désormais un coefficient numérique en plus du booléen (rétrocompat. préservée)src/index.js+index.js: export deget_conso_coeff_1_7_2027test/open3cl-coeff-1-7.spec.js: 4 tests unitaires couvrant 215 fixturesTests
Note importante
Le bug de production PV a été corrigé au passage :
calculateEnrn'était pas appelé pourconso1_7, ce qui causait une surestimation de la consommation 2027 pour les DPE avec production photovoltaïque.Closes #176