File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -178,13 +178,13 @@ def better_int_binning(
178
178
dx = 1
179
179
180
180
# Finally, build a good binning from dx
181
- n_bins = np .ceil ((x_hi - x_lo ) / dx )
181
+ final_n_bins = np .ceil ((x_hi - x_lo ) / dx )
182
182
x_lo = np .floor (x_lo )
183
- x_hi = x_lo + n_bins * dx
183
+ x_hi = x_lo + final_n_bins * dx
184
184
if n_bins is None :
185
185
return int (x_lo ), int (x_hi ), int (dx )
186
186
else :
187
- return int (x_lo ), int (x_hi ), int (n_bins )
187
+ return int (x_lo ), int (x_hi ), int (final_n_bins )
188
188
189
189
190
190
@nb .njit (parallel = False , fastmath = True )
Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ def hpge_find_energy_peaks(
236
236
{
237
237
"input_peaks_kev" : peaks_kev ,
238
238
"found_peaks_kev" : peaks_kev [iytup ],
239
- "found_peaks_locs" : detected_max_locs [iytup ],
239
+ "found_peaks_locs" : detected_max_locs [ixtup ],
240
240
}
241
241
)
242
242
log .info (f"{ len (peaks_kev [iytup ])} peaks found:" )
You can’t perform that action at this time.
0 commit comments