Skip to content

fix(mnw2,mfdatautil): fix qfrcmn/qfrcmx write format and undefined debug name - #2897

Merged
wpbonelli merged 1 commit into
modflowpy:developfrom
agenticeram:fix-mnw2-qfrc-format
Nov 25, 2026
Merged

wpbonelli merged 1 commit into
modflowpy:developfrom
agenticeram:fix-mnw2-qfrc-format

Conversation

@agenticeram

Copy link
Copy Markdown
Contributor

Two small fixes:

  1. ModflowMnw2.write_file(): when qlimit < 0 and qcut != 0, the code builds the format with " {} {}".format(float_format). This has two placeholders but one argument, so it raises IndexError and the file is not written. The format is now float_format + float_format.
  2. mfdatautil.process_open_close_line(): the error path uses debug, which is not defined. It now uses sim_data.debug, like the other calls in the same module.

@codecov

codecov Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 73.8%. Comparing base (556c088) to head (81aa8b4).
⚠️ Report is 267 commits behind head on develop.

Files with missing lines Patch % Lines
flopy/modflow/mfmnw2.py 0.0% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2897      +/-   ##
===========================================
+ Coverage     55.5%    73.8%   +18.3%     
===========================================
  Files          644      659      +15     
  Lines       124135   132487    +8352     
===========================================
+ Hits         68947    97876   +28929     
+ Misses       55188    34611   -20577     
Files with missing lines Coverage Δ
flopy/mf6/data/mfdatautil.py 62.0% <ø> (-16.0%) ⬇️
flopy/modflow/mfmnw2.py 79.2% <0.0%> (-4.7%) ⬇️

... and 584 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 added the bug label Nov 25, 2026
@wpbonelli
wpbonelli merged commit e4265a6 into modflowpy:develop Nov 25, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants