Skip to content

Commit 20491ab

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent d56120a commit 20491ab

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

xarray/groupers.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,8 +497,7 @@ def factorize(self, group: T_Group) -> EncodedGroups:
497497
full_index, first_items, codes_ = self._get_index_and_items()
498498
sbins = first_items.values.astype(np.int64)
499499
group_indices: GroupIndices = tuple(
500-
[slice(i, j) for i, j in pairwise(sbins)]
501-
+ [slice(sbins[-1], None)]
500+
[slice(i, j) for i, j in pairwise(sbins)] + [slice(sbins[-1], None)]
502501
)
503502

504503
unique_coord = Variable(

0 commit comments

Comments
 (0)