Skip to content

Commit

Permalink
Merge pull request #989 from Raul-Ciria-Aylagas/dev
Browse files Browse the repository at this point in the history
Fix: GenericStorage investment was not initialised correctly
  • Loading branch information
p-snft authored Oct 11, 2023
2 parents 1ef253d + bda5b40 commit 075fcc1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/oemof/solph/components/_generic_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def __init__(
if isinstance(nominal_storage_capacity, numbers.Real):
self.nominal_storage_capacity = nominal_storage_capacity
elif isinstance(nominal_storage_capacity, Investment):
self.investment = investment
self.investment = nominal_storage_capacity
self._invest_group = True

self.initial_storage_level = initial_storage_level
Expand All @@ -235,11 +235,9 @@ def __init__(
self.min_storage_level = solph_sequence(min_storage_level)
self.fixed_costs = solph_sequence(fixed_costs)
self.storage_costs = solph_sequence(storage_costs)
self.investment = investment
self.invest_relation_input_output = invest_relation_input_output
self.invest_relation_input_capacity = invest_relation_input_capacity
self.invest_relation_output_capacity = invest_relation_output_capacity
self._invest_group = isinstance(self.investment, Investment)
self.lifetime_inflow = lifetime_inflow
self.lifetime_outflow = lifetime_outflow

Expand Down

0 comments on commit 075fcc1

Please sign in to comment.