Commit 464242e8 authored by André Anjos's avatar André Anjos 💬

Merge branch 'update_loop_test_algorithms' into 'master'

Update test loop evaluator write method signature

See merge request !98
parents 81f9af62 26fba338
Pipeline #33883 passed with stages
in 66 minutes and 42 seconds
...@@ -46,5 +46,5 @@ class Algorithm: ...@@ -46,5 +46,5 @@ class Algorithm:
self.output = value self.output = value
return (True, {"value": np.float32(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) outputs["out_loop"].write({"value": np.int32(self.output)}, end_data_index)
...@@ -68,5 +68,5 @@ class Algorithm: ...@@ -68,5 +68,5 @@ class Algorithm:
self.output = delta self.output = delta
return (result, {"value": np.float32(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) 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