From 38af70922f650c7e5ffe4e9f9dbfa002766479aa Mon Sep 17 00:00:00 2001 From: Peter Stangl Date: Fri, 5 Jan 2024 17:07:32 +0100 Subject: [PATCH] use sum instead of np.sum on list --- flavio/plots/plotfunctions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flavio/plots/plotfunctions.py b/flavio/plots/plotfunctions.py index a4d8fbab..3c85e20f 100644 --- a/flavio/plots/plotfunctions.py +++ b/flavio/plots/plotfunctions.py @@ -54,7 +54,7 @@ def error_budget_pie(err_dict, other_cutoff=0.03): small_frac.append(frac) if small_frac: labels.append('other') - fracs.append(np.sum(small_frac)) + fracs.append(sum(small_frac)) def my_autopct(pct): # use individual errors as labels return r'{p:.2g}\%'.format(p=np.sqrt(100*pct*var_tot))