Skip to content

BUG: fix importing numpy in Python's optimized mode (#27868) - #27874

Merged
charris merged 1 commit into
numpy:maintenance/2.2.xfrom
charris:backport-27868
Nov 28, 2024
Merged

charris merged 1 commit into
numpy:maintenance/2.2.xfrom
charris:backport-27868

Conversation

@charris

@charris charris commented Nov 28, 2024

Copy link
Copy Markdown
Member

Backport of #27868.

  • TST: add PYTHONOPTIMIZE=2 to full CI (linux)

  • BUG: fix importing numpy in Python's optimized mode

  • TST: fix a test for compatibility with PYTHONOPTIMIZE

* TST: add PYTHONOPTIMIZE=2 to full CI (linux)

* BUG: fix importing numpy in Python's optimized mode

* TST: fix a test for compatibility with PYTHONOPTIMIZE
@charris charris added 00 - Bug 08 - Backport Used to tag backport PRs labels Nov 28, 2024
@charris charris added this to the 2.2.0 release milestone Nov 28, 2024
@charris

charris commented Nov 28, 2024

Copy link
Copy Markdown
Member Author

The error looks unrelated.

>       assert_almost_equal(matmul(swapaxes(q, -1, -2).conj(), q), stack_I_mat)
E       RuntimeWarning: invalid value encountered in matmul

The same error was reported on merge of #27868 to main. Perhaps something has changed in CI.

@charris
charris merged commit 3a09b9c into numpy:maintenance/2.2.x Nov 28, 2024
@charris
charris deleted the backport-27868 branch November 28, 2024 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

00 - Bug 08 - Backport Used to tag backport PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants