Remove numpy/scipy monkey-patches, bump pygam>=0.9#1289
Merged
Marius1311 merged 1 commit intomainfrom Feb 20, 2026
Merged
Conversation
94fee97 to
01dd08a
Compare
The monkey-patches in __init__.py were workarounds for pygam < 0.9: - sp.spmatrix.A: pygam used .A (deprecated scipy alias for .toarray()) - np.int = int: pygam used np.int (removed in numpy 2.0) Both are fixed in pygam >= 0.9. Remove the patches and bump the lower bound from 0.8 to 0.9.
01dd08a to
35d381a
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1289 +/- ##
=======================================
Coverage 79.44% 79.44%
=======================================
Files 51 51
Lines 8639 8639
Branches 1493 1493
=======================================
Hits 6863 6863
Misses 1196 1196
Partials 580 580 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The monkey-patches in init.py were workarounds for pygam < 0.9:
Both are fixed in pygam >= 0.9. Remove the patches and bump the lower bound from 0.8 to 0.9.
IMPORTANT: Please search among the Pull requests before creating one.
Description
How has this been tested?
Closes