From ee4afa0e408b542bed0176885787e07863e7e5c2 Mon Sep 17 00:00:00 2001 From: James Fulton Date: Tue, 19 Sep 2023 13:48:07 +0000 Subject: [PATCH] add logger warning --- pvnet_app/app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pvnet_app/app.py b/pvnet_app/app.py index 549f4fb..00139be 100644 --- a/pvnet_app/app.py +++ b/pvnet_app/app.py @@ -283,6 +283,7 @@ def app( ######## # TO DO: THIS IS A TEMPORARY BUG FIX TO COMPENSATE FOR A BUG IN THE NWP CONSUMER FLIPPING THE # Y-AXIS IN THE NWP + logger.warning("Reassigning the y-axis coordinates to compensate for consumer bug") ds = xr.open_zarr("nwp.zarr").compute() os.system("rm -r nwp.zarr") ds["y"] = ds["y"].values[::-1]