Skip to content

Commit

Permalink
use np for sum
Browse files Browse the repository at this point in the history
  • Loading branch information
artlbv authored Oct 14, 2024
1 parent 36b3d54 commit e6476b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion menu_tools/object_performance/plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e6476b4

Please sign in to comment.