From 809690819e8459e04b4a71c5fadbd67089c4cac6 Mon Sep 17 00:00:00 2001
From: Amir MOHAMMADI <amir.mohammadi@idiap.ch>
Date: Tue, 14 Jul 2020 11:48:52 +0200
Subject: [PATCH] [livedet-iris-2020] Fix category type in view

---
 advanced/databases/livedet_iris_2020/1.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/advanced/databases/livedet_iris_2020/1.py b/advanced/databases/livedet_iris_2020/1.py
index 43ef630..f846013 100644
--- a/advanced/databases/livedet_iris_2020/1.py
+++ b/advanced/databases/livedet_iris_2020/1.py
@@ -37,4 +37,4 @@ class Test(View):
         elif output == "label":
             return {"value": bool(obj.label)}
         elif output == "category":
-            return {"value": int(obj.category)}
+            return {"value": np.cast["int32"](obj.category)}
-- 
GitLab