5454def Gpdffit2 (qmax ):
5555 """Calculate reference nickel PDF using diffpy.pdffit2.
5656
57- qmax -- vawevector cutoff value in 1/A
57+ Attributes
58+ ----------
59+ qmax
60+ vawevector cutoff value in 1/A
5861
5962 Return numpy array of (r, g).
6063 """
@@ -70,9 +73,13 @@ def Gpdffit2(qmax):
7073def Gsrreal (qmax , peakprecision = None ):
7174 """Calculate nickel PDF using PDFCalculator from diffpy.srreal.
7275
73- qmax -- vawevector cutoff value in 1/A
74- peakprecision -- precision factor affecting peak cutoff,
75- keep at default value when None.
76+ Attributes
77+ ----------
78+ qmax
79+ vawevector cutoff value in 1/A
80+ peakprecision
81+ precision factor affecting peak cutoff,
82+ keep at default value when None.
7683
7784 Return numpy array of (r, g).
7885 """
@@ -91,19 +98,30 @@ def Gsrreal(qmax, peakprecision=None):
9198def comparePDFCalculators (qmax , peakprecision = None ):
9299 """Compare Ni PDF calculations with pdffit2 and PDFCalculator.
93100
94- qmax -- vawevector cutoff value in 1/A
95- peakprecision -- precision factor affecting peak cutoff,
96- keep at default value when None.
101+ Attributes
102+ ----------
103+ qmax
104+ vawevector cutoff value in 1/A
105+ peakprecision
106+ precision factor affecting peak cutoff,
107+ keep at default value when None.
97108
98109 Return a dictionary of benchmark results with the following keys:
99110
100- qmax -- vawevector cutoff value
101- peakprecision -- actual peak precision used in PDFCalculator
102- r -- common r-grid for the PDF arrays
103- g0, g1 -- calculated PDF curves from pdffit2 and PDFCalculator
104- gdiff -- PDF difference equal (g0 - g1)
105- grmsd -- root mean square value of PDF curves difference
106- t0, t1 -- CPU times used by pdffit2 and PDFCalculator calls
111+ Attributes
112+ ----------
113+ qmax
114+ vawevector cutoff value
115+ peakprecision
116+ actual peak precision used in PDFCalculator
117+ r
118+ common r-grid for the PDF arrays
119+ g0, g1 -- calculated PDF curves from pdffit2 and PDFCalculator
120+ gdiff
121+ PDF difference equal (g0 - g1)
122+ grmsd
123+ root mean square value of PDF curves difference
124+ t0, t1 -- CPU times used by pdffit2 and PDFCalculator calls
107125 """
108126 rv = {}
109127 rv ["qmax" ] = qmax
@@ -147,7 +165,10 @@ def processCommandLineArguments():
147165def plotComparison (cmpdata ):
148166 """Plot comparison of PDF curves.
149167
150- cmpdata -- dictionary returned from comparePDFCalculators
168+ Attributes
169+ ----------
170+ cmpdata
171+ dictionary returned from comparePDFCalculators
151172
152173 No return value.
153174 """
0 commit comments