Skip to content

Drop constructor parameters from Mt3dSft.load's docstring - #2900

Open
dylanpulver wants to merge 1 commit into
modflowpy:developfrom
dylanpulver:docs/mtsft-load-param-list
Open

dylanpulver wants to merge 1 commit into
modflowpy:developfrom
dylanpulver:docs/mtsft-load-param-list

Conversation

@dylanpulver

Copy link
Copy Markdown
Contributor

Mt3dSft.load(cls, f, model, nsfinit, nper, ncomp, ext_unit_dict) documents seven parameters that belong to the constructor rather than to load: isfsolv, wimp, wups, cclosesf, mxitersf, crntsf and iprtxmd. Mt3dSft.__init__ really does take all seven, so the block looks like it was copied across.

import inspect
from flopy.mt3d import Mt3dSft
"isfsolv" in inspect.signature(Mt3dSft.load).parameters      # False
"isfsolv" in inspect.signature(Mt3dSft.__init__).parameters  # True

load takes no **kwargs, so those keywords raise TypeError rather than being ignored. I removed the entries rather than rewriting them, since the three that remain (f, model, nsfinit) are correct and the constructor already documents all seven properly.

Noted but not changed: nper, ncomp and ext_unit_dict are real arguments of load and are undocumented. Happy to add them in this PR if you would like, I just did not want to guess at the wording.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

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.

1 participant