Skip to content

Conversation

@cwasicki
Copy link
Contributor

If the samples in the protobuf of the aggregated response has the value not set (e.g. when the service sends None values), the generated python code falls back to zeroes when the field is accessed. This case needs to be handled explicitly by the client, which now sets these values to NaN.

Signed-off-by: cwasicki <126617870+cwasicki@users.noreply.github.com>
If the samples in the protobuf of the aggregated response has the value
not set (e.g. when the service sends None values), the generated python
code falls back to zeroes when the field is accessed. This case needs to
be handled explicitly by the client, which now sets these values to NaN.

Signed-off-by: cwasicki <126617870+cwasicki@users.noreply.github.com>
Signed-off-by: cwasicki <126617870+cwasicki@users.noreply.github.com>
Copilot AI review requested due to automatic review settings December 17, 2025 17:54
@github-actions github-actions bot added the part:docs Affects the documentation label Dec 17, 2025
@cwasicki cwasicki changed the title Fix aggregated values for None samples Fix aggregated values for missing data Dec 17, 2025
@cwasicki cwasicki requested review from cyiallou, shsms and stefan-brus-frequenz and removed request for Copilot December 17, 2025 17:56
Copy link

@stefan-brus-frequenz stefan-brus-frequenz left a comment

Choose a reason for hiding this comment

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

LGTM

@cwasicki cwasicki added this pull request to the merge queue Dec 17, 2025
Merged via the queue into frequenz-floss:v0.x.x with commit 5dd9e8f Dec 17, 2025
12 checks passed
@cwasicki cwasicki deleted the fixagg branch December 17, 2025 23:24
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