Commit b7a6d936 authored by Samuel GAIST's avatar Samuel GAIST

[test][prefix][two_loops] Use integer_offsetter algorithm

This patch updates the naming of the blocks as well as
change the algorithm used in the blocks part.

This allows to improve testing for the beat/beat.editor> v2
version.
parent 21bdcb21
Pipeline #32684 passed with stage
in 22 minutes and 16 seconds
{
"schema_version": 2,
"blocks": {
"echo_for_loop_processor": {
"algorithm": "v1/integers_echo/1",
"parameters": {
},
"offsetter_for_loop_processor": {
"algorithm": "user/integers_offsetter/1",
"inputs": {
"in_data": "in"
},
"outputs": {
"out_data": "out"
},
"parameters": {
"offset": 1
}
},
"echo_for_loop_evaluator": {
"algorithm": "v1/integers_echo/1",
"parameters": {
},
"offsetter_for_loop_evaluator": {
"algorithm": "user/integers_offsetter/1",
"inputs": {
"in_data": "in"
},
......@@ -27,8 +26,6 @@
"loops": {
"loop_super_block": {
"algorithm": "user/db_input_loop_processor/1",
"parameters": {
},
"inputs": {
"in": "in"
},
......@@ -49,8 +46,6 @@
},
"echo_loop_block": {
"algorithm": "user/block_input_loop_processor/1",
"parameters": {
},
"inputs": {
"in": "in"
},
......@@ -73,16 +68,12 @@
"analyzers": {
"analysis": {
"algorithm": "v1/integers_analysis/1",
"parameters": {
},
"inputs": {
"input": "input"
}
},
"loop_analysis": {
"algorithm": "v1/integers_analysis/1",
"parameters": {
},
"inputs": {
"input": "input"
}
......@@ -111,6 +102,9 @@
},
"user/block_input_loop_evaluator/1" : {
"threshold": 9
},
"user/integers_offsetter/1": {
"offset": 0
}
}
}
......@@ -13,21 +13,21 @@
},
{
"from": "loop_super_block.out",
"to": "echo_for_loop_processor.in",
"to": "offsetter_for_loop_processor.in",
"channel": "integers"
},
{
"from": "loop_super_block.out_loop",
"to": "echo_for_loop_evaluator.in",
"to": "offsetter_for_loop_evaluator.in",
"channel": "integers"
},
{
"from": "echo_for_loop_processor.out",
"from": "offsetter_for_loop_processor.out",
"to": "echo_loop_block.in",
"channel": "integers"
},
{
"from": "echo_for_loop_evaluator.out",
"from": "offsetter_for_loop_evaluator.out",
"to": "echo_loop_block.in_loop",
"channel": "integers"
},
......@@ -93,7 +93,7 @@
],
"blocks": [
{
"name": "echo_for_loop_processor",
"name": "offsetter_for_loop_processor",
"synchronized_channel": "integers",
"inputs": [
"in"
......@@ -103,7 +103,7 @@
]
},
{
"name": "echo_for_loop_evaluator",
"name": "offsetter_for_loop_evaluator",
"synchronized_channel": "integers",
"inputs": [
"in"
......
......@@ -358,7 +358,7 @@ class BaseExecutionMixIn(object):
nose.tools.assert_is_none(
self.execute(
"user/user/two_loops/1/two_loops",
[{"sum": 612, "nb": 9}, {"sum": 108, "nb": 9}],
[{"sum": 621, "nb": 9}, {"sum": 108, "nb": 9}],
)
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment