Skip to content

Commit

Permalink
Merge pull request #353 from openclimatefix/ml_id-infill
Browse files Browse the repository at this point in the history
change ml_id infills to zero from nan
  • Loading branch information
AUdaltsova authored Aug 7, 2024
2 parents e3c567e + 2dc7a89 commit 75f4584
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ocf_datapipes/load/pv/pv.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def _load_pv_metadata(

# Add ml_id column if not in metadata already
if "ml_id" not in df_metadata.columns:
df_metadata["ml_id"] = np.nan
df_metadata["ml_id"] = -1.0

if label == "solar_sheffield_passiv":
# Add capacity in watts
Expand Down
2 changes: 1 addition & 1 deletion ocf_datapipes/load/wind/wind.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def _load_wind_metadata(filename: str) -> pd.DataFrame:

# Add ml_id column if not in metadata already
if "ml_id" not in df_metadata.columns:
df_metadata["ml_id"] = np.nan
df_metadata["ml_id"] = -1.0

_log.info(f"Found {len(df_metadata)} Wind systems in {filename}")

Expand Down

0 comments on commit 75f4584

Please sign in to comment.