Skip to content

Conversation

@WhiteSymmetry
Copy link
Contributor

@WhiteSymmetry WhiteSymmetry commented Aug 22, 2025

Fixes issue:
The example in the docs docs/model_interface.ipynb still uses the deprecated parameter substation_nodes, which has been removed in a previous release. Running the example in the docs now results in the following error:

TypeError: BaseGraphModel.get_components() got an unexpected keyword argument 'substation_nodes'

This PR removes the deprecated parameter from the example

Signed-off-by: Mehmet Keçeci <[email protected]>
Signed-off-by: Mehmet Keçeci <[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.

Thank you for pointing out the issue and suggesting a fix. The suggestion works, however I have some minor other changes requested to clean up the PR

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 the helpful PR, it keeps te docs clean and up to date

Use tmp_remove_nodes instead of the old substation_nodes argument

Signed-off-by: Vincent Koppen <[email protected]>
@jaapschoutenalliander jaapschoutenalliander merged commit 6b06c3e into PowerGridModel:main Oct 22, 2025
13 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