Skip to content

Fixes to json exporter - #473

Merged
erikbosch merged 3 commits into
COVESA:masterfrom
Hologic-BSHS:hologic
Dec 16, 2025
Merged

Fixes to json exporter#473
erikbosch merged 3 commits into
COVESA:masterfrom
Hologic-BSHS:hologic

Conversation

@eric-hologic

Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Eric Montellese <eric.montellese@hologic.com>
Signed-off-by: Eric Montellese <eric.montellese@hologic.com>
Signed-off-by: Eric Montellese <eric.montellese@hologic.com>

root_key: str | None
root_key = next(iter(signals_data))
if root_key is None:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

So here we take first name found right? Do we need to check that there are not more names/roots or is that already covered by some other checks?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Signals data will look like that:

    signals_data = {tree.name: get_data(tree, extend_all_attributes, extended_attributes)}

But yeah, we probably should check for the size and throw an error when its > 1 to notice that something is going wrong

Comment thread src/vss_tools/exporters/json.py

root_key: str | None
root_key = next(iter(signals_data))
if root_key is None:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Signals data will look like that:

    signals_data = {tree.name: get_data(tree, extend_all_attributes, extended_attributes)}

But yeah, we probably should check for the size and throw an error when its > 1 to notice that something is going wrong

@erikbosch

Copy link
Copy Markdown
Collaborator

MoM:

  • Please review

@erikbosch

Copy link
Copy Markdown
Collaborator

MoM: Merge

@erikbosch
erikbosch merged commit 36e5c09 into COVESA:master Dec 16, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants