From e6476b4e89b738f75bc1ad6e2a8cd8382443aae1 Mon Sep 17 00:00:00 2001 From: Artur Lobanov Date: Mon, 14 Oct 2024 13:24:03 +0200 Subject: [PATCH] use np for sum --- menu_tools/object_performance/plotter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/menu_tools/object_performance/plotter.py b/menu_tools/object_performance/plotter.py index f20663e5..54ec835d 100755 --- a/menu_tools/object_performance/plotter.py +++ b/menu_tools/object_performance/plotter.py @@ -129,7 +129,7 @@ def _get_iso_vs_eff_hist(self, test_hist): Cumulative ratio of efficiency vs L1 Iso histogram. """ - l1_isolation_histogram = sum(test_hist) + l1_isolation_histogram = np.test_hist) l1_cumulative_sum = np.cumsum(test_hist) / l1_isolation_histogram return l1_cumulative_sum