Skip to content
Open
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
10 changes: 5 additions & 5 deletions docs/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -727,20 +727,20 @@ Common error messages and their solutions:
## Running PVNet Model

1. Update configuration file
Go to src/open_data_pvnet/configs/PVNet_configs/datamodule/streamed_batches.yaml
Go to src/open_data_pvnet/uk_gfs_configs/PVNet_configs/datamodule/streamed_batches.yaml

Change values if desired (increase at your discretion):
num_train_samples: 5
num_val_samples: 5

2. Update src/open_data_pvnet/configs/PVNet_configs/datamodule/premade_batches.yaml
Change this line to configuration: <your_directory...open-data-pvnet/src/open_data_pvnet/configs/PVNet_configs/datamodule/configuration/example_configuration.yaml>
2. Update src/open_data_pvnet/uk_gfs_configs/PVNet_configs/datamodule/premade_batches.yaml
Change this line to configuration: <your_directory...open-data-pvnet/src/open_data_pvnet/uk_gfs_configs/PVNet_configs/datamodule/configuration/example_configuration.yaml>

3. Update src/open_data_pvnet/configs/PVNet_configs/config.yaml
3. Update src/open_data_pvnet/uk_gfs_configs/PVNet_configs/config.yaml
Change the line to - datamodule: premade_batches.yaml

4. Open a Weights & Biases Account https://wandb.ai/
Go to src/open_data_pvnet/configs/PVNet_configs/logger/wandb.yaml
Go to src/open_data_pvnet/uk_gfs_configs/PVNet_configs/logger/wandb.yaml
Change to project: "GFS_TEST_RUN"
Change to save_dir: "GFS_TEST_RUN"

Expand Down
2 changes: 1 addition & 1 deletion run.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@


@hydra.main(
config_path="src/open_data_pvnet/configs/PVNet_configs",
config_path="src/open_data_pvnet/uk_gfs_configs/PVNet_configs",
config_name="config.yaml",
version_base="1.2",
)
Expand Down
42 changes: 0 additions & 42 deletions src/open_data_pvnet/configs/dwd_data_config.yaml

This file was deleted.

50 changes: 0 additions & 50 deletions src/open_data_pvnet/configs/met_office_global_data_config.yaml

This file was deleted.

50 changes: 0 additions & 50 deletions src/open_data_pvnet/configs/met_office_uk_data_config.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion src/open_data_pvnet/nwp/gfs_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def _normalize_sample(self, dataset: xr.Dataset) -> xr.Dataset:
# # Uncomment the block below to test
# if __name__ == "__main__":
# dataset_path = "s3://ocf-open-data-pvnet/data/gfs.zarr"
# config_path = "src/open_data_pvnet/configs/gfs_data_config.yaml"
# config_path = "src/open_data_pvnet/uk_gfs_configs/gfs_data_config.yaml"
# dataset = open_gfs(dataset_path)
# dataset = handle_nan_values(dataset, method="fill", fill_value=0.0)
# sampler = GFSDataSampler(dataset, config_filename=config_path, start_time="2023-01-01T00:00:00", end_time="2023-01-30T00:00:00")
Expand Down
2 changes: 1 addition & 1 deletion src/open_data_pvnet/scripts/save_samples.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def save_samples_with_dataloader(
pbar.close()


@hydra.main(config_path="../configs/PVNet_configs", config_name="config.yaml", version_base="1.2")
@hydra.main(config_path="../uk_gfs_configs/PVNet_configs", config_name="config.yaml", version_base="1.2")
def main(config: DictConfig) -> None:
"""Constructs and saves validation and training samples."""
config_dm = config.datamodule
Expand Down