Repository navigation
docs(util_array): drop Util3d docstring entries taken from its siblings - #2905
Open
dylanpulver wants to merge 1 commit into
Open
dylanpulver wants to merge 1 commit into
dylanpulver wants to merge 1 commit into
Conversation
Util2d, Transient2d and Transient3d all take ext_filename and bin. Util3d does not; it takes ext_unit_dict instead.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #2905 +/- ##
===========================================
+ Coverage 55.5% 73.8% +18.3%
===========================================
Files 644 659 +15
Lines 124135 132487 +8352
===========================================
+ Hits 68947 97880 +28933
+ Misses 55188 34607 -20581
🚀 New features to boost your workflow:
|
wpbonelli
approved these changes
Nov 29, 2026
wpbonelli
left a comment
Member
There was a problem hiding this comment.
suggest just including array_free_format
array_free_format : bool, optional
whether array control records use free format. Defaults to the
model's setting.
I wouldn't bother with ext_unit_dict. We can handle the other points separately, thank you for the heads up.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The claim
Util3d's docstring documentsext_filenameandbin, andUtil3dtakes neither:Its three siblings in the same file do take them, which is where the entries came from:
ext_filename/binUtil2d(:1787)Transient2d(:1302)Transient3d(:989)Util3d(:449)ext_unit_dictinsteadSo this is not a missing feature.
Util3ddeliberately differs from the other three: where they take an explicit external filename, it takesext_unit_dict. The two entries are the paste that did not get trimmed.What I did not do
Util3dhas two real arguments that are not documented at all:ext_unit_dictandarray_free_format.array_free_formatis documented onUtil2dand could presumably be copied across, butext_unit_dictis the one that makesUtil3ddifferent from its siblings and I would be guessing at how you would describe it. Tell me and I will add both.Checks
ruff check --force-excludepasses andruff format --check --force-excludereports the file already formatted. (--force-excludebecause[tool.ruff.format]excludesflopy/mf6/**; naming paths explicitly without it overrides your own exclude list. Not relevant for this file, but I run both the same way everywhere.)Eight deleted lines, docstring only. I did not run the test suite.
One more I am not touching, because it may be the opposite problem
utils/compare.py:1192—compare_stagesdocumentsprecisionand does not accept it, and at first glance it looks like the same paste:compare_heads(:566) andcompare_concentrations(:948) both takeprecision="auto"and carry the identical two lines of text.But
SwrStage.__init__(self, filename, precision="double", verbose=False)does take a precision, andcompare_stagescallsSwrStage(sfpth1, verbose=verbose)without one, so it silently compares at double precision. That makes the docstring entry a plausible record of a parameter the function was meant to expose, not just leftover text. Adding it is an API change and your call — I would rather ask than delete the evidence of it.🤖 Generated with Claude Code