Skip to content

Print network to PDF#393

Closed
Jerry-Jinfeng-Guo wants to merge 8 commits intomainfrom
feature/print-network-to-pdf
Closed

Print network to PDF#393
Jerry-Jinfeng-Guo wants to merge 8 commits intomainfrom
feature/print-network-to-pdf

Conversation

@Jerry-Jinfeng-Guo
Copy link
Copy Markdown
Member

@Jerry-Jinfeng-Guo Jerry-Jinfeng-Guo commented Mar 16, 2026

Functionality to print a PGM network data to a PDF file with electrical diagrams.

  • function
  • test
  • doc/example

Signed-off-by: Jerry Jinfeng Guo <jerry.jinfeng.guo@alliander.com>
@Jerry-Jinfeng-Guo Jerry-Jinfeng-Guo self-assigned this Mar 16, 2026
@Jerry-Jinfeng-Guo Jerry-Jinfeng-Guo added the feature New feature or request label Mar 16, 2026
Signed-off-by: Jerry Jinfeng Guo <jerry.jinfeng.guo@alliander.com>
Comment thread pyproject.toml Outdated
requires-python = ">=3.12"
dependencies = [
"matplotlib>=3.5",
"networkx>=2.6",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Shouldn't these be added as optional dependencies?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I agree

Copy link
Copy Markdown
Member

@mgovers mgovers left a comment

Choose a reason for hiding this comment

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

Very cool but is pgm-io the right place for this? Shouldn't this be part of pgm-ds?

Jerry-Jinfeng-Guo and others added 6 commits March 17, 2026 13:50
Signed-off-by: Jerry Jinfeng Guo <jerry.jinfeng.guo@alliander.com>
Signed-off-by: Jerry Guo <6221579+Jerry-Jinfeng-Guo@users.noreply.github.com>
Signed-off-by: Jerry Jinfeng Guo <jerry.jinfeng.guo@alliander.com>
Signed-off-by: Jerry Jinfeng Guo <jerry.jinfeng.guo@alliander.com>
Signed-off-by: Jerry Jinfeng Guo <jerry.jinfeng.guo@alliander.com>
Signed-off-by: Jerry Jinfeng Guo <jerry.jinfeng.guo@alliander.com>
@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Commenting here because otherwise my previous comment may get lost in the work and this PR is not a draft PR:

Is pgm-io the right place for this? Isn't pgm-ds better suited for this?

Comment thread pyproject.toml
[dependency-groups]

visualization = [
"matplotlib>=3.5",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is there a reason you went for Matplotlib instead of the grid drawing tool @nitbharambe introduced for generating the grid images in the docs? That's already a PGM docs dependency anyways

@mgovers mgovers marked this pull request as draft April 1, 2026 11:39
@mgovers
Copy link
Copy Markdown
Member

mgovers commented Apr 7, 2026

Closing this PR as per the offline discussion. It can be re-opened once relevant again.

@mgovers mgovers closed this Apr 7, 2026
@mgovers mgovers deleted the feature/print-network-to-pdf branch April 7, 2026 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants