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

Issue/remove hot fix #19

Merged
merged 2 commits into from
Oct 26, 2023
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
12 changes: 0 additions & 12 deletions pvnet_app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -13,4 +13,4 @@ torchdata
pytest
pytest-cov
typer
testcontainers
testcontainers
Loading