Skip to content
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

Add unit conversion methods to Energy type #18

Conversation

camille-bouvy-frequenz
Copy link
Contributor

Implementation as described in #17

@camille-bouvy-frequenz camille-bouvy-frequenz requested a review from a team as a code owner January 12, 2024 20:03
@github-actions github-actions bot added the part:docs Affects the documentation label Jan 12, 2024
@@ -118,7 +118,7 @@ def to_pb(self) -> price_pb2.Price:

@dataclass(frozen=True)
class Energy:
"""Represents energy unit in Megawatthours (MWh)."""
"""Represents energy unit in watthours (MWh)."""
Copy link
Contributor

Choose a reason for hiding this comment

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

watthours?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oops typo thanks

Signed-off-by: camille-bouvy-frequenz <camille.bouvy@frequenz.com>
Signed-off-by: camille-bouvy-frequenz <camille.bouvy@frequenz.com>
@camille-bouvy-frequenz camille-bouvy-frequenz merged commit e2e84c5 into frequenz-floss:v0.x.x Jan 14, 2024
15 checks passed
@camille-bouvy-frequenz camille-bouvy-frequenz deleted the energy-type branch January 14, 2024 12:24
camille-bouvy-frequenz added a commit to camille-bouvy-frequenz/frequenz-api-electricity-trading that referenced this pull request Jan 16, 2024
…enz/energy-type"

This reverts commit e2e84c5, reversing
changes made to e28559f.
camille-bouvy-frequenz added a commit to camille-bouvy-frequenz/frequenz-api-electricity-trading that referenced this pull request Jan 16, 2024
…enz/energy-type"

This reverts commit e2e84c5, reversing
changes made to e28559f.

Signed-off-by: camille-bouvy-frequenz <camille.bouvy@frequenz.com>
camille-bouvy-frequenz added a commit that referenced this pull request Jan 18, 2024
Revert #18 Add unit conversion methods to Energy type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
part:docs Affects the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants