From dbebff7601169fc91935a22d49783adb4785bfd5 Mon Sep 17 00:00:00 2001 From: Manos Katsomallos Date: Tue, 5 Oct 2021 23:39:44 +0200 Subject: [PATCH] expt_lmdk_sel: Minor correction --- code/expt/expt_lmdk_sel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/expt/expt_lmdk_sel.py b/code/expt/expt_lmdk_sel.py index 76a17b5..1babad3 100644 --- a/code/expt/expt_lmdk_sel.py +++ b/code/expt/expt_lmdk_sel.py @@ -63,7 +63,7 @@ def main(args): # Get an option for this part if len(opts) > 1: res_pt, _ = exp_mech.exponential(hist_pt, opts, exp_mech.score, 1.0, e) - elif len(opts) > 0: + elif len(opts) == 1: res_pt = opts[0] # Merge options of all parts res[pt_i] = np.sum(res_pt)