File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -17,15 +17,15 @@ def set_output_directory(args):
17
17
args argparse.Namespace
18
18
the arguments from the parser
19
19
20
- Returns
21
- -------
22
- pathlib.PosixPath that contains the full path of the output directory
23
-
24
20
it is determined as follows:
25
21
If user provides an output directory, use it.
26
22
Otherwise, we set it to the current directory if nothing is provided.
27
23
We then create the directory if it does not exist.
28
24
25
+ Returns
26
+ -------
27
+ pathlib.PosixPath that contains the full path of the output directory
28
+
29
29
"""
30
30
output_dir = Path (args .output_directory ).resolve () if args .output_directory else Path .cwd ().resolve ()
31
31
output_dir .mkdir (parents = True , exist_ok = True )
@@ -110,13 +110,13 @@ def set_wavelength(args):
110
110
args argparse.Namespace
111
111
the arguments from the parser
112
112
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
+
113
116
Returns
114
117
-------
115
118
args argparse.Namespace
116
119
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
-
120
120
"""
121
121
if args .wavelength is not None and args .wavelength <= 0 :
122
122
raise ValueError (
You can’t perform that action at this time.
0 commit comments