Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix: Strip quotes from filenames in OPEN/CLOSE statements (when present) making ulstrd function a bit more forgiving with external input files#2545

Merged
wpbonelli merged 1 commit into
modflowpy:developfrom
whcollab-proj:fix-open-close-quoted-filenames
Jul 15, 2025
Merged

Fix: Strip quotes from filenames in OPEN/CLOSE statements (when present) making ulstrd function a bit more forgiving with external input files#2545
wpbonelli merged 1 commit into
modflowpy:developfrom
whcollab-proj:fix-open-close-quoted-filenames

Conversation

@whcollab-proj

Copy link
Copy Markdown
Contributor

This PR adds a small safety fix to handle filenames in OPEN/CLOSE lines that are surrounded by quotes, which can sometimes be present in MODFLOW input files. For example:

OPEN/CLOSE 'external_data.dat'
OPEN/CLOSE "external_data.dat"

If that is the case, in the attempt to load the data we might get an error similar to the following:

Package.load() error: open/close filename /.../'external_data.dat' not found

@codecov

codecov Bot commented Jul 14, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 55.9%. Comparing base (556c088) to head (e5f6c8d).
⚠️ Report is 141 commits behind head on develop.

Additional details and impacted files
@@            Coverage Diff             @@
##           develop    #2545     +/-   ##
==========================================
+ Coverage     55.5%    55.9%   +0.4%     
==========================================
  Files          644      640      -4     
  Lines       124135   123800    -335     
==========================================
+ Hits         68947    69266    +319     
+ Misses       55188    54534    -654     
Files with missing lines Coverage Δ
flopy/utils/flopy_io.py 75.4% <100.0%> (+<0.1%) ⬆️

... and 68 files with indirect coverage changes

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

Comment thread flopy/utils/flopy_io.py
@wpbonelli wpbonelli merged commit 21dd1c1 into modflowpy:develop Jul 15, 2025
19 of 20 checks passed
@whcollab-proj whcollab-proj deleted the fix-open-close-quoted-filenames branch July 17, 2025 14:15
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.

3 participants