-
Couldn't load subscription status.
- Fork 20
Use frequenz-quantities library #1087
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
Use frequenz-quantities library #1087
Conversation
26edb5c to
015be45
Compare
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.
Really nice to see this happening!
RELEASE_NOTES.md
Outdated
| ## Upgrading | ||
|
|
||
| <!-- Here goes notes on how to upgrade from previous versions, including deprecations and what they should be replaced with --> | ||
| - Replace `frequenz.sdk.timeseries._quantities` module with the external `frequenz.quantities` package. |
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.
I would not use internal module names as this is intended for end-users, and also give a link to the new library.
| - Replace `frequenz.sdk.timeseries._quantities` module with the external `frequenz.quantities` package. | |
| - Replace `Quantity` and its sub-classes (`Power`, `Current`, etc.) in the `frequenz.sdk.timeseries` module with the external [`frequenz-quantities`](https://pypi.org/project/frequenz-quantities/) package. Please add the new library as a dependency and adapt your imports if you are using these types. |
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.
Fixed
| from frequenz.quantities import ( | ||
| Current, | ||
| Energy, | ||
| Frequency, |
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.
Oh, I see you are re-exporting here. I wouldn't do this, I would just go ahead and remove these from here completely (including __all__ of course).
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.
Done
Signed-off-by: Elzbieta Kotulska <[email protected]>
0e72bcc to
5381c39
Compare
Signed-off-by: Elzbieta Kotulska <[email protected]>
Signed-off-by: Elzbieta Kotulska <[email protected]>
Signed-off-by: Elzbieta Kotulska <[email protected]>
Signed-off-by: Elzbieta Kotulska <[email protected]>
5381c39 to
1adeca5
Compare
Signed-off-by: Elzbieta Kotulska <[email protected]>
1adeca5 to
7ada5cf
Compare
Remove current quantities definition