Skip to content

Conversation

@cwasicki
Copy link
Collaborator

@cwasicki cwasicki commented Feb 10, 2025

Update of the numpy dependency to v2.x and required migration changes.

@github-actions github-actions bot added part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) part:data-pipeline Affects the data pipeline labels Feb 10, 2025
@shsms
Copy link
Contributor

shsms commented Feb 10, 2025

This would make it easier to support python 3.13, etc.

@cwasicki
Copy link
Collaborator Author

Do we want this to be in for v1.0?

@shsms
Copy link
Contributor

shsms commented Mar 27, 2025

That would be very nice, then we can have python 3.13 support for 1.0

@cwasicki cwasicki marked this pull request as ready for review May 6, 2025 12:36
@Copilot Copilot AI review requested due to automatic review settings May 6, 2025 12:36
@cwasicki cwasicki requested a review from a team as a code owner May 6, 2025 12:36
@cwasicki cwasicki requested review from ela-kotulska-frequenz and removed request for a team May 6, 2025 12:36
Copy link

Copilot AI left a 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

@github-actions github-actions bot added the part:docs Affects the documentation label May 6, 2025
@github-project-automation github-project-automation bot moved this from To do to Review approved in Python SDK Roadmap May 6, 2025
@llucax llucax added this to the v1.0.0-rc1900 milestone May 6, 2025
@llucax llucax linked an issue May 6, 2025 that may be closed by this pull request
@llucax llucax removed this from the v1.0.0-rc1900 milestone May 6, 2025
@cwasicki cwasicki added this pull request to the merge queue May 6, 2025
Merged via the queue into frequenz-floss:v1.x.x with commit 656386f May 6, 2025
5 checks passed
@cwasicki cwasicki deleted the np2 branch May 6, 2025 13:03
@github-project-automation github-project-automation bot moved this from Review approved to Done in Python SDK Roadmap May 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

part:data-pipeline Affects the data pipeline part:docs Affects the documentation part:tooling Affects the development tooling (CI, deployment, dependency management, etc.)

Projects

Development

Successfully merging this pull request may close these issues.

Update to numpy 2

3 participants