From 7620a69d9c4def06a6c71391cb1bf1be2f0fadcf Mon Sep 17 00:00:00 2001 From: Alexandra Udaltsova <43303448+AUdaltsova@users.noreply.github.com> Date: Wed, 7 Aug 2024 15:54:12 +0100 Subject: [PATCH 1/4] Update pv.py --- ocf_datapipes/load/pv/pv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ocf_datapipes/load/pv/pv.py b/ocf_datapipes/load/pv/pv.py index e22966ba3..bd836afab 100644 --- a/ocf_datapipes/load/pv/pv.py +++ b/ocf_datapipes/load/pv/pv.py @@ -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"] = 0.0 if label == "solar_sheffield_passiv": # Add capacity in watts From 20366929c393579f8c3d4f33d1a0ae8002fdf85b Mon Sep 17 00:00:00 2001 From: Alexandra Udaltsova <43303448+AUdaltsova@users.noreply.github.com> Date: Wed, 7 Aug 2024 15:58:14 +0100 Subject: [PATCH 2/4] Update wind.py --- ocf_datapipes/load/wind/wind.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ocf_datapipes/load/wind/wind.py b/ocf_datapipes/load/wind/wind.py index 4f78d1827..857091e16 100644 --- a/ocf_datapipes/load/wind/wind.py +++ b/ocf_datapipes/load/wind/wind.py @@ -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"] = 0.0 _log.info(f"Found {len(df_metadata)} Wind systems in {filename}") From f6781271e320af487d323e865d3455f992478544 Mon Sep 17 00:00:00 2001 From: Alexandra Udaltsova <43303448+AUdaltsova@users.noreply.github.com> Date: Wed, 7 Aug 2024 16:56:46 +0100 Subject: [PATCH 3/4] change ml_id to -1 wind.py --- ocf_datapipes/load/wind/wind.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ocf_datapipes/load/wind/wind.py b/ocf_datapipes/load/wind/wind.py index 857091e16..6bb724029 100644 --- a/ocf_datapipes/load/wind/wind.py +++ b/ocf_datapipes/load/wind/wind.py @@ -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"] = 0.0 + df_metadata["ml_id"] = -1.0 _log.info(f"Found {len(df_metadata)} Wind systems in {filename}") From 2dc7a898a567c762bffdd486ab4dc72b60810310 Mon Sep 17 00:00:00 2001 From: Alexandra Udaltsova <43303448+AUdaltsova@users.noreply.github.com> Date: Wed, 7 Aug 2024 16:57:20 +0100 Subject: [PATCH 4/4] change ml_id to -1 pv.py --- ocf_datapipes/load/pv/pv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ocf_datapipes/load/pv/pv.py b/ocf_datapipes/load/pv/pv.py index bd836afab..4a79ccb20 100644 --- a/ocf_datapipes/load/pv/pv.py +++ b/ocf_datapipes/load/pv/pv.py @@ -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"] = 0.0 + df_metadata["ml_id"] = -1.0 if label == "solar_sheffield_passiv": # Add capacity in watts