Skip to content

Commit

Permalink
Merge pull request #988 from oemof/revision/network_cleanup
Browse files Browse the repository at this point in the history
Adapt to cleaned up oemof.network
  • Loading branch information
p-snft authored Oct 11, 2023
2 parents f02297e + 9839c37 commit 1ef253d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/whatsnew/v0-5-2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,9 @@ Testing
Other changes
#############

* Improved compatibility with upcoming oemof.network

Contributors
############

* Patrik Schönfeldt
3 changes: 2 additions & 1 deletion src/oemof/solph/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
SPDX-FileCopyrightText: Stephan Günther
SPDX-FileCopyrightText: henhuy
SPDX-FileCopyrightText: Johannes Kochems
SPDX-FileCopyrightText: Patrik Schönfeldt <[email protected]>
SPDX-License-Identifier: MIT
Expand Down Expand Up @@ -528,7 +529,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 1ef253d

Please sign in to comment.