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

Skip to content

fix(HeadFile): fix dis reversal, expand tests#2247

Merged
wpbonelli merged 5 commits into
modflowpy:developfrom
wpbonelli:2246
Jun 25, 2024
Merged

fix(HeadFile): fix dis reversal, expand tests#2247
wpbonelli merged 5 commits into
modflowpy:developfrom
wpbonelli:2246

Conversation

@wpbonelli

@wpbonelli wpbonelli commented Jun 21, 2024

Copy link
Copy Markdown
Member

Fix the write logic for head file reversal to properly write each layer. Add a test for each discretization type. Fix in-place reverse by writing to a temp file first then renaming. Improve docstrings.

@cneyens could you check if this resolves #2246 on your end?

@codecov

codecov Bot commented Jun 21, 2024

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 98.21429% with 1 line in your changes missing coverage. Please review.

Project coverage is 75.7%. Comparing base (9dd66c7) to head (4341c30).

Additional details and impacted files
@@            Coverage Diff            @@
##           develop   #2247     +/-   ##
=========================================
+ Coverage     73.6%   75.7%   +2.0%     
=========================================
  Files          294     294             
  Lines        59029   58909    -120     
=========================================
+ Hits         43476   44624   +1148     
+ Misses       15553   14285   -1268     
Files Coverage Δ
flopy/utils/binaryfile.py 86.4% <98.2%> (+4.3%) ⬆️

... and 142 files with indirect coverage changes

Comment thread flopy/utils/binaryfile.py
@wpbonelli wpbonelli marked this pull request as ready for review June 24, 2024 17:30
@wpbonelli

Copy link
Copy Markdown
Member Author

I did some testing on example models, this seems to work OK for structured and unstructured grids. Feel free to reopen if you still see issues @cneyens.

@wpbonelli wpbonelli merged commit 9db562a into modflowpy:develop Jun 25, 2024
@wpbonelli wpbonelli deleted the 2246 branch June 25, 2024 00:32
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.

bug: reverse Headfile fails for structured grids

2 participants