Skip to content

Commit

Permalink
add logger warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dfulu committed Sep 19, 2023
1 parent 75c8283 commit ee4afa0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pvnet_app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit ee4afa0

Please sign in to comment.