You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
uxarray/io/_ugrid.py:95 binds the module-level dict without copying and then adds keys to it, so every to_xarray("UGRID") / to_netcdf call in a process permanently grows the shared constant. Any grid encoded afterwards advertises variables and dimensions it does not have.
uxarray/io/_ugrid.py:95binds the module-level dict without copying and then adds keys to it, so everyto_xarray("UGRID")/to_netcdfcall in a process permanently grows the shared constant. Any grid encoded afterwards advertises variables and dimensions it does not have.grid_topologypoints atn_edge,face_lon face_lat,face_edge_connectivityetc. that are not in the dataset..copy()was added in encode/save to UGRID after healpix creation #1279 and removed in Deprecate Grid.encode_as, Add esmf writer, Add tests, fix to_netcdf bug after healpix mesh creation #1282 (Deprecate Grid.encode_as, Add esmf writer, Add tests, fix to_netcdf bug after healpix mesh creation #1282 (comment)) on the reasoning that the added keys were not in the base dict. They are not, until the first call adds them.Fix is simply
grid_topology = dict(ugrid.BASE_GRID_TOPOLOGY_ATTRS)plus a regression test.