Skip to content

Commit

Permalink
Merge pull request #239 from openclimatefix/Site-specific-penalty-2
Browse files Browse the repository at this point in the history
Update pvsite_forecast.py
  • Loading branch information
ADIMANV authored Jan 3, 2025
2 parents 607a362 + 4d6cbda commit 0dca786
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/pvsite_forecast.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,13 +389,13 @@ def convert_df(df: pd.DataFrame):
"pearson_corr": pearson_corr,
}

if country == "india":
df["forecast_power_kw"] = df[forecast_column]
st.write(f"Selected Site UUID: {site_selection_uuid}")
penalties, total_penalty = calculate_penalty(df, str(region), str(asset_type), capacity_kw)
one_metric_data["total_penalty [INR]"] = total_penalty
if country == "india":
df["forecast_power_kw"] = df[forecast_column]
st.write(f"Selected Site UUID: {site_selection_uuid}")
penalties, total_penalty = calculate_penalty(df, str(region), str(asset_type), capacity_kw)
one_metric_data["total_penalty [INR]"] = total_penalty

metrics.append(one_metric_data)
metrics.append(one_metric_data)

metrics = pd.DataFrame(metrics)

Expand Down

0 comments on commit 0dca786

Please sign in to comment.