Skip to content

Fix _encode_ugrid mutating BASE_GRID_TOPOLOGY_ATTRS - #1751

Open
rajeeja wants to merge 1 commit into
mainfrom
rajeeja/fix_ugrid_topology_mutation
Open

Fix _encode_ugrid mutating BASE_GRID_TOPOLOGY_ATTRS#1751
rajeeja wants to merge 1 commit into
mainfrom
rajeeja/fix_ugrid_topology_mutation

Conversation

@rajeeja

@rajeeja rajeeja commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Closes #1750. _encode_ugrid added keys directly to the shared module-level dict, so after the first export every later grid's grid_topology advertised edge/face variables it did not have. Copies the dict before mutating and adds a regression test that fails on main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

_encode_ugrid mutates BASE_GRID_TOPOLOGY_ATTRS

1 participant