-
Couldn't load subscription status.
- Fork 20
Update numpy dependency to v2 #1160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
This would make it easier to support python 3.13, etc. |
|
Do we want this to be in for v1.0? |
|
That would be very nice, then we can have python 3.13 support for 1.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates the numpy dependency for the project to support numpy v2 by replacing the deprecated np.float_ type hints with explicit np.float64 annotations.
- Updated type annotations for numpy arrays in both core and benchmark modules
- Modified the pyproject.toml dependency specification for numpy
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/frequenz/sdk/timeseries/_periodic_feature_extractor.py | Updated numpy array type annotations from np.float_ to np.float64 |
| pyproject.toml | Updated numpy dependency to support version 2 |
| benchmarks/timeseries/periodic_feature_extractor.py | Updated numpy array type annotations from np.float_ to np.float64 |
Signed-off-by: cwasicki <[email protected]>
Signed-off-by: cwasicki <[email protected]>
Update of the numpy dependency to v2.x and required migration changes.