Skip to content

Commit

Permalink
Refactor ambigous conditional statement
Browse files Browse the repository at this point in the history
  • Loading branch information
p-snft committed Aug 14, 2024
1 parent 9cb533b commit 2e0e251
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/oemof/solph/components/_generic_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -1219,7 +1219,7 @@ def _storage_investvar_bound_rule(_, n, p):
"""
if n in self.CONVEX_INVESTSTORAGES:
return n.investment.minimum[p], n.investment.maximum[p]
elif n in self.NON_CONVEX_INVESTSTORAGES:
else: # n in self.NON_CONVEX_INVESTSTORAGES
return 0, n.investment.maximum[p]

self.invest = Var(
Expand Down

0 comments on commit 2e0e251

Please sign in to comment.