From a7c3c11089e4950e3aaf4ad6368e5ea686bdb7ee Mon Sep 17 00:00:00 2001 From: trevorb1 Date: Sun, 27 Oct 2024 12:49:21 -0700 Subject: [PATCH] update result packae for null tests --- src/otoole/results/result_package.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/otoole/results/result_package.py b/src/otoole/results/result_package.py index 4f4950c..dc5ae29 100644 --- a/src/otoole/results/result_package.py +++ b/src/otoole/results/result_package.py @@ -429,7 +429,7 @@ def discounted_capital_investment(self) -> pd.DataFrame: capital_investment = self["CapitalInvestment"] except KeyError as ex: - raise KeyError(self._msg("CapitalInvestment", str(ex))) + raise KeyError(self._msg("DiscountedCapitalInvestment", str(ex))) df = discount_factor(regions, years, discount_rate, 0.0) @@ -491,7 +491,7 @@ def discounted_operational_cost(self) -> pd.DataFrame: annual_variable_operating_cost = self["AnnualVariableOperatingCost"] except KeyError as ex: - raise KeyError(self._msg("DiscountedOperatingCost", str(ex))) + raise KeyError(self._msg("DiscountedOperationalCost", str(ex))) df_mid = discount_factor(regions, years, discount_rate, 0.5) @@ -549,7 +549,7 @@ def discounted_technology_cost(self) -> pd.DataFrame: discounted_salvage_value = self["DiscountedSalvageValue"] except KeyError as ex: - raise KeyError(self._msg("TotalDiscountedCostByTechnology", str(ex))) + raise KeyError(self._msg("DiscountedCostByTechnology", str(ex))) discounted_total_costs = discounted_operational_costs.add( discounted_capital_costs, fill_value=0.0