Skip to content
Snippets Groups Projects
Commit d3c82797 authored by Kaushik Kulkarni's avatar Kaushik Kulkarni
Browse files

better error message for non-array container ret. value

parent 5224c167
No related branches found
No related tags found
No related merge requests found
...@@ -200,7 +200,8 @@ class LazilyCompilingFunctionCaller: ...@@ -200,7 +200,8 @@ class LazilyCompilingFunctionCaller:
# returned type is a scalar. Not sure if it's worth it though. # returned type is a scalar. Not sure if it's worth it though.
raise NotImplementedError( raise NotImplementedError(
f"Function '{self.f.__name__}' to be compiled " f"Function '{self.f.__name__}' to be compiled "
f"did not return an array container, but '{outputs}' instead.") "did not return an array container, but an instance of "
f"'{outputs.__class__}' instead.")
def _as_dict_of_named_arrays(keys, ary): def _as_dict_of_named_arrays(keys, ary):
name = "_pt_out_" + "_".join(str(key) name = "_pt_out_" + "_".join(str(key)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment