Skip to content

Release 1.9.2#306

Merged
wpbonelli merged 5 commits intomainfrom
v1.9.2
Apr 20, 2026
Merged

Release 1.9.2#306
wpbonelli merged 5 commits intomainfrom
v1.9.2

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

Release 1.9.2

The release can be approved by merging this pull request into main. This will trigger a job to publish the release to PyPI.

Changelog

Bug fixes

wpbonelli and others added 5 commits March 5, 2026 08:30
Add DfnSpec.dump() and DfnSpec.dumps() methods to serialize the full spec to a single hierarchical TOML blob. This standalone representation might be more convenient than a directory of files for some use cases. E.g., MF6 could emit the entire spec as a TOML blob (MODFLOW-ORG/modflow6#2777) for flopy to generate an MF6 module from, e.g.

mf6 --spec | flopy.mf6.utils.generate_classes -

Also remove the fkeys attribute/concept (field-level foreign keys encoding subpackage attachment) and Ref dataclass. Represent "floating" subpackage relationships (i.e., a subpackage may be attached to one of several possible parent components) instead via the existing Dfn.subcomponents field, which lists the string names of component types a given component can accept as subpackages. This is simpler and more consistent with how fixed-parent hierarchy is already handled via Dfn.children. Also normalize subcomponent abbreviations to lowercase to match component name conventions elsewhere.
@wpbonelli wpbonelli marked this pull request as ready for review April 20, 2026 17:46
@wpbonelli wpbonelli merged commit b3e1f74 into main Apr 20, 2026
@wpbonelli wpbonelli deleted the v1.9.2 branch April 20, 2026 17:46
@wpbonelli wpbonelli restored the v1.9.2 branch April 20, 2026 17:47
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