Skip to content

ENH: Allow numpy>=2.0#7229

Merged
mdcutone merged 2 commits intopsychopy:devfrom
aforren1:numpy2
May 7, 2025
Merged

ENH: Allow numpy>=2.0#7229
mdcutone merged 2 commits intopsychopy:devfrom
aforren1:numpy2

Conversation

@aforren1
Copy link
Copy Markdown
Contributor

@aforren1 aforren1 commented May 2, 2025

I think it was only PTB that was holding it back? Eric Larson fixed it on the PTB side in kleinerm/Psychtoolbox-3#276, and wheels with numpy 2 support were generated for 3.0.19.14 (https://github.com/aforren1/ptb-wheels/releases/tag/3.0.19.14).

I think it was only PTB that was holding it back? Brad Larson fixed it
on the PTB side in kleinerm/Psychtoolbox-3#276,
and wheels with numpy 2 support were generated for 3.0.19.14
(https://github.com/aforren1/ptb-wheels/releases/tag/3.0.19.14).
@codecov
Copy link
Copy Markdown

codecov bot commented May 2, 2025

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 12.28%. Comparing base (9433466) to head (b735b6e).
Report is 32 commits behind head on dev.

Additional details and impacted files
@@           Coverage Diff           @@
##              dev    #7229   +/-   ##
=======================================
  Coverage   12.28%   12.28%           
=======================================
  Files         346      346           
  Lines       64066    64066           
=======================================
  Hits         7870     7870           
  Misses      56196    56196           
Components Coverage Δ
app ∅ <ø> (∅)
boilerplate ∅ <ø> (∅)
library ∅ <ø> (∅)
vm-safe library ∅ <ø> (∅)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

 - `np.string_` was just an alias for `np.bytes_`
 - Getting a true/false value out of an empty array has been deprecated for awhile,
   and was removed in 2.0. AFAICT, checking if the value is a string should produce
   the same behavior?
@peircej peircej requested a review from TEParsons May 4, 2025 08:21
@TEParsons TEParsons changed the title Allow numpy>=2.0 ENH: Allow numpy>=2.0 May 7, 2025
@mdcutone mdcutone merged commit ea027a5 into psychopy:dev May 7, 2025
7 checks passed
mdcutone pushed a commit to mdcutone/psychopy that referenced this pull request May 7, 2025
* PKG: Allow numpy>=2.0

I think it was only PTB that was holding it back? Brad Larson fixed it
on the PTB side in kleinerm/Psychtoolbox-3#276,
and wheels with numpy 2 support were generated for 3.0.19.14
(https://github.com/aforren1/ptb-wheels/releases/tag/3.0.19.14).

* BF: Update some numpy usage to be compatible with v2.

 - `np.string_` was just an alias for `np.bytes_`
 - Getting a true/false value out of an empty array has been deprecated for awhile,
   and was removed in 2.0. AFAICT, checking if the value is a string should produce
   the same behavior?
peircej added a commit that referenced this pull request May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants