Skip to content

Commit a450dda

Browse files
fix misplaced docstring
1 parent b7e037e commit a450dda

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/diffpy/labpdfproc/tools.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ 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+
pathlib.PosixPath that contains the full path of the output directory
28+
2929
"""
3030
output_dir = Path(args.output_directory).resolve() if args.output_directory else Path.cwd().resolve()
3131
output_dir.mkdir(parents=True, exist_ok=True)
@@ -110,13 +110,13 @@ def set_wavelength(args):
110110
args argparse.Namespace
111111
the arguments from the parser
112112
113+
we raise an ValueError if the input wavelength is non-positive
114+
or if the input anode_type is not one of the known sources
115+
113116
Returns
114117
-------
115118
args argparse.Namespace
116119
117-
we raise an ValueError if the input wavelength is non-positive
118-
or if the input anode_type is not one of the known sources
119-
120120
"""
121121
if args.wavelength is not None and args.wavelength <= 0:
122122
raise ValueError(

0 commit comments

Comments
 (0)