From f95d568a78e8db0f20a823e553567bbbbe831f7e Mon Sep 17 00:00:00 2001
From: Manuel Guenther <manuel.guenther@idiap.ch>
Date: Thu, 18 Jun 2015 20:10:59 +0200
Subject: [PATCH] Fixed warning in evaluation in dry-run mode

---
 bob/bio/face/script/baselines.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/bob/bio/face/script/baselines.py b/bob/bio/face/script/baselines.py
index 3a887231..0cc241b1 100755
--- a/bob/bio/face/script/baselines.py
+++ b/bob/bio/face/script/baselines.py
@@ -240,7 +240,6 @@ def main(command_line_parameters = None):
       # print the command so that it can easily be re-issued
       logger.info("Executing command:\n%s", bob.bio.base.tools.command_line(command))
 
-#      import ipdb; ipdb.set_trace()
       # run the command
       if not args.dry_run:
         subprocess.call(command)
@@ -305,7 +304,7 @@ def main(command_line_parameters = None):
             result_zt_eval.append(os.path.join(ztnorm_sub_dir, 'scores-eval'))
 
     # check if we have found some results
-    if not result_dev:
+    if not result_dev and not args.dry_run:
       logger.warn("No result files were detected -- skipping evaluation.")
       return
 
-- 
GitLab