Skip to content

Commit

Permalink
Merge pull request #4 from xdtdaniel/patch-1
Browse files Browse the repository at this point in the history
Update a for loop in data utils
  • Loading branch information
CjangCjengh authored Jul 4, 2023
2 parents 4952f60 + 14155e9 commit 92c659f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def _create_buckets(self):
if idx_bucket != -1:
buckets[idx_bucket].append(i)

for i in range(len(buckets) - 1, 0, -1):
for i in range(len(buckets) - 1, -1, -1):
if len(buckets[i]) == 0:
buckets.pop(i)
self.boundaries.pop(i+1)
Expand Down

0 comments on commit 92c659f

Please sign in to comment.