Skip to content

refactor(dfns): better dim specification#323

Merged
wpbonelli merged 2 commits into
MODFLOW-ORG:developfrom
wpbonelli:dfns-dims
May 28, 2026
Merged

refactor(dfns): better dim specification#323
wpbonelli merged 2 commits into
MODFLOW-ORG:developfrom
wpbonelli:dfns-dims

Conversation

@wpbonelli
Copy link
Copy Markdown
Member

Replace separate field and expr attributes on dimension specifications with a single value attribute, which may be

  • an integer field name, e.g. nlay, or
  • len() of a size-unspecified 1D array field, e.g. len(array_field), or
  • a more complex Python-syntax expression combining other dimensions

Previously only sum() and len() were supported in expressions, add support for Python builtins as well as math module functions

@wpbonelli wpbonelli merged commit db09225 into MODFLOW-ORG:develop May 28, 2026
15 checks passed
@wpbonelli wpbonelli deleted the dfns-dims branch May 28, 2026 12:20
@wpbonelli wpbonelli added this to the 1.10.0 milestone May 28, 2026
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.

1 participant