Skip to content

Commit 224bf0f

Browse files
authored
Merge pull request #96 from yucongalicechen/fix2
correct output directory docstring
2 parents 1fc8aa3 + 5babc44 commit 224bf0f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/diffpy/labpdfproc/tools.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,14 @@ def set_output_directory(args):
1717
args argparse.Namespace
1818
the arguments from the parser
1919
20-
Returns
21-
-------
22-
pathlib.PosixPath that contains the full path of the output directory
23-
2420
it is determined as follows:
2521
If user provides an output directory, use it.
2622
Otherwise, we set it to the current directory if nothing is provided.
2723
We then create the directory if it does not exist.
2824
25+
Returns
26+
-------
27+
a Path object that contains the full path of the output directory
2928
"""
3029
output_dir = Path(args.output_directory).resolve() if args.output_directory else Path.cwd().resolve()
3130
output_dir.mkdir(parents=True, exist_ok=True)

0 commit comments

Comments
 (0)