Skip to content

Fix #2207: TypeError: only 0-dimensional arrays can be converted to Python scalars#2237

Open
coder3112 wants to merge 1 commit intomikel-brostrom:masterfrom
coder3112:bugfix2207/zero_d_array_conversion_numpy
Open

Fix #2207: TypeError: only 0-dimensional arrays can be converted to Python scalars#2237
coder3112 wants to merge 1 commit intomikel-brostrom:masterfrom
coder3112:bugfix2207/zero_d_array_conversion_numpy

Conversation

@coder3112
Copy link

I just added .squeeze() where the error was occurring, since newer numpy wants more clarity while working with dimensions. It works now.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 1, 2026

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@github-actions github-actions bot added the Stale label Mar 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant