Skip to content
Snippets Groups Projects
Commit 80969081 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

[livedet-iris-2020] Fix category type in view

parent 40d8fc18
No related branches found
No related tags found
1 merge request!25[livdet-iris-2020] Fix category type in view
...@@ -37,4 +37,4 @@ class Test(View): ...@@ -37,4 +37,4 @@ class Test(View):
elif output == "label": elif output == "label":
return {"value": bool(obj.label)} return {"value": bool(obj.label)}
elif output == "category": elif output == "category":
return {"value": int(obj.category)} return {"value": np.cast["int32"](obj.category)}
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