Skip to content

docs(mf6): name append_list_as_record's record argument - #2904

Open
dylanpulver wants to merge 1 commit into
modflowpy:developfrom
dylanpulver:docs/append-list-as-record-param
Open

dylanpulver wants to merge 1 commit into
modflowpy:developfrom
dylanpulver:docs/append-list-as-record-param

Conversation

@dylanpulver

Copy link
Copy Markdown
Contributor

The claim

MFTransientList.append_list_as_record(self, record, key=0) documents its first parameter as data, so append_list_as_record(data=[...]) raises TypeError.

The right name is not a guess — the repo answers it twice:

  • mfdatalist.py:702, the base-class append_list_as_record in the same file, documents record : list and its summary reads "Appends the list record".
  • mfdataplist.py:2537, the same transient override on the pandas-backed list, also already documents record : list.

So mfdatalist.py:2139 is the one site that still says data. This renames that entry and the matching reference in the summary line.

What I left alone

The second sentence, "Assumes data has the correct dimensions", still says data. I left it because the base class at :704 reads exactly the same way after its own rename — it says "Appends the list record" 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-exclude and ruff format --check --force-exclude both pass on the changed file. The --force-exclude is deliberate: [tool.ruff.format] excludes flopy/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

The base class at mfdatalist.py:702 and the same override in mfdataplist.py
both already document it as record.
@codecov

codecov Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Codecov Report

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

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     
Files with missing lines Coverage Δ
flopy/mf6/data/mfdatalist.py 64.2% <ø> (-5.2%) ⬇️

... and 585 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 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggest changing "Assumes data has the correct dimensions" and L704 to record too

@wpbonelli wpbonelli changed the title fix(mf6): name append_list_as_record's record argument docs(mf6): name append_list_as_record's record argument Nov 29, 2026

This branch has not been deployed

No deployments
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.

2 participants