From 537f20b94bcf5c88edd7bdf3fa91b87c05ee6857 Mon Sep 17 00:00:00 2001 From: Manuel Gunther <siebenkopf@googlemail.com> Date: Tue, 7 Jun 2016 12:56:54 -0600 Subject: [PATCH] Fixed #22 with the proposed correction --- bob/bio/base/tools/scoring.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bob/bio/base/tools/scoring.py b/bob/bio/base/tools/scoring.py index e00b142e..3700a58d 100644 --- a/bob/bio/base/tools/scoring.py +++ b/bob/bio/base/tools/scoring.py @@ -19,7 +19,7 @@ def _scores(algorithm, model, probes, allow_missing_files): # the file selector object fs = FileSelector.instance() # the scores to be computed; initialized with NaN - scores = numpy.full((1,len(probes)), numpy.nan, numpy.float64) + scores = numpy.ones((1,len(probes)), numpy.float64) * numpy.nan if allow_missing_files and model is None: # if we have no model, all scores are undefined -- GitLab