@@ -27,7 +27,7 @@ Python Morphing Functions
27
27
28
28
3. Finally, we run the ``morph `` function ::
29
29
30
- morph_info, morph_table = morph("darkSub_rh20_C_01.gr", "darkSub_rh20_C_44.gr", scale=0.8, smear=-0.08, stretch=0.5 , rmin=1.5, rmax=30)
30
+ morph_info, morph_table = morph("darkSub_rh20_C_01.gr", "darkSub_rh20_C_44.gr", scale=0.8, smear=-0.08, stretch=0.005 , rmin=1.5, rmax=30)
31
31
32
32
* The ``morph`` function takes in two file names (or paths). You can also provide various parameters
33
33
for morphing (see the Full Parameter List below).
@@ -38,7 +38,8 @@ Python Morphing Functions
38
38
39
39
* ``morph_info `` contains all morphs as keys (e.g. ``"scale" ``, ``"stretch" ``, ``"smear" ``) with
40
40
the optimized morphing parameters found by ``diffpy.morph `` as values. ``morph_info `` also contains
41
- the Rw and Pearson correlation coefficients found post-morphing.
41
+ the Rw and Pearson correlation coefficients found post-morphing. Try printing ``print(morph_info) ``
42
+ and compare the values stored in this dictionary to those given by the CLI output!
42
43
* ``morph_table `` is a two-column array of the morphed function interpolated onto the grid of the
43
44
target function (e.g. in our example, it returns the contents of `darkSub_rh20_C_01.gr ` after
44
45
the morphs are applied interpolated onto the grid of `darkSub_rh20_C_44.gr `).
@@ -61,7 +62,7 @@ Python Morphing Functions
61
62
9. Notice that the two-column format of the input to ``morph_arrays `` is the same as the
62
63
output of ``morph `` and ``morph_arrays ``. It is VERY IMPORTANT that the data is in two-column format
63
64
rather than the traditional two-row format. This is to reflect the file formats conventionally
64
- used to store PDFs.
65
+ used to store PDFs. Again, try printing `` print(morph_info) `` and compare!
65
66
10. For a full list of parameters used by (both) ``morph `` and ``morph_arrays ``, see the Full Parameter List
66
67
section below.
67
68
0 commit comments