Skip to content

Commit

Permalink
fix index error
Browse files Browse the repository at this point in the history
  • Loading branch information
ggmarshall committed Mar 26, 2024
1 parent 8e35236 commit 7c0de64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pygama/pargen/energy_cal.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ def hpge_find_energy_peaks(

# bin the histogram in ~1 kev bins for the initial rough peak search
if erange is None:
euc_min = np.nanmin(peaks_adc)[0] * 0.6
euc_max = np.nanmax(peaks_adc)[0] * 1.1
euc_min = np.nanmin(peaks_adc) * 0.6
euc_max = np.nanmax(peaks_adc) * 1.1

else:
euc_min, euc_max = erange
Expand Down

0 comments on commit 7c0de64

Please sign in to comment.