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

Assure Model.nodeis a list #1009

Merged
merged 4 commits into from
Nov 9, 2023
Merged

Assure Model.nodeis a list #1009

merged 4 commits into from
Nov 9, 2023

Conversation

p-snft
Copy link
Member

@p-snft p-snft commented Nov 9, 2023

It was assumed that oemof.network.energy_system.nodes is a list, but this is not granted. (There are plans to work with a dictionary in network.) Also, handling of cellular systems is slightly improved.

.node now should be a dictionary, but .nodes should be dict_values.
This aligns with the plan to let network.EnergySystem.nodes
return the dict_values, so it's like a list (at least no keys).
@p-snft p-snft requested a review from lensum November 9, 2023 13:29
@p-snft
Copy link
Member Author

p-snft commented Nov 9, 2023

Coverage decreased because I deleted a tested line. This should be in order.

Copy link
Contributor

@lensum lensum 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 to me! Thanks for the improvement.

@p-snft p-snft merged commit 7c7ba3b into dev Nov 9, 2023
12 checks passed
@p-snft p-snft deleted the revision/node_dict branch November 9, 2023 15:10
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.

2 participants