Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

BUG: np.unique fails on Linux Ubuntu-20.04 aarch64, Python 3.9 (numpy 2.0.1) #27273

Copy link
Copy link
Closed
@sveinung-r

Description

@sveinung-r
Issue body actions

Describe the issue:

Passing an array of unique values to np.unique returns an array with non-unique values.

I believe this problem may be related to the previously reported issue #27037, which was resolved in version 2.1.0 of NumPy. However, this fix is available only for Python versions 3.10 or later. Consequently, when installing NumPy for Python version 3.9 from PyPI without specifying a version (e.g., pip install numpy), the installed version is 2.0.1, which still contains the bug.

Reproduce the code example:

import numpy as np
np.unique([1, 2, 3, 4, 5, ...])

Error message:

No response

Python and NumPy Versions:

2.0.1
3.9.19 (main, Aug 2 2024, 17:17:58) [GCC 10.2.1 20210130 (Red Hat 10.2.1-11)]

Runtime Environment:

No response

Context for the issue:

No response

Metadata

Metadata

Assignees

Labels

00 - BugHWYfeatures related to google Highwayfeatures related to google Highwaycomponent: SIMDIssues in SIMD (fast instruction sets) code or machineryIssues in SIMD (fast instruction sets) code or machinery

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.