Skip to content

Conversation

@shsms
Copy link
Contributor

@shsms shsms commented Jan 15, 2024

When SoC is close to 0.0 or 100.0, it will be exactly 0.0 or 100.0.

@shsms shsms requested a review from a team as a code owner January 15, 2024 11:03
@shsms shsms requested a review from llucax January 15, 2024 11:03
@github-actions github-actions bot added the part:data-pipeline Affects the data pipeline label Jan 15, 2024
@shsms shsms added the cmd:skip-release-notes It is not necessary to update release notes for this PR label Jan 15, 2024
llucax
llucax previously approved these changes Jan 15, 2024
Copy link
Contributor

@llucax llucax left a comment

Choose a reason for hiding this comment

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

Just a very minor and optional suggestion.

if timestamp == _MIN_TIMESTAMP:
return Sample(datetime.now(tz=timezone.utc), None)

pct = 0.0
Copy link
Contributor

Choose a reason for hiding this comment

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

I would add a comment about the intention of pct being literally 0.0 and 100.0 on the edges, just in case anyone feels tempted to simplify the code.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@llucax llucax added this to the v1.0.0-rc4 milestone Jan 15, 2024
shsms added 2 commits January 15, 2024 12:18
This helps better leverage the new instruction specialization feature
of Python.

Signed-off-by: Sahas Subramanian <[email protected]>
@shsms shsms added this pull request to the merge queue Jan 15, 2024
Merged via the queue into frequenz-floss:v1.x.x with commit 5f3cd29 Jan 15, 2024
@shsms shsms deleted the full-battery-soc branch January 15, 2024 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cmd:skip-release-notes It is not necessary to update release notes for this PR part:data-pipeline Affects the data pipeline

Projects

Development

Successfully merging this pull request may close these issues.

2 participants