Skip to content

Comments

Extend support for Numpy 2.0#514

Merged
santisoler merged 3 commits intomainfrom
numpy2
Jun 18, 2024
Merged

Extend support for Numpy 2.0#514
santisoler merged 3 commits intomainfrom
numpy2

Conversation

@santisoler
Copy link
Member

@santisoler santisoler commented Jun 18, 2024

Convert Numpy scalars to Python numbers so the outputs of examples that are being compared when running doctests support Numpy>=2.0. Cast points in equivalent source classes to the desired dtype passed as argument.

Solve issue raised by tests running with Numpy 2.0, where the equivalent
sources' `points` coordinates didn't have the desired `dtype` passed as
argument.
Convert Numpy scalars to Python numbers so the outputs of examples that
are being compared when running doctests support Numpy>=2.0.
@santisoler santisoler marked this pull request as ready for review June 18, 2024 19:12
@santisoler santisoler merged commit f6d52b9 into main Jun 18, 2024
@santisoler santisoler deleted the numpy2 branch June 18, 2024 19:17
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.

1 participant