Updated nrelatb.py
(1) now mod_atb_technology accept a single number for subsittution.
(2) add default value for max_capacity_mwh
@@ -882,6 +882,9 @@ def add_modified_atb_generators(
gen["cost_case"] = mod_tech.pop("new_cost_case")
for parameter, op_list in mod_tech.items():
+ if isinstance(op_list, float) | isinstance(op_list, int):
+ gen[parameter] = op_list
+ else:
assert len(op_list) == 2, (
"Two values, an operator and a numeric value, are needed in the parameter\n"
f"'{parameter}' for technology '{name}' in 'modified_atb_new_gen'."
@@ -1083,7 +1086,7 @@ def atb_new_generators(atb_costs, atb_hr, settings):
new_gen_df = new_gen_df[keep_cols]
# Set no capacity limit on new resources that aren't renewables.
new_gen_df["Max_Cap_MW"] = -1
-
+ new_gen_df["Max_Cap_MWh"] = -1
regional_cost_multipliers = pd.read_csv(
DATA_PATHS["cost_multipliers"]
/ settings.get("cost_multiplier_fn", "AEO_2020_regional_cost_corrections.csv"),
