Skip to content

Commit

Permalink
improving ignores
Browse files Browse the repository at this point in the history
  • Loading branch information
ohrechykha committed Sep 10, 2024
1 parent 48893b8 commit 943d717
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ragged/_spec_set_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ def unique_counts(x: array, /) -> tuple[array, array]:
values=ragged.array([]), counts=ragged.array([])
)
values, counts = np.unique(
x_flat.layout.data,
x_flat.layout.data, # pylint: disable=E1101
return_counts=True,
equal_nan=False, # pylint: disable=E1101
equal_nan=False,
)
return unique_counts_result(
values=ragged.array(values), counts=ragged.array(counts)
Expand Down Expand Up @@ -177,9 +177,9 @@ def unique_inverse(x: array, /) -> tuple[array, array]:
values=ragged.array([]), inverse_indices=ragged.array([])
)
values, inverse_indices = np.unique(
x_flat.layout.data,
x_flat.layout.data, # pylint: disable=E1101
return_inverse=True,
equal_nan=False, # pylint: disable=E1101
equal_nan=False,
)

return unique_inverse_result(
Expand Down

0 comments on commit 943d717

Please sign in to comment.