Skip to content

Commit

Permalink
correct NewStorageCapacity name
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorb1 committed Nov 8, 2024
1 parent 7a686b9 commit 941bbf2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/otoole/results/result_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ def capital_investment_storage(self) -> pd.DataFrame:
"""
try:
capital_cost_storage = self["CapitalCostStorage"]
new_capacity_storage = self["NewCapacityStorage"]
new_capacity_storage = self["NewStorageCapacity"]

except KeyError as ex:
raise KeyError(self._msg("CapitalInvestmentStorage", str(ex)))
Expand Down
6 changes: 3 additions & 3 deletions tests/results/test_results_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ def capital_cost_storage():


@fixture
def new_capacity_storage():
def new_storage_capacity():
df = pd.DataFrame(
data=[
["SIMPLICITY", "DAM", 2014, 1.3],
Expand Down Expand Up @@ -977,14 +977,14 @@ def test_null(self, null: ResultsPackage):

class TestCapitalInvestmentStorage:
def test_capital_investment_storage(
self, region, year, capital_cost_storage, new_capacity_storage
self, region, year, capital_cost_storage, new_storage_capacity
):

results = {
"REGION": region,
"YEAR": year,
"CapitalCostStorage": capital_cost_storage,
"NewCapacityStorage": new_capacity_storage,
"NewStorageCapacity": new_storage_capacity,
}

package = ResultsPackage(results)
Expand Down

0 comments on commit 941bbf2

Please sign in to comment.