Incorrect docstring in Job.update_statepoint #506
Labels
bug
Something isn't working
documentation
Writing or editing documentation
good first issue
Good for newcomers
Milestone
The docstring modified by @cbkerr in #444 has a small error / confusing wording. Here, the
Job.update_statepoint
method claims that settingoverwrite=True
makes the methodupdate_statepoint
act like the methodreset_statepoint
. This is not quite true, and nearly caused me to re-implement the behavior incorrectly while refactoring #497.signac/signac/contrib/job.py
Lines 407 to 408 in 9bb8887
For example, see this minimal reproduction:
Output:
Notice that when
overwrite=True
, theJob.update_statepoint
method acts likedict.update
in its behavior of overwriting values: https://docs.python.org/3/library/stdtypes.html#dict.updateI suggest rewriting the docstring:
This also affects
Project.update_statepoint
.The text was updated successfully, but these errors were encountered: