Rename d_mesh_static dimension to follow canonical naming convention
#687 opened on Jun 27, 2026
Repository metrics
- Stars
- (282 stars)
- PR merge metrics
- (PR metrics pending)
Description
Background
PR #635 added a "Canonical dimension names" list to the README, including:
d_mesh_static- number of static features per mesh node
In review of PR #635 it was noted that d_mesh_static doesn't
match the naming pattern of the other canonical names: num_* for counts (num_state_vars, num_forcing_vars, num_grid_nodes,
num_mesh_nodes) and *_dim for feature sizes (hidden_dim, input_dim). The d_-prefix follows neither.
Proposal
Rename d_mesh_static to num_mesh_static_vars, matching the num_* family.
Scope
The name predates #635 and also appears in code comments/docstrings, which should be updated together:
README.md— canonical dimension names list (added in #635)- https://github.com/mllam/neural-lam/blob/10e93a6553fbfa83dccf07f759a89d7d96874097/neural_lam/utils.py#L328
- https://github.com/mllam/neural-lam/blob/10e93a6553fbfa83dccf07f759a89d7d96874097/neural_lam/create_graph.py#L285
- https://github.com/mllam/neural-lam/blob/10e93a6553fbfa83dccf07f759a89d7d96874097/neural_lam/create_graph.py#L299-L301
Separately, surrounding comments use ad-hoc node-count names (N_mesh, N_mesh_nodes_level) instead of the canonical
num_mesh_nodes. Would be good to also fix