Pushed via gitpush
@@ -57,6 +57,33 @@ def check_settings(settings: dict, pudl_engine: sa.engine) -> None:
itertools.chain.from_iterable(settings["aeo_fuel_region_map"].values())
)
+ techs = settings["atb_new_gen"]
+
+ for tech in techs:
+ tech, tech_detail, cost_case, _ = tech
+
+ s = f"""
+ SELECT technology, tech_detail
+ from technology_costs_nrelatb
+ where
+ technology == "{tech}"
+ AND tech_detail == "{tech_detail}"
+ """
+ if (
+ len(
+ pudl_engine.execute(
+ s,
+ ).fetchall()
+ )
+ == 0
+ ):
+ s = f"""
+ *****************************
+ The technology {tech} - {tech_detail} listed in your settings file under 'atb_new_gen' does not match any NREL ATB technologies. Check your settings file to ensure it is spelled correctly"
+ *****************************
+ """
+ logger.warning(s)
+
for agg_region, ipm_regions in (settings.get("region_aggregations") or {}).items():
for ipm_region in ipm_regions:
if ipm_region not in ipm_region_list:
