Skip to content

Commit

Permalink
use sum instead of np.sum on list
Browse files Browse the repository at this point in the history
  • Loading branch information
peterstangl committed Jan 5, 2024
1 parent 17af1e0 commit 38af709
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flavio/plots/plotfunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 38af709

Please sign in to comment.