Skip to content

fix(mf6): omit removed fields from generated code - #2804

Merged
wpbonelli merged 4 commits into
modflowpy:developfrom
wpbonelli:fix-codegen
Aug 12, 2026
Merged

fix(mf6): omit removed fields from generated code#2804
wpbonelli merged 4 commits into
modflowpy:developfrom
wpbonelli:fix-codegen

Conversation

@wpbonelli

@wpbonelli wpbonelli commented Aug 11, 2026

Copy link
Copy Markdown
Member

Filter out fields marked in DFNs as removed from the generated classes in the MF6 module. Before, removed fields were included in the generated classes and would be written to input files, which would cause MF6 to raise an error.

And remove usages of options recently been removed from MF6.

@wpbonelli wpbonelli added this to the 3.11 milestone Aug 11, 2026
@wpbonelli wpbonelli added the bug label Aug 11, 2026
@codecov

codecov Bot commented Aug 11, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 71.6%. Comparing base (556c088) to head (f185c29).
⚠️ Report is 197 commits behind head on develop.

Files with missing lines Patch % Lines
flopy/mf6/utils/codegen/__init__.py 0.0% 2 Missing ⚠️
flopy/mf6/mfmodel.py 0.0% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2804      +/-   ##
===========================================
+ Coverage     55.5%    71.6%   +16.0%     
===========================================
  Files          644      661      +17     
  Lines       124135   132990    +8855     
===========================================
+ Hits         68947    95243   +26296     
+ Misses       55188    37747   -17441     
Files with missing lines Coverage Δ
flopy/mf6/utils/codegen/filters.py 0.0% <ø> (ø)
flopy/mf6/mfmodel.py 57.3% <0.0%> (-23.6%) ⬇️
flopy/mf6/utils/codegen/__init__.py 0.0% <0.0%> (ø)

... and 580 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@wpbonelli
wpbonelli merged commit 78ab37d into modflowpy:develop Aug 12, 2026
17 of 20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant