Skip to content

Conversation

@MvLieshout
Copy link
Contributor

@MvLieshout MvLieshout commented Feb 11, 2025

Signed-off-by: Marnix van Lieshout [email protected]

Fixes issue: #27

Changes proposed in this PR include:

  • Added method to create a PGM-DS Grid object from a PGM dict.
  • Test
  • Example in notebook

Signed-off-by: Marnix van Lieshout <[email protected]>
…lliander.com>

I, Marnix van Lieshout <[email protected]>, hereby add my Signed-off-by to this commit: ac2b230

Signed-off-by: Marnix van Lieshout <[email protected]>
@MvLieshout MvLieshout changed the title Method to create PGM-DS Grid object from PGM dict Create PGM-DS Grid object from PGM dict Feb 11, 2025
Copy link
Member

@jaapschoutenalliander jaapschoutenalliander left a comment

Choose a reason for hiding this comment

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

Thank you for setting up the PR, it is a good set up in my opinion.

On your questions,

  • For me making the grid object optional is fine
  • Using the default values is the only option I can see for creating a full array from partial information in the pgm-input

My main concern for this solution is the user provided array_mapping, I left a suggestion on that

Signed-off-by: Marnix van Lieshout <[email protected]>
@MvLieshout MvLieshout changed the title Create PGM-DS Grid object from PGM dict Feat: Create PGM-DS Grid object from PGM dict Feb 12, 2025
@MvLieshout
Copy link
Contributor Author

Thanks for the feedback @jaapschoutenalliander, I will work on making some changes to the code over de next days.

Signed-off-by: Marnix van Lieshout <[email protected]>
Copy link
Member

@jaapschoutenalliander jaapschoutenalliander left a comment

Choose a reason for hiding this comment

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

Looks good, I have made some suggestions after which I think it is complete, mainly in test syntax

Signed-off-by: Marnix van Lieshout <[email protected]>
@jaapschoutenalliander jaapschoutenalliander marked this pull request as ready for review February 21, 2025 10:14
Copy link
Member

@jaapschoutenalliander jaapschoutenalliander left a comment

Choose a reason for hiding this comment

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

Thank you for adding the feature, we appreciate the effort!

Before merging I have one last request, to update the VERSION file to 1.2 https://github.com/PowerGridModel/power-grid-model-ds/blob/main/VERSION (also for your own ease of implementation)

Signed-off-by: Marnix van Lieshout <[email protected]>
@jaapschoutenalliander jaapschoutenalliander merged commit dbe1714 into PowerGridModel:main Feb 21, 2025
17 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