diff --git a/pvnet_app/app.py b/pvnet_app/app.py index 10fc4bf..21b1a75 100644 --- a/pvnet_app/app.py +++ b/pvnet_app/app.py @@ -288,18 +288,6 @@ def app( fs = fsspec.open(os.environ["NWP_ZARR_PATH"]).fs fs.get(os.environ["NWP_ZARR_PATH"], "nwp.zarr", recursive=True) - ################ - # Hot fix as datapipes can't handle both lat-lon and osgb on same coord - ds_nwp = xr.open_zarr("nwp.zarr").compute() - if "latitude" in ds_nwp: - ds_nwp = ds_nwp.drop_vars(("latitude", "longitude")) - ds_nwp["variable"] = ds_nwp.variable.astype(str) - os.system("rm -r nwp.zarr") - ds_nwp.to_zarr("nwp.zarr") - - del ds_nwp - ################ - # --------------------------------------------------------------------------- # 2. Set up data loader logger.info("Creating DataLoader") diff --git a/requirements.txt b/requirements.txt index ea539ef..4262540 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ torch[cpu]>=2.0 PVNet-summation>=0.0.8 -pvnet>=2.2.0 -ocf_datapipes>=2.0.4 +pvnet>=2.2.1 +ocf_datapipes>=2.0.6 nowcasting_datamodel>=1.5.10 fsspec[s3] xarray @@ -13,4 +13,4 @@ torchdata pytest pytest-cov typer -testcontainers \ No newline at end of file +testcontainers