From 54886307daed58eee704c88f972cb3b578366b95 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Thu, 27 Jun 2024 08:47:04 +0200 Subject: fix UnboundLocalError. Yay for Python variable scoping. --- lib/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/cli.py b/lib/cli.py index 0daecb6..d2c9840 100644 --- a/lib/cli.py +++ b/lib/cli.py @@ -429,7 +429,7 @@ def export_json_unparam(model, filename): def boxplot_param(args, model): - import dfatool.plotter + import dfatool.plotter as dp title = None param_is_filtered = dict() @@ -460,7 +460,7 @@ def boxplot_param(args, model): ) ) for attribute in attr_names: - dfatool.plotter.boxplot( + dp.boxplot( param_desc, list(map(lambda k: by_param[(name, k)][attribute], param_keys)), output=f"{args.boxplot_param}{name}-{attribute}.pdf", -- cgit v1.2.3