From 49e1242d87a107b5c9cd6ded2a8847d43652151b Mon Sep 17 00:00:00 2001 From: Andre Anjos <andre.anjos@idiap.ch> Date: Sun, 26 Apr 2020 10:17:49 +0200 Subject: [PATCH] [utils.resources] Fix gpu reporting --- bob/ip/binseg/utils/resources.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bob/ip/binseg/utils/resources.py b/bob/ip/binseg/utils/resources.py index 2d230322..8a3c3612 100644 --- a/bob/ip/binseg/utils/resources.py +++ b/bob/ip/binseg/utils/resources.py @@ -62,7 +62,7 @@ def gpu_info(query=_nvidia_query): ) values = [k.strip() for k in values.split(",")] regexp = re.compile(r"(\.|_)") - fieldnames = [k.sub("-", k) for k in query] + fieldnames = [regexp.sub("-", k) for k in query] return tuple(zip(fieldnames, values)) -- GitLab