From 38a7532e5afa29b8dccd587f829d5d585e09a2d1 Mon Sep 17 00:00:00 2001
From: Andre Anjos <andre.anjos@idiap.ch>
Date: Mon, 9 Jan 2017 14:20:57 +0100
Subject: [PATCH] Use strings for enum values

---
 bob/db/3dfv/create.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/bob/db/3dfv/create.py b/bob/db/3dfv/create.py
index 72b0cb0..6cec2de 100644
--- a/bob/db/3dfv/create.py
+++ b/bob/db/3dfv/create.py
@@ -54,10 +54,10 @@ def try_get_metadata(path):
       'occ': m.group('occ'),
       'side': m.group('side'),
       'finger': m.group('finger'),
-      'session': int(m.group('session')),
-      'attempt': int(m.group('attempt')),
-      'snap': int(m.group('snap')),
-      'cam': int(m.group('cam')),
+      'session': str(int(m.group('session'))),
+      'attempt': str(int(m.group('attempt'))),
+      'snap': str(int(m.group('snap'))),
+      'cam': str(int(m.group('cam'))),
       }
 
 
-- 
GitLab