From dabdf5d1759c704bbfdf7b79c75caf8ffcf38cd8 Mon Sep 17 00:00:00 2001
From: "francois.grand" <francois.grand@irstea.fr>
Date: Thu, 12 Apr 2018 16:01:22 +0200
Subject: [PATCH]  #77 suppression des valeurs dans les fichiers de config des
 calculettes quand elles sont fournies par la lib

---
 .../pab-dimensions/pab-dimensions.config.json    | 12 ++++--------
 .../pab-puissance/pab-puissance.config.json      | 12 ++++--------
 .../parallel-structures.config.json              | 16 +++-------------
 3 files changed, 11 insertions(+), 29 deletions(-)

diff --git a/src/app/calculators/pab-dimensions/pab-dimensions.config.json b/src/app/calculators/pab-dimensions/pab-dimensions.config.json
index 8ef2539ad..55dd4639c 100644
--- a/src/app/calculators/pab-dimensions/pab-dimensions.config.json
+++ b/src/app/calculators/pab-dimensions/pab-dimensions.config.json
@@ -7,26 +7,22 @@
             {
                 "type": "input",
                 "id": "L",
-                "unit": "m",
-                "value": 2
+                "unit": "m"
             },
             {
                 "type": "input",
                 "id": "W",
-                "unit": "m",
-                "value": 1
+                "unit": "m"
             },
             {
                 "type": "input",
                 "id": "Y",
-                "unit": "m",
-                "value": 0.5
+                "unit": "m"
             },
             {
                 "type": "input",
                 "id": "V",
-                "unit": "m³",
-                "value": 1
+                "unit": "m³"
             }
         ]
     },
diff --git a/src/app/calculators/pab-puissance/pab-puissance.config.json b/src/app/calculators/pab-puissance/pab-puissance.config.json
index 0a9d8cc4b..59b06d658 100644
--- a/src/app/calculators/pab-puissance/pab-puissance.config.json
+++ b/src/app/calculators/pab-puissance/pab-puissance.config.json
@@ -7,26 +7,22 @@
             {
                 "type": "input",
                 "id": "DH",
-                "unit": "m",
-                "value": 0.3
+                "unit": "m"
             },
             {
                 "type": "input",
                 "id": "Q",
-                "unit": "m³/s",
-                "value": 0.1
+                "unit": "m³/s"
             },
             {
                 "type": "input",
                 "id": "V",
-                "unit": "m³",
-                "value": 0.5
+                "unit": "m³"
             },
             {
                 "type": "input",
                 "id": "Pv",
-                "unit": "W",
-                "value": 588.6
+                "unit": "W"
             }
         ]
     },
diff --git a/src/app/calculators/parallel-structures/parallel-structures.config.json b/src/app/calculators/parallel-structures/parallel-structures.config.json
index ff29ad62e..438622553 100644
--- a/src/app/calculators/parallel-structures/parallel-structures.config.json
+++ b/src/app/calculators/parallel-structures/parallel-structures.config.json
@@ -9,20 +9,17 @@
                 "type": "input",
                 "id": "Q",
                 "symbol": "Q",
-                "unit": "m³/s",
-                "value": 0.5
+                "unit": "m³/s"
             },
             {
                 "type": "input",
                 "id": "Z1",
-                "unit": "m",
-                "value": 2
+                "unit": "m"
             },
             {
                 "type": "input",
                 "id": "Z2",
-                "unit": "m",
-                "value": 1
+                "unit": "m"
             }
         ]
     },
@@ -103,7 +100,6 @@
                 "type": "input",
                 "id": "ZDV",
                 "unit": "m",
-                "value": 0.2,
                 "nodeType": "StructureRectangle",
                 "dep_exist": [
                     {
@@ -120,7 +116,6 @@
                 "type": "input",
                 "id": "L",
                 "unit": "m",
-                "value": 2,
                 "nodeType": "StructureRectangle",
                 "dep_exist": [
                     {
@@ -137,7 +132,6 @@
                 "type": "input",
                 "id": "W",
                 "unit": "m",
-                "value": 0.5,
                 "dep_exist": [
                     {
                         "refid": "select_ouvrage",
@@ -149,7 +143,6 @@
                 "type": "input",
                 "id": "Cd",
                 "unit": "",
-                "value": 0.4,
                 "nodeType": "StructureRectangle",
                 "dep_exist": [
                     {
@@ -194,7 +187,6 @@
                 "type": "input",
                 "id": "alpha",
                 "unit": "",
-                "value": 0.4,
                 "nodeType": "StructureKIVI",
                 "dep_exist": [
                     {
@@ -207,7 +199,6 @@
                 "type": "input",
                 "id": "beta",
                 "unit": "",
-                "value": 0.4,
                 "nodeType": "StructureKIVI",
                 "dep_exist": [
                     {
@@ -220,7 +211,6 @@
                 "type": "input",
                 "id": "ZRAM",
                 "unit": "",
-                "value": 0.4,
                 "nodeType": "StructureKIVI",
                 "dep_exist": [
                     {
-- 
GitLab