Skip to content

Commit

Permalink
Delete unreachable code
Browse files Browse the repository at this point in the history
  • Loading branch information
p-snft committed May 16, 2024
1 parent e5fb98c commit 79bebab
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/oemof/solph/components/_generic_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,13 +270,6 @@ def _set_flows(self):

def _check_invest_attributes(self):
"""Raise errors for infeasible investment attribute combinations"""
if self.investment and self.nominal_storage_capacity is not None:
e1 = (
"If an investment object is defined the invest variable "
"replaces the nominal_storage_capacity.\n Therefore the "
"nominal_storage_capacity should be 'None'.\n"
)
raise AttributeError(e1)
if (
self.invest_relation_input_output is not None
and self.invest_relation_output_capacity is not None
Expand Down

0 comments on commit 79bebab

Please sign in to comment.