Commit 321f2c76 authored by Samuel GAIST's avatar Samuel GAIST

[test][prefix] Print cleanup in test algorithms

parent f23350ec
Pipeline #33605 passed with stage
in 23 minutes and 34 seconds
......@@ -42,12 +42,9 @@ class Algorithm:
self.output = None
def validate(self, result):
print("We are validating")
value = result.value[0]
self.output = value
return (True, {"value": np.float32(value)})
def write(self, outputs, end_data_index):
print("block input loop writing", outputs, end_data_index)
outputs["out_loop"].write({"value": np.int32(self.output)}, end_data_index)
print("block input loop writing done")
......@@ -47,8 +47,5 @@ class Algorithm:
value = data["in"].value
_, validated = loop_channel.validate({"value": np.full(10, 12)})
new_value = value + validated.value
print("BLOCK INPUT LOOP USER VALUE IS", value)
print("BLOCK INPUT LOOP USER WRITING NEW VALUE", new_value)
outputs["out"].write({"value": np.int32(new_value)}, end)
print("BLOCK INPUT LOOP USER WRITING DONE")
return True
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