Skip to content

Conversation

FlynnOConnell
Copy link
Collaborator

@FlynnOConnell FlynnOConnell commented Apr 25, 2025

Some of my datasets are overflowing during histogram calculation.

raw_scan.shape
Out[1]: (5632, 14, 448, 448)
np.prod(raw_scan.shape)
Out[2]: -1354760192
np.prod(raw_scan.shape, dtype=np.int64)
Out[3]: 15825108992

Also, ignore_dims won't work due to tuple item assignment. Changed that to a list

Copy link

github-actions bot commented Apr 25, 2025

📚 Docs preview built and uploaded! https://www.fastplotlib.org/ver/fix-int-overflow

@kushalkolar kushalkolar merged commit 0e1a308 into main May 20, 2025
51 of 52 checks passed
@kushalkolar kushalkolar deleted the fix-int-overflow branch May 21, 2025 08:39
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