From 2e897bd202fb90bc16e8d16c412167b9e643b3de Mon Sep 17 00:00:00 2001 From: Jared Thomas Date: Sat, 26 Oct 2024 16:03:47 -0600 Subject: [PATCH] fix typos in tests --- .../simulation/technologies/financial/custom_financial_model.py | 2 +- tests/hopp/test_detailed_pv_plant.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hopp/simulation/technologies/financial/custom_financial_model.py b/hopp/simulation/technologies/financial/custom_financial_model.py index 2c71647a0..5d3a671da 100644 --- a/hopp/simulation/technologies/financial/custom_financial_model.py +++ b/hopp/simulation/technologies/financial/custom_financial_model.py @@ -67,7 +67,7 @@ class SystemCosts(FinancialData): @define class Revenue(FinancialData): - ppa_price_input: float = field(default=None) # cents/kWh + ppa_price_input: list = field(default=None) # cents/kWh ppa_escalation: float = field(default=1) # percent (%) ppa_multiplier_model: float = field(default=None) dispatch_factors_ts: Sequence = field(default=(0,)) diff --git a/tests/hopp/test_detailed_pv_plant.py b/tests/hopp/test_detailed_pv_plant.py index 824bc91a6..7841b7940 100644 --- a/tests/hopp/test_detailed_pv_plant.py +++ b/tests/hopp/test_detailed_pv_plant.py @@ -101,7 +101,7 @@ def test_custom_financial(site): config = DetailedPVConfig.from_dict( { "system_capacity_kw": 100, - "fin_model": CustomFinancialModel(DEFAULT_FIN_CONFIG), + "fin_model": CustomFinancialModel(DEFAULT_FIN_CONFIG, name="Test"), } ) pv_plant = DetailedPVPlant(site=site, config=config)