Skip to content

[NAD] Add network name to metadata output#804

Open
hqqw2h-lgtm wants to merge 2 commits intopowsybl:mainfrom
hqqw2h-lgtm:add-network-name-to-nad-metadata
Open

[NAD] Add network name to metadata output#804
hqqw2h-lgtm wants to merge 2 commits intopowsybl:mainfrom
hqqw2h-lgtm:add-network-name-to-nad-metadata

Conversation

@hqqw2h-lgtm
Copy link
Copy Markdown

Summary

Adds the network name to the NAD (Network Area Diagram) metadata JSON output.

  • Adds a networkName field to DiagramMetadata, populated via Network.getNameOrId()
  • The field is omitted from the JSON when null (backward compatible)
  • Downstream tools like powsybl-network-viewer can use this field to name exported SVG/PNG files

Closes #801

skyhww added 2 commits April 4, 2026 11:33
Include the network name in the DiagramMetadata JSON output so that downstream tools like powsybl-network-viewer can use it for naming exported files.

Closes powsybl#801

Signed-off-by: hanweiwei <duzielww@163.com>
Made-with: Cursor
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.

[NAD] Add network name in the metadata

2 participants