From 28ecac49417a4e89d68b9b51dd83fc74b5913760 Mon Sep 17 00:00:00 2001 From: Manuel Gunther <siebenkopf@googlemail.com> Date: Wed, 6 Apr 2016 15:56:03 -0600 Subject: [PATCH] Fixed Py3 issue with fusion script --- bob/bio/base/script/fuse_scores.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bob/bio/base/script/fuse_scores.py b/bob/bio/base/script/fuse_scores.py index 1d989bf4..f8b94d0a 100755 --- a/bob/bio/base/script/fuse_scores.py +++ b/bob/bio/base/script/fuse_scores.py @@ -102,7 +102,7 @@ def main(command_line_options = None): test_label = line[-2] scores= [ line[-1] ] for n in range(1, n_systems): - scores.append(gen_data_dev[n].next()[-1]) + scores.append(next(gen_data_dev[n])[-1]) scores = numpy.array([scores], dtype=numpy.float64) s_fused = machine.forward(scores)[0,0] line = claimed_id + " " + real_id + " " + test_label + " " + str(s_fused) + "\n" @@ -123,7 +123,7 @@ def main(command_line_options = None): test_label = line[-2] scores= [ line[-1] ] for n in range(1, n_systems): - scores.append(gen_data_eval[n].next()[-1]) + scores.append(next(gen_data_eval[n])[-1]) scores = numpy.array([scores], dtype=numpy.float64) s_fused = machine.forward(scores)[0,0] line = claimed_id + " " + real_id + " " + test_label + " " + str(s_fused) + "\n" -- GitLab