From fe582eb62dffc27104c9e72a69f032951248282a Mon Sep 17 00:00:00 2001 From: "mathias.chouet" <mathias.chouet@irstea.fr> Date: Thu, 25 Jul 2019 09:29:07 +0200 Subject: [PATCH] Removed RegimeUniforme dependencies from config, use hardcoded presets from model instead --- .../regime-uniforme.config.json | 67 ++----------------- 1 file changed, 7 insertions(+), 60 deletions(-) diff --git a/src/app/calculators/regime-uniforme/regime-uniforme.config.json b/src/app/calculators/regime-uniforme/regime-uniforme.config.json index ddd0c099a..a5623b000 100644 --- a/src/app/calculators/regime-uniforme/regime-uniforme.config.json +++ b/src/app/calculators/regime-uniforme/regime-uniforme.config.json @@ -7,96 +7,43 @@ { "id": "select_section", "type": "select", - "select": [ - { - "id": "select_section_trapez", - "enum": "ComputeNodeType.SectionTrapeze" - }, - { - "id": "select_section_rect", - "enum": "ComputeNodeType.SectionRectangle" - }, - { - "id": "select_section_circ", - "enum": "ComputeNodeType.SectionCercle" - }, - { - "id": "select_section_puiss", - "enum": "ComputeNodeType.SectionPuissance" - } - ] + "source": "acsection_available_sections" }, { "type": "input", "id": "LargeurFond", "nodeType": "SectionTrapeze", - "unit": "m", - "dep_exist": [ - { - "refid": "select_section", - "refvalue": "select_section_trapez" - } - ] + "unit": "m" }, { "type": "input", "id": "Fruit", "nodeType": "SectionTrapeze", - "unit": "m/m", - "dep_exist": [ - { - "refid": "select_section", - "refvalue": "select_section_trapez" - } - ] + "unit": "m/m" }, { "type": "input", "id": "LargeurBerge", "nodeType": "SectionRectangle", - "unit": "m", - "dep_exist": [ - { - "refid": "select_section", - "refvalue": "select_section_rect" - } - ] + "unit": "m" }, { "type": "input", "id": "D", "nodeType": "SectionCercle", - "unit": "m", - "dep_exist": [ - { - "refid": "select_section", - "refvalue": "select_section_circ" - } - ] + "unit": "m" }, { "type": "input", "id": "k", "nodeType": "SectionPuissance", - "unit": "", - "dep_exist": [ - { - "refid": "select_section", - "refvalue": "select_section_puiss" - } - ] + "unit": "" }, { "type": "input", "id": "LargeurBerge", "nodeType": "SectionPuissance", - "unit": "m", - "dep_exist": [ - { - "refid": "select_section", - "refvalue": "select_section_puiss" - } - ] + "unit": "m" } ] }, -- GitLab