Skip to content

Fixes to support numpy>=2.4#189

Merged
rohanbabbar04 merged 1 commit intoPyLops:mainfrom
rohanbabbar04:numpy2.4-fix
Mar 8, 2026
Merged

Fixes to support numpy>=2.4#189
rohanbabbar04 merged 1 commit intoPyLops:mainfrom
rohanbabbar04:numpy2.4-fix

Conversation

@rohanbabbar04
Copy link
Collaborator

@rohanbabbar04 rohanbabbar04 commented Mar 7, 2026

  • Use .item() for singular element.
  • Replace np.sum with sum when defining shapes of the stacked operators.
  • Remove numpy<=2.3.5 version pinning.

@rohanbabbar04
Copy link
Collaborator Author

rohanbabbar04 commented Mar 7, 2026

I got some time to look at this. Not any major changes, just handling of a single element is where it was breaking.

Copy link
Contributor

@mrava87 mrava87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, eveyrhting makes sense to me 😄

@tharittk agree?

@tharittk
Copy link
Collaborator

tharittk commented Mar 8, 2026

This is great. Thank you @rohanbabbar04 !

@rohanbabbar04 rohanbabbar04 merged commit a0eed42 into PyLops:main Mar 8, 2026
50 checks passed
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.

3 participants