Bug fix: set default load growth start year
The default year is set to 2019 just above, use the same value here.
@@ -7,11 +7,7 @@ from pathlib import Path
import pandas as pd
import numpy as np
-from powergenome.util import (
- regions_to_keep,
- reverse_dict_of_lists,
- remove_feb_29,
-)
+from powergenome.util import regions_to_keep, reverse_dict_of_lists, remove_feb_29
from powergenome.external_data import make_demand_response_profiles
from powergenome.eia_opendata import get_aeo_load
@@ -125,7 +121,9 @@ def add_load_growth(load_curves: pd.DataFrame, settings: dict) -> pd.DataFrame:
for ipm_region in keep_regions
}
- years_growth = settings["model_year"] - settings["regular_load_growth_start_year"]
+ years_growth = settings["model_year"] - settings.get(
+ "regular_load_growth_start_year", 2019
+ )
for region, rate in (settings.get("alt_growth_rate") or {}).items():
future_growth_factor[region] = (1 + rate) ** years_growth
