3232 FitRecipe ,
3333 FitResults ,
3434 Profile ,
35+ ProfileParser ,
3536)
36- from diffpy .srfit .pdf import PDFGenerator , PDFParser
37+ from diffpy .srfit .pdf import PDFGenerator
3738from diffpy .structure import Structure
3839
3940######
@@ -48,12 +49,12 @@ def makeRecipe(ciffile, datname):
4849 profile = Profile ()
4950
5051 # Load data and add it to the Profile. Unlike in other examples, we use a
51- # class (PDFParser ) to help us load the data. This class will read the data
52- # and relevant metadata from a two- to four-column data file generated
52+ # class (ProfileParser ) to help us load the data. This class will read the
53+ # data and relevant metadata from a two- to four-column data file generated
5354 # with PDFGetX2 or PDFGetN. The metadata will be passed to the PDFGenerator
5455 # when they are associated in the FitContribution, which saves some
5556 # configuration steps.
56- parser = PDFParser ()
57+ parser = ProfileParser ()
5758 parser .parseFile (datname )
5859 profile .load_parsed_data (parser )
5960 profile .set_calculation_range (xmax = 20 )
@@ -62,7 +63,8 @@ def makeRecipe(ciffile, datname):
6263 # The PDFGenerator is for configuring and calculating a PDF profile. Here,
6364 # we want to refine a Structure object from diffpy.structure. We tell the
6465 # PDFGenerator that with the 'setStructure' method. All other configuration
65- # options will be inferred from the metadata that is read by the PDFParser.
66+ # options will be inferred from the metadata that is read by the
67+ # ProfileParser.
6668 # In particular, this will set the scattering type (x-ray or neutron), the
6769 # Qmax value, as well as initial values for the non-structural Parameters.
6870 generator = PDFGenerator ("G" )
0 commit comments