22
33from pathlib import Path
44
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+ )
611
712
813def morph (file1 , file2 , ** kwargs ):
@@ -32,26 +37,28 @@ def morph(file1, file2, **kwargs):
3237 (opts , pargs ) = parser .parse_args (inputs )
3338 pargs = [file1 , file2 ]
3439
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+ )
3643
3744
3845def morph_multiple_targets (file , dir , ** kwargs ):
3946 """Run diffpy.morph with multiple targets at Python level.
4047
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+ """
5562
5663 parser = create_option_parser ()
5764
@@ -68,20 +75,20 @@ def morph_multiple_targets(file, dir, **kwargs):
6875def morph_multiple_morphs (dir , file , ** kwargs ):
6976 """Run diffpy.morph with multiple files morphed at Python level.
7077
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+ """
8592
8693 parser = create_option_parser ()
8794
0 commit comments