From b99559c8dda578f426cfc023207dc0f1448ff7dc Mon Sep 17 00:00:00 2001 From: Kristof Van Tricht Date: Wed, 8 Jan 2025 12:09:44 +0100 Subject: [PATCH] Updated reference graphs --- .../testresources/preprocess_graph.json | 64 +------------------ .../preprocess_graphwithslope.json | 64 +------------------ 2 files changed, 6 insertions(+), 122 deletions(-) diff --git a/tests/worldcerealtests/testresources/preprocess_graph.json b/tests/worldcerealtests/testresources/preprocess_graph.json index 3676600a..c227e237 100644 --- a/tests/worldcerealtests/testresources/preprocess_graph.json +++ b/tests/worldcerealtests/testresources/preprocess_graph.json @@ -540,35 +540,6 @@ } }, "arrayelement2": { - "process_id": "array_element", - "arguments": { - "data": { - "from_parameter": "data" - }, - "index": 0 - } - }, - "isnodata1": { - "process_id": "is_nodata", - "arguments": { - "x": { - "from_node": "arrayelement2" - } - } - }, - "if1": { - "process_id": "if", - "arguments": { - "accept": 1, - "reject": { - "from_node": "power1" - }, - "value": { - "from_node": "isnodata1" - } - } - }, - "arrayelement3": { "process_id": "array_element", "arguments": { "data": { @@ -582,7 +553,7 @@ "arguments": { "base": 10, "x": { - "from_node": "arrayelement3" + "from_node": "arrayelement2" } } }, @@ -622,44 +593,15 @@ } } }, - "arrayelement4": { - "process_id": "array_element", - "arguments": { - "data": { - "from_parameter": "data" - }, - "index": 1 - } - }, - "isnodata2": { - "process_id": "is_nodata", - "arguments": { - "x": { - "from_node": "arrayelement4" - } - } - }, - "if2": { - "process_id": "if", - "arguments": { - "accept": 1, - "reject": { - "from_node": "power2" - }, - "value": { - "from_node": "isnodata2" - } - } - }, "arraycreate1": { "process_id": "array_create", "arguments": { "data": [ { - "from_node": "if1" + "from_node": "power1" }, { - "from_node": "if2" + "from_node": "power2" } ] }, diff --git a/tests/worldcerealtests/testresources/preprocess_graphwithslope.json b/tests/worldcerealtests/testresources/preprocess_graphwithslope.json index a96e0077..a167a7de 100644 --- a/tests/worldcerealtests/testresources/preprocess_graphwithslope.json +++ b/tests/worldcerealtests/testresources/preprocess_graphwithslope.json @@ -429,35 +429,6 @@ } }, "arrayelement2": { - "process_id": "array_element", - "arguments": { - "data": { - "from_parameter": "data" - }, - "index": 0 - } - }, - "isnodata1": { - "process_id": "is_nodata", - "arguments": { - "x": { - "from_node": "arrayelement2" - } - } - }, - "if1": { - "process_id": "if", - "arguments": { - "accept": 1, - "reject": { - "from_node": "power1" - }, - "value": { - "from_node": "isnodata1" - } - } - }, - "arrayelement3": { "process_id": "array_element", "arguments": { "data": { @@ -471,7 +442,7 @@ "arguments": { "base": 10, "x": { - "from_node": "arrayelement3" + "from_node": "arrayelement2" } } }, @@ -511,44 +482,15 @@ } } }, - "arrayelement4": { - "process_id": "array_element", - "arguments": { - "data": { - "from_parameter": "data" - }, - "index": 1 - } - }, - "isnodata2": { - "process_id": "is_nodata", - "arguments": { - "x": { - "from_node": "arrayelement4" - } - } - }, - "if2": { - "process_id": "if", - "arguments": { - "accept": 1, - "reject": { - "from_node": "power2" - }, - "value": { - "from_node": "isnodata2" - } - } - }, "arraycreate1": { "process_id": "array_create", "arguments": { "data": [ { - "from_node": "if1" + "from_node": "power1" }, { - "from_node": "if2" + "from_node": "power2" } ] },