From f2dfb051697142d27e8d280d13ed249fd85cb85b Mon Sep 17 00:00:00 2001
From: Tiago Freitas Pereira <tiagofrepereira@gmail.com>
Date: Wed, 26 Feb 2020 16:52:07 +0100
Subject: [PATCH] Fixed issue with the number of workers

---
 bob/bio/base/script/vanilla_biometrics.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bob/bio/base/script/vanilla_biometrics.py b/bob/bio/base/script/vanilla_biometrics.py
index aa23fd2e..efe5e88b 100644
--- a/bob/bio/base/script/vanilla_biometrics.py
+++ b/bob/bio/base/script/vanilla_biometrics.py
@@ -214,7 +214,7 @@ def vanilla_biometrics(
         with open(os.path.join(output,f"scores-{g}"), "w") as f:
 
             # Spliting the references in small chunks
-            n_workers = 3
+            n_workers = len(dask_client.cluster.workers)
             biometric_references = database.references(group=g)
             offset = 0
             step = len(biometric_references)//n_workers
-- 
GitLab