Don't break when age is missing
@@ -594,7 +594,9 @@ def atb_fixed_var_om_existing(
plant_capacity = _df[settings["capacity_col"]].sum()
age = settings["model_year"] - _df.operating_date.dt.year
+ try:
age = age.fillna(age.mean())
+ except:
age = age.fillna(40)
gen_ids = _df["generator_id"].to_list()
fgd = coal_fgd_df.query(
