Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 24, 2023
1 parent 2a19c0e commit 0f55056
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ocf_datapipes/training/example/nwp_pv.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ def nwp_pv_datapipe(
.fork(2, buffer_size=BUFFER_SIZE)
)

if configuration.input_data.nwp.nwp_provider == "UKMetOffice" or configuration.input_data.nwp.nwp_provider == "ukv":
if (
configuration.input_data.nwp.nwp_provider == "UKMetOffice"
or configuration.input_data.nwp.nwp_provider == "ukv"
):
nwp_datapipe = OpenNWPID(configuration.input_data.nwp.nwp_zarr_path)
elif configuration.input_data.nwp.nwp_provider == "GFS":
nwp_datapipe = OpenGFSForecast(configuration.input_data.nwp.nwp_zarr_path)
Expand Down

0 comments on commit 0f55056

Please sign in to comment.