Skip to content

Commit 2474466

Browse files
committed
Fixed sum_histogram method
1 parent b9a7815 commit 2474466

File tree

1 file changed

+1
-1
lines changed
  • libra_toolbox/neutron_detection/activation_foils

1 file changed

+1
-1
lines changed

libra_toolbox/neutron_detection/activation_foils/compass.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,7 @@ def get_multipeak_area(
991991
gross_area = np.sum(
992992
(
993993
hist[peak_start:peak_end]
994-
* np.diff(bins[peak_start:peak_end])
994+
* np.diff(bins[peak_start:peak_end+1])
995995
))
996996
# Cut off trapezoidal area due to compton scattering and noise
997997
trap_cutoff_area = np.trapezoid(

0 commit comments

Comments
 (0)