diff --git a/postreise/analyze/generation/curtailment.py b/postreise/analyze/generation/curtailment.py index be4a148c..7dad32c7 100644 --- a/postreise/analyze/generation/curtailment.py +++ b/postreise/analyze/generation/curtailment.py @@ -56,7 +56,9 @@ def calculate_curtailment_time_series(scenario, resources=None): curtailment = {} for r in resources: ren_plants = grid.plant.groupby("type").get_group(r).index - curtailment[r] = relevant_profiles[ren_plants] - pg[ren_plants] + curtailment[r] = ( + (relevant_profiles[ren_plants] - pg[ren_plants]).clip(lower=0).round(6) + ) return curtailment