Commit 26fba338 authored by Samuel GAIST's avatar Samuel GAIST

[test][prefix][algorithm] Update loop evaluator write method signature

Following beat.backend.python!61 the method has
now a third argument containing the output currently
written to on the processor side.
parent 81f9af62
Pipeline #33866 passed with stage
in 35 minutes
......@@ -46,5 +46,5 @@ class Algorithm:
self.output = value
return (True, {"value": np.float32(value)})
def write(self, outputs, end_data_index):
def write(self, outputs, processor_output_name, end_data_index):
outputs["out_loop"].write({"value": np.int32(self.output)}, end_data_index)
......@@ -68,5 +68,5 @@ class Algorithm:
self.output = delta
return (result, {"value": np.float32(delta)})
def write(self, outputs, end_data_index):
def write(self, outputs, processor_output_name, end_data_index):
outputs["out_loop"].write({"value": np.int32(self.output)}, end_data_index)
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