Skip to content

Commit

Permalink
Fix "Flow" does not have "_in_edges"
Browse files Browse the repository at this point in the history
In old versions of oemof.network, Edge was subclass to Node.
Thus, the Flow had the attribute "_in_edges" though there was
no Edge connected to an Edge. Now, the Edge (sand thus Flow)
is cleaned up in oemof.network. As attributes starting with "_"
are ignored  anyway, this commit does not even change any behaviour.
  • Loading branch information
p-snft committed Oct 11, 2023
1 parent f02297e commit 559c681
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/oemof/solph/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ def detect_scalars_and_sequences(com):
attrs = [
i
for i in dir(com)
if not (callable(getattr(com, i)) or i.startswith(exclusions))
if not (i.startswith(exclusions) or callable(getattr(com, i)))
]

for a in attrs:
Expand Down

0 comments on commit 559c681

Please sign in to comment.