Repository navigation
docs(mf6): name append_list_as_record's record argument - #2904
Open
dylanpulver wants to merge 1 commit into
Open
dylanpulver wants to merge 1 commit into
dylanpulver wants to merge 1 commit into
Conversation
The base class at mfdatalist.py:702 and the same override in mfdataplist.py both already document it as record.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #2904 +/- ##
===========================================
+ 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 changing "Assumes data has the correct dimensions" and L704 to record too
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
MFTransientList.append_list_as_record(self, record, key=0)documents its first parameter asdata, soappend_list_as_record(data=[...])raisesTypeError.The right name is not a guess — the repo answers it twice:
mfdatalist.py:702, the base-classappend_list_as_recordin the same file, documentsrecord : listand its summary reads "Appends the listrecord".mfdataplist.py:2537, the same transient override on the pandas-backed list, also already documentsrecord : list.So
mfdatalist.py:2139is the one site that still saysdata. This renames that entry and the matching reference in the summary line.What I left alone
The second sentence, "Assumes
datahas the correct dimensions", still saysdata. I left it because the base class at:704reads exactly the same way after its own rename — it says "Appends the listrecord" and then 'Assumes "data" has the correct dimensions' — so that sentence looks like a loose reference to the list's contents rather than to the argument. If you read it as the argument too, say so and I will change it in both places.Checks
ruff check --force-excludeandruff format --check --force-excludeboth pass on the changed file. The--force-excludeis deliberate:[tool.ruff.format]excludesflopy/mf6/**/*.py, and passing a path explicitly without it bypasses your own exclude and reports a pre-existing diff CI never sees.Docstring text only; I did not run the test suite.
🤖 Generated with Claude Code