Skip to content

fix(dfns): admit utl-obs under models and make it single-instance - #384

Merged
wpbonelli merged 1 commit into
MODFLOW-ORG:developfrom
wpbonelli:obs-model-parent
Oct 7, 2026
Merged

wpbonelli merged 1 commit into
MODFLOW-ORG:developfrom
wpbonelli:obs-model-parent

Conversation

@wpbonelli

Copy link
Copy Markdown
Member

Model name files can have observation files in their packages block but this was missed in #381. Set utl-obs parent = ["model", "package"]. Also obs packages are not really multipackages.

Model name files with observation types (chf, gwe, gwf, gwt, olf) read
an OBS6 file from their packages block, so treat them as linkers of
utl-obs in link_components. Its derived parent becomes
["model", "package"].

MF6 reads at most one OBS6 per parent (packages error on a second,
models keep the last), so override flopy3's multi-package header for
utl-obs: multi is now false.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@wpbonelli wpbonelli added this to the 1.10.0 milestone Oct 7, 2026
@wpbonelli wpbonelli added the bug Something isn't working label Oct 7, 2026
@wpbonelli
wpbonelli marked this pull request as ready for review October 7, 2026 20:07
@wpbonelli
wpbonelli merged commit 5f40fbc into MODFLOW-ORG:develop Oct 7, 2026
15 checks passed
@wpbonelli
wpbonelli deleted the obs-model-parent branch October 7, 2026 20:08
wpbonelli added a commit to modflowpy/pyphoenix-project that referenced this pull request Oct 8, 2026
Bump devtools for MODFLOW-ORG/modflow-devtools#384, which admits utl-obs for models and makes it single-instance. Remove the special casing from #417. Skip models without obs (e.g. prt)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant