|
2 | 2 |
|
3 | 3 | import numpy as np |
4 | 4 |
|
5 | | -from diffpy.morph.morphapp import ( |
6 | | - create_option_parser, |
7 | | - multiple_morphs, |
8 | | - multiple_targets, |
9 | | - single_morph, |
10 | | -) |
| 5 | +from diffpy.morph.morphapp import create_option_parser, single_morph |
11 | 6 |
|
12 | 7 |
|
13 | 8 | def get_args(parser, params, kwargs): |
@@ -48,15 +43,18 @@ def morph( |
48 | 43 | smear: float, optional |
49 | 44 | Initial guess for the smearing parameter. |
50 | 45 | plot: bool |
51 | | - Show a plot of the morphed and target functions as well as the difference curve (default: False). |
| 46 | + Show a plot of the morphed and target functions as well as the |
| 47 | + difference curve (default: False). |
52 | 48 | kwargs: dict |
53 | 49 | See the diffpy.morph website for full list of options. |
54 | 50 | Returns |
55 | 51 | ------- |
56 | 52 | morph_info: dict |
57 | | - Summary of morph parameters (e.g. scale, stretch, smear, rmin, rmax) and results (e.g. Pearson, Rw). |
| 53 | + Summary of morph parameters (e.g. scale, stretch, smear, rmin, rmax) |
| 54 | + and results (e.g. Pearson, Rw). |
58 | 55 | morph_table: list |
59 | | - Function after morph where morph_table[:,0] is the abscissa and morph_table[:,1] is the ordinate. |
| 56 | + Function after morph where morph_table[:,0] is the abscissa and |
| 57 | + morph_table[:,1] is the ordinate. |
60 | 58 | """ |
61 | 59 |
|
62 | 60 | parser = create_option_parser() |
@@ -99,15 +97,18 @@ def morphpy( |
99 | 97 | smear: float, optional |
100 | 98 | Initial guess for the smearing parameter. |
101 | 99 | plot: bool |
102 | | - Show a plot of the morphed and target functions as well as the difference curve (default: False). |
| 100 | + Show a plot of the morphed and target functions as well as the |
| 101 | + difference curve (default: False). |
103 | 102 | kwargs: dict |
104 | 103 | See the diffpy.morph website for full list of options. |
105 | 104 | Returns |
106 | 105 | ------- |
107 | 106 | morph_info: dict |
108 | | - Summary of morph parameters (e.g. scale, stretch, smear, rmin, rmax) and results (e.g. Pearson, Rw). |
| 107 | + Summary of morph parameters (e.g. scale, stretch, smear, rmin, rmax) |
| 108 | + and results (e.g. Pearson, Rw). |
109 | 109 | morph_table: list |
110 | | - Function after morph where morph_table[:,0] is the abscissa and morph_table[:,1] is the ordinate. |
| 110 | + Function after morph where morph_table[:,0] is the abscissa and |
| 111 | + morph_table[:,1] is the ordinate. |
111 | 112 | """ |
112 | 113 |
|
113 | 114 | parser = create_option_parser() |
|
0 commit comments