Skip to content

Commit

Permalink
better fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nschloe committed Jun 21, 2024
1 parent 7f756db commit 4799289
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "npx"
version = "0.1.3"
version = "0.1.4"
authors = [{name = "Nico Schlömer", email = "nico.schloemer@gmail.com"}]
description = "Some useful extensions for NumPy"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion src/npx/_unique.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def unique_rows(a: ArrayLike, **kwargs) -> np.ndarray | tuple[np.ndarray, ...]:
if isinstance(out, tuple):
out = (out[0].view(a.dtype).reshape(out[0].shape[0], *a_shape[1:]), *out[1:])
if len(out) > 1:
out = (out[0], out[1].T, *out[2:])
out = (out[0], out[1].flatten(), *out[2:])
else:
out = out.view(a.dtype).reshape(out.shape[0], *a_shape[1:])

Expand Down

0 comments on commit 4799289

Please sign in to comment.