Skip to content

Fix TypeError on new numpy versions#30

Open
acarom wants to merge 1 commit intofranciscovillaescusa:masterfrom
acarom:patch-3
Open

Fix TypeError on new numpy versions#30
acarom wants to merge 1 commit intofranciscovillaescusa:masterfrom
acarom:patch-3

Conversation

@acarom
Copy link
Contributor

@acarom acarom commented Feb 21, 2026

  • Fix compatibility with new numpy versions

- Fix compatibility with new numpy versions
@franciscovillaescusa
Copy link
Owner

shouldnt this be changed everywhere in the library, and not just for this particular case?

@acarom
Copy link
Contributor Author

acarom commented Feb 23, 2026

Hello, Paco.

Yeah, i guess this should be changed everywhere in the library (if it is similarly defined). I sent you an email that i just tested the library by using the test code in the /void folder and an example code of the Quijote website.

Also, i didn't change the version of the package in the setup.py, but since there are major changes (that i didn't test for versions older than Python 3.11) i recommend changing it. Just if you want to update the PyPI library.

PD: Maybe in a few days i cloud take a deeper look in the code for this numpy change.

@acarom
Copy link
Contributor Author

acarom commented Feb 24, 2026

@franciscovillaescusa Ok i have been looking through various files, and it seems that the problem occurs just in this one.
So the error was this one when using this file TypeError: only 0-dimensional arrays can be converted to Python scalars now this is because in the 2.4.0 numpy release when attempting to convert a ndim > 0 array to a scalar, raises a TypeError.
Related: comversations 1 , 2

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