-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert general submodule docstrings to numpydoc (#53)
* convert general submodule docstrings to numpydoc * update docstring of is_even
- Loading branch information
Showing
6 changed files
with
329 additions
and
103 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,18 @@ | ||
def append_to_pathlib_stem(path, string_to_append): | ||
""" | ||
Appends a string to the stem of a pathlib object | ||
:param path: pathlib path | ||
:param string_to_append: string to append to the stem | ||
:return: pathlib object with the string added to the stem | ||
Appends a string to the stem of a pathlib object. | ||
Parameters | ||
---------- | ||
path : pathlib.Path | ||
Pathlib path. | ||
string_to_append : str | ||
String to append to the stem. | ||
Returns | ||
------- | ||
pathlib.Path | ||
Pathlib object with the string added to the stem. | ||
""" | ||
return path.parent / (path.stem + string_to_append + path.suffix) |
This file contains 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
Oops, something went wrong.