Skip to content

Fix dispatch tests when using numpy 2 - #7506

Merged
Schefflera-Arboricola merged 1 commit into
networkx:mainfrom
eriknw:fix_7505
Jun 19, 2024
Merged

Schefflera-Arboricola merged 1 commit into
networkx:mainfrom
eriknw:fix_7505

Conversation

@eriknw

@eriknw eriknw commented Jun 18, 2024

Copy link
Copy Markdown
Contributor

Fixes #7505 (hopefully 🤞).

Thanks @Schefflera-Arboricola for raising this issue! I just took a guess at a solution.

@eriknw eriknw added type: Bug fix Dispatching Related to dispatching and backend support labels Jun 18, 2024
@eriknw

eriknw commented Jun 18, 2024

Copy link
Copy Markdown
Contributor Author

This fixed the failing dispatch tests 🎉. The docs are still failing b/c the version of momepy that was installed still uses np.NINF.

@rossbar rossbar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @eriknw & @Schefflera-Arboricola !

And thanks for chasing down the momepy issue as well - nothing to be done about that here!

@Schefflera-Arboricola Schefflera-Arboricola left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

might be due to this numpy/numpy#26260 that we now have to use deepcopy instead of copy.

@Schefflera-Arboricola
Schefflera-Arboricola merged commit 6f951b7 into networkx:main Jun 19, 2024
@jarrodmillman jarrodmillman added this to the 3.4 milestone Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Dispatching Related to dispatching and backend support type: Bug fix

Development

Successfully merging this pull request may close these issues.

Dispatch Test Failing Due to Graph adj Comparison for some algorithms in expanders.py

4 participants