Skip to content

boundname fixes - #470

Merged
wpbonelli merged 4 commits into
modflowpy:developfrom
wpbonelli:boundname-text
Oct 15, 2026
Merged

wpbonelli merged 4 commits into
modflowpy:developfrom
wpbonelli:boundname-text

Conversation

@wpbonelli

@wpbonelli wpbonelli commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

supersedes #465

@wpbonelli wpbonelli added this to the MVP milestone Oct 15, 2026
@wpbonelli wpbonelli added bug Something isn't working IO Related to loading/writing input/output files labels Oct 15, 2026
@wpbonelli
wpbonelli force-pushed the boundname-text branch 2 times, most recently from 5d6e5bb to 7069b86 Compare October 15, 2026 03:27
@wpbonelli wpbonelli mentioned this pull request Oct 15, 2026
wpbonelli added a commit that referenced this pull request Oct 15, 2026
Some fields are valid only when another option is set, e.g. EVT's petm0 with SURF_RATE_SPECIFIED. The DFNs now have a when attribute (MODFLOW-ORG/modflow-devtools#395) indicating this. Use it

Boundnames move onto the same mechanism after #470
wpbonelli and others added 4 commits October 15, 2026 10:35
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A trailing optional untagged string column (a boundname, a name file's
pname) is absent when left off the line, so an empty one means absent:
convert it to None, the one "no boundname". The generator finds these
columns from the DFNs. Any other string, union string arm or file can't
be empty: MF6 fails on one or gives it no meaning. Supersedes modflowpy#465.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An empty string reads back as nothing, or an error, in most places, so
the writer raises on one, as a backstop to the field validators.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@wpbonelli
wpbonelli marked this pull request as ready for review October 15, 2026 21:10
@wpbonelli
wpbonelli merged commit 995ae0c into modflowpy:develop Oct 15, 2026
28 of 29 checks passed
@wpbonelli
wpbonelli deleted the boundname-text branch October 15, 2026 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working IO Related to loading/writing input/output files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant