Repository navigation
Drop constructor parameters from Mt3dSft.load's docstring - #2900
Open
dylanpulver wants to merge 1 commit into
Open
dylanpulver wants to merge 1 commit into
dylanpulver wants to merge 1 commit into
Conversation
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.
Mt3dSft.load(cls, f, model, nsfinit, nper, ncomp, ext_unit_dict)documents seven parameters that belong to the constructor rather than toload:isfsolv,wimp,wups,cclosesf,mxitersf,crntsfandiprtxmd.Mt3dSft.__init__really does take all seven, so the block looks like it was copied across.loadtakes no**kwargs, so those keywords raiseTypeErrorrather 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,ncompandext_unit_dictare real arguments ofloadand 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