bug fix of load profile preparation.
add condition of testing "regional_load_includes_demand_response"
@@ -598,6 +598,9 @@ def make_final_load_curves(
raise ValueError("All load curves are null.")
if settings.get("demand_response_fn"):
+ if settings.get("regional_load_includes_demand_response"):
+ load_curves_before_dg = load_curves_before_dr
+ else:
load_curves_before_dg = add_demand_response_resource_load(
load_curves_before_dr, settings
)
