diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ca5d4aa..032497a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,6 +33,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Switch to lat/lon-based plotting with `pcolormesh` and `cartopy` for accurate spatial visualisation regardless of underlying projection. [\#168](https://github.com/mllam/neural-lam/pull/168) @sadamov +- Resolve `xarray` `FacetGrid` `DeprecationWarning` in `plot_example.py` by using a compatibility shim [\#482](https://github.com/mllam/neural-lam/pull/482) @sohampatil01-svg + - Replace `shell=True` subprocess call in `compute_standardization_stats.py` with a safe argument list and Python-side hostname parsing to prevent command injection via `SLURM_JOB_NODELIST` [\#264](https://github.com/mllam/neural-lam/pull/264) @ashum9 - Avoid NaN when standardizing fields with zero std [#189](https://github.com/mllam/neural-lam/pull/189) @varunsiravuri diff --git a/neural_lam/datastore/plot_example.py b/neural_lam/datastore/plot_example.py index 4f61ac7e..44da2d20 100644 --- a/neural_lam/datastore/plot_example.py +++ b/neural_lam/datastore/plot_example.py @@ -80,7 +80,7 @@ def plot_example_from_datastore( transform=crs, size=4, ) - for ax in g.axes.flat: + for ax in getattr(g, "axs", g.axes).flat: ax.coastlines() ax.gridlines(draw_labels=["left", "bottom"]) ax.set_extent(datastore.get_xy_extent(category=category), crs=crs)