Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add check method to EnergySystem class #51

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from
Open

Conversation

p-snft
Copy link
Member

@p-snft p-snft commented Jan 14, 2025

The method checks if every Node that is connected via an Edge is part of the EnergySystem and raises a RuntimeError if not.

As an alternative approach, I tried to check indirectly by creating a networkx graph. However, that package implicitly adds nodes an edge connects with.

The method checks if every Node that is connected
via an Edge is part of the EnergySystem and raises
a RuntimeError if not.
@p-snft p-snft added the enhancement New feature or request label Jan 14, 2025
@p-snft p-snft marked this pull request as ready for review January 14, 2025 13:12
@p-snft p-snft requested a review from fwitte January 14, 2025 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant