Commit 9b07eabd by Samuel GAIST

### [test][prefix] Change loop channel dataformats to improve testing

parent b0d92774
Pipeline #31844 passed with stage
in 15 minutes and 55 seconds
 ... ... @@ -12,10 +12,10 @@ }, "loop": { "request": { "type": "user/single_integer/1" "type": "user/1d_array_of_integers/1" }, "answer": { "type": "user/single_integer/1" "type": "user/single_float/1" } } } ... ...
 ... ... @@ -58,7 +58,7 @@ class Algorithm: return True def validate(self, result): value = result.value value = result.value[0] result = value > self.threshold and value < self.max delta = self.max - value return (result, {"value": np.int32(delta)}) return (result, {"value": np.float32(delta)})
 ... ... @@ -18,10 +18,10 @@ }, "loop": { "request": { "type": "user/single_integer/1" "type": "user/1d_array_of_integers/1" }, "answer": { "type": "user/single_integer/1" "type": "user/single_float/1" } } } ... ...
 ... ... @@ -40,10 +40,10 @@ import numpy as np class Algorithm: def process(self, data_loaders, outputs, loop_channel): cnt = 1 is_valid, delta = loop_channel.validate({"value": np.int32(cnt)}) is_valid, delta = loop_channel.validate({"value": np.full(10, cnt)}) while not is_valid: cnt = cnt + 1 is_valid, delta = loop_channel.validate({"value": np.int32(cnt)}) is_valid, delta = loop_channel.validate({"value": np.full(10, cnt)}) delta = delta.value ... ...
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