Skip to content

Commit

Permalink
Merge pull request #87 from oemof/feature/not-build-solph-components
Browse files Browse the repository at this point in the history
Allow to not build solph components upon __init__
  • Loading branch information
jnnr committed Feb 6, 2023
2 parents 5a3336d + fd64ef2 commit 3c4bb0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/oemof/tabular/facades.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ def new_init(self, *args, **kwargs):

super(cls, self).__init__(*args, **kwargs)

self.build_solph_components()
if not kwargs.get("build_solph_components") is False:
self.build_solph_components()

cls.__init__ = new_init
return cls
Expand Down

0 comments on commit 3c4bb0f

Please sign in to comment.