Skip to content

fix(dfns): migrate file records in lists - #370

Merged
wpbonelli merged 1 commit into
MODFLOW-ORG:developfrom
wpbonelli:fix-fmi-file-records
Oct 1, 2026
Merged

wpbonelli merged 1 commit into
MODFLOW-ORG:developfrom
wpbonelli:fix-fmi-file-records

Conversation

@wpbonelli

Copy link
Copy Markdown
Member

the migration missed file records in lists (FMI packagedata, SSM fileinput, LAK tables, SFR crosssections), fix it

The v2 migration only folded `FILEIN|FILEOUT <path>` into a File field for
`record` fields, so recarray items with the same pattern (FMI packagedata,
SSM fileinput, LAK tables, SFR crosssections) kept separate keyword and
string subfields. prt-fmi was instead hand-rewritten into three bare File
fields, unlike gwt-fmi/gwe-fmi.

Share file record detection between records and recarray items, take the
path from the first untagged string after the mode keyword (FMI's leading
flowtype is a variable tag, not the path), restrict subfield lookups to the
field's block, and drop the prt-fmi special case.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@wpbonelli wpbonelli added this to the 1.10.0 milestone Oct 1, 2026
@wpbonelli wpbonelli added the bug Something isn't working label Oct 1, 2026
@wpbonelli
wpbonelli marked this pull request as ready for review October 1, 2026 21:36
@wpbonelli
wpbonelli merged commit 5ccda6d into MODFLOW-ORG:develop Oct 1, 2026
16 checks passed
@wpbonelli
wpbonelli deleted the fix-fmi-file-records branch October 1, 2026 22:19
wpbonelli added a commit to modflowpy/pyphoenix-project that referenced this pull request Oct 2, 2026
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