2
2
3
3
from pathlib import Path
4
4
5
- from diffpy .morph .morphapp import create_option_parser , single_morph , multiple_targets , multiple_morphs
5
+ from diffpy .morph .morphapp import (
6
+ create_option_parser ,
7
+ multiple_morphs ,
8
+ multiple_targets ,
9
+ single_morph ,
10
+ )
6
11
7
12
8
13
def morph (file1 , file2 , ** kwargs ):
@@ -32,26 +37,28 @@ def morph(file1, file2, **kwargs):
32
37
(opts , pargs ) = parser .parse_args (inputs )
33
38
pargs = [file1 , file2 ]
34
39
35
- return single_morph (parser , opts , pargs , stdout_flag = False , python_wrap = True )
40
+ return single_morph (
41
+ parser , opts , pargs , stdout_flag = False , python_wrap = True
42
+ )
36
43
37
44
38
45
def morph_multiple_targets (file , dir , ** kwargs ):
39
46
"""Run diffpy.morph with multiple targets at Python level.
40
47
41
- Parameters
42
- ----------
43
- file1: str
44
- Path-like object to the file to be morphed.
45
- file2: str
46
- Path-like object to the target file.
47
- kwargs: dict
48
- See the diffpy.morph manual for options.
49
-
50
- Returns
51
- -------
52
- dict:
53
- Summary of morphs.
54
- """
48
+ Parameters
49
+ ----------
50
+ file1: str
51
+ Path-like object to the file to be morphed.
52
+ file2: str
53
+ Path-like object to the target file.
54
+ kwargs: dict
55
+ See the diffpy.morph manual for options.
56
+
57
+ Returns
58
+ -------
59
+ dict:
60
+ Summary of morphs.
61
+ """
55
62
56
63
parser = create_option_parser ()
57
64
@@ -68,20 +75,20 @@ def morph_multiple_targets(file, dir, **kwargs):
68
75
def morph_multiple_morphs (dir , file , ** kwargs ):
69
76
"""Run diffpy.morph with multiple files morphed at Python level.
70
77
71
- Parameters
72
- ----------
73
- file1: str
74
- Path-like object to the file to be morphed.
75
- file2: str
76
- Path-like object to the target file.
77
- kwargs: dict
78
- See the diffpy.morph manual for options.
79
-
80
- Returns
81
- -------
82
- dict:
83
- Summary of morphs.
84
- """
78
+ Parameters
79
+ ----------
80
+ file1: str
81
+ Path-like object to the file to be morphed.
82
+ file2: str
83
+ Path-like object to the target file.
84
+ kwargs: dict
85
+ See the diffpy.morph manual for options.
86
+
87
+ Returns
88
+ -------
89
+ dict:
90
+ Summary of morphs.
91
+ """
85
92
86
93
parser = create_option_parser ()
87
94
0 commit comments