Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused configs #355

Merged
merged 2 commits into from
Aug 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 0 additions & 27 deletions ocf_datapipes/config/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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):
Expand Down
1 change: 0 additions & 1 deletion tests/data/configs/on_premises.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 0 additions & 2 deletions tests/data/configs/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
1 change: 0 additions & 1 deletion tests/data/configs/wind_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading