@@ -79,7 +79,8 @@ def set_output_directory(args):
79
79
80
80
81
81
def _expand_user_input (args ):
82
- """Expand the list of inputs by adding files from file lists and wildcards.
82
+ """Expand the list of inputs by adding files from file lists and
83
+ wildcards.
83
84
84
85
Parameters
85
86
----------
@@ -115,9 +116,9 @@ def _expand_user_input(args):
115
116
116
117
117
118
def set_input_lists (args ):
118
- """Set input directory and files. It takes cli inputs, checks if they are
119
- files or directories and creates a list of files to be processed which is
120
- stored in the args Namespace.
119
+ """Set input directory and files. It takes cli inputs, checks if
120
+ they are files or directories and creates a list of files to be
121
+ processed which is stored in the args Namespace.
121
122
122
123
Parameters
123
124
----------
@@ -278,8 +279,8 @@ def set_wavelength(args):
278
279
279
280
280
281
def set_xtype (args ):
281
- """Set the xtype based on the given input arguments, raise an error if
282
- xtype is not one of {*XQUANTITIES, }.
282
+ """Set the xtype based on the given input arguments, raise an error
283
+ if xtype is not one of {*XQUANTITIES, }.
283
284
284
285
Parameters
285
286
----------
@@ -334,8 +335,8 @@ def _parse_theoretical_input(input_str):
334
335
335
336
336
337
def _set_theoretical_mud_from_density (args ):
337
- """Theoretical estimation of mu*D from sample composition, energy, and
338
- sample mass density."""
338
+ """Theoretical estimation of mu*D from sample composition, energy,
339
+ and sample mass density."""
339
340
sample_composition , energy , sample_mass_density = _parse_theoretical_input (
340
341
args .theoretical_from_density
341
342
)
@@ -351,8 +352,8 @@ def _set_theoretical_mud_from_density(args):
351
352
352
353
353
354
def _set_theoretical_mud_from_packing (args ):
354
- """Theoretical estimation of mu*D from sample composition, energy, and
355
- packing fraction."""
355
+ """Theoretical estimation of mu*D from sample composition, energy,
356
+ and packing fraction."""
356
357
sample_composition , energy , packing_fraction = _parse_theoretical_input (
357
358
args .theoretical_from_packing
358
359
)
@@ -404,8 +405,8 @@ def _load_key_value_pair(s):
404
405
405
406
406
407
def load_user_metadata (args ):
407
- """Load user metadata into args, raise ValueError if it is in incorrect
408
- format.
408
+ """Load user metadata into args, raise ValueError if it is in
409
+ incorrect format.
409
410
410
411
Parameters
411
412
----------
@@ -445,8 +446,9 @@ def load_user_metadata(args):
445
446
446
447
def load_user_info (args ):
447
448
"""Load user info into args. If none is provided, call
448
- check_and_build_global_config function from diffpy.utils to prompt the user
449
- for inputs. Otherwise, call get_user_info with the provided arguments.
449
+ check_and_build_global_config function from diffpy.utils to prompt
450
+ the user for inputs. Otherwise, call get_user_info with the provided
451
+ arguments.
450
452
451
453
Parameters
452
454
----------
@@ -493,9 +495,9 @@ def load_package_info(args):
493
495
494
496
495
497
def preprocessing_args (args ):
496
- """Perform preprocessing on the provided args. The process includes loading
497
- package and user information, setting input, output, wavelength, anode
498
- type, xtype, mu*D, and loading user metadata.
498
+ """Perform preprocessing on the provided args. The process includes
499
+ loading package and user information, setting input, output,
500
+ wavelength, anode type, xtype, mu*D, and loading user metadata.
499
501
500
502
Parameters
501
503
----------
@@ -519,8 +521,8 @@ def preprocessing_args(args):
519
521
520
522
521
523
def load_metadata (args , filepath ):
522
- """Load the relevant metadata from args to write into the header of the
523
- output files.
524
+ """Load the relevant metadata from args to write into the header of
525
+ the output files.
524
526
525
527
Parameters
526
528
----------
0 commit comments