You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Above appears to index i twice on the last bin, thus overshooting. I am submitting the issue and then immediately fixing with a PR request as I just tested if removing the extra indexing on the last bin fixes the issue totally, and had success.
The text was updated successfully, but these errors were encountered:
detanalysis/detanalysis/semiautocuts.py
Lines 1016 to 1019 in 0be0395
There appears to be an indexing error on the last bin for amplitude cuts.
Diagnosis:
Adding the following print statements before lines
detanalysis/detanalysis/semiautocuts.py
Line 621 in 0be0395
->
print(f'on_cut_bin', on_cut_bin)
->
print(f'values_upper size: ', len(self.values_upper))
Input code:
Results:
Results above indicate over indexing on the last bin only. Simple fix is to remove the extraneous +=1 on
detanalysis/detanalysis/semiautocuts.py
Lines 1016 to 1019 in 0be0395
Above appears to index i twice on the last bin, thus overshooting. I am submitting the issue and then immediately fixing with a PR request as I just tested if removing the extra indexing on the last bin fixes the issue totally, and had success.
The text was updated successfully, but these errors were encountered: