From 0ca3a662e9f78b86bd2d1c9866eae2acbe8a1e36 Mon Sep 17 00:00:00 2001 From: AUdaltsova Date: Fri, 9 Aug 2024 11:23:15 +0100 Subject: [PATCH 1/2] remove unused configs --- ocf_datapipes/config/model.py | 27 --------------------------- tests/data/configs/on_premises.yaml | 1 - 2 files changed, 28 deletions(-) diff --git a/ocf_datapipes/config/model.py b/ocf_datapipes/config/model.py index 91346604d..a59e79954 100644 --- a/ocf_datapipes/config/model.py +++ b/ocf_datapipes/config/model.py @@ -279,13 +279,6 @@ class Wind(DataSourceMixin, TimeResolutionMixin, XYDimensionalNames, DropoutMixi "values can be interpolated, and the extra minutes removed. This is " "because some live data takes ~1 hour to come in.", ) - get_center: bool = Field( - False, - description="If the batches are centered on one Wind system (or not). " - "The other options is to have one GSP at the center of a batch. " - "Typically, get_center would be set to true if and only if " - "WindDataSource is used to define the geospatial positions of each example.", - ) time_resolution_minutes: int = Field( 15, @@ -336,13 +329,6 @@ class PV( ) pv_image_size_meters_height: int = METERS_PER_ROI pv_image_size_meters_width: int = METERS_PER_ROI - get_center: bool = Field( - False, - description="If the batches are centered on one PV system (or not). " - "The other options is to have one GSP at the center of a batch. " - "Typically, get_center would be set to true if and only if " - "PVDataSource is used to define the geospatial positions of each example.", - ) pv_filename: Optional[str] = Field( None, @@ -405,13 +391,6 @@ class Sensor(DataSourceMixin, TimeResolutionMixin, XYDimensionalNames): sensor_image_size_meters_height: int = METERS_PER_ROI sensor_image_size_meters_width: int = METERS_PER_ROI - get_center: bool = Field( - False, - description="If the batches are centered on one Sensor system (or not). " - "The other options is to have one GSP at the center of a batch. " - "Typically, get_center would be set to true if and only if " - "SensorDataSource is used to define the geospatial positions of each example.", - ) sensor_filename: str = Field( None, @@ -760,12 +739,6 @@ class InputData(Base): description="how many historic minutes are used. " "This sets the default for all the data sources if they are not set.", ) - data_source_which_defines_geospatial_locations: str = Field( - "gsp", - description=( - "The name of the DataSource which will define the geospatial position of each example." - ), - ) @property def default_seq_length_5_minutes(self): diff --git a/tests/data/configs/on_premises.yaml b/tests/data/configs/on_premises.yaml index f2f040936..b4b2671b6 100644 --- a/tests/data/configs/on_premises.yaml +++ b/tests/data/configs/on_premises.yaml @@ -40,7 +40,6 @@ input_data: - label: pvoutput.org pv_filename: /mnt/storage_b/data/ocf/solar_pv_nowcasting/nowcasting_dataset_pipeline/PV/PVOutput.org/UK_PV_timeseries_batch.nc pv_metadata_filename: /mnt/storage_b/data/ocf/solar_pv_nowcasting/nowcasting_dataset_pipeline/PV/PVOutput.org/UK_PV_metadata.csv - get_center: false history_minutes: 90 forecast_minutes: 360 log_level: "INFO" From be3563554606ba4932dc0174a8da0de4c3b63622 Mon Sep 17 00:00:00 2001 From: AUdaltsova Date: Fri, 9 Aug 2024 11:27:32 +0100 Subject: [PATCH 2/2] remove unused configs --- tests/data/configs/test.yaml | 2 -- tests/data/configs/wind_test.yaml | 1 - 2 files changed, 3 deletions(-) diff --git a/tests/data/configs/test.yaml b/tests/data/configs/test.yaml index 1854b0ba5..e4f9579ef 100644 --- a/tests/data/configs/test.yaml +++ b/tests/data/configs/test.yaml @@ -27,7 +27,6 @@ input_data: - label: india wind_filename: tests/data/wind/wind_test_data.nc wind_metadata_filename: tests/data/wind/wind_metadata.csv - get_center: false wind_image_size_meters_height: 10000000 wind_image_size_meters_width: 10000000 n_wind_systems_per_example: 1 @@ -40,7 +39,6 @@ input_data: - label: pvoutput.org pv_filename: tests/data/pv/pvoutput/test.nc pv_metadata_filename: tests/data/pv/pvoutput/UK_PV_metadata.csv - get_center: false pv_image_size_meters_height: 10000000 pv_image_size_meters_width: 10000000 n_pv_systems_per_example: 32 diff --git a/tests/data/configs/wind_test.yaml b/tests/data/configs/wind_test.yaml index 2ede70c47..3a7830f7b 100644 --- a/tests/data/configs/wind_test.yaml +++ b/tests/data/configs/wind_test.yaml @@ -23,7 +23,6 @@ input_data: - label: pvoutput.org pv_filename: tests/data/pv/pvoutput/test.nc pv_metadata_filename: tests/data/pv/pvoutput/UK_PV_metadata.csv - get_center: false pv_image_size_meters_height: 10000000 pv_image_size_meters_width: 10000000 n_pv_systems_per_example: 32