Don't always supplement with 860m data
Especially in testing, I don't want to add all 860m gens that aren't in the database
@@ -2309,6 +2309,7 @@ class GeneratorClusters:
pg_engine,
settings,
current_gens=True,
+ supplement_with_860m=True,
sort_gens=False,
plant_region_map_table="plant_region_map_epaipm",
settings_agg_key="region_aggregations",
@@ -2332,6 +2333,7 @@ class GeneratorClusters:
self.sort_gens = sort_gens
self.model_regions_gdf = load_ipm_shapefile(self.settings)
self.weighted_unit_hr = None
+ self.supplement_with_860m = supplement_with_860m
if self.current_gens:
self.data_years = self.settings["data_years"]
@@ -2612,6 +2614,7 @@ class GeneratorClusters:
f"Units model technologies are "
f"{self.units_model.technology_description.unique().tolist()}"
)
+ if self.supplement_with_860m:
logger.info(
f"Before adding proposed generators, {len(self.units_model)} units with "
f"{self.units_model[self.settings['capacity_col']].sum()} MW capacity"
