Package diffpy :: Package pdffit2 :: Module pdffit
[hide private]
[frames] | no frames]

Module pdffit

source code

PdfFit class for fitting pdf data to a model.

Classes [hide private]
  PdfFit
Create PdfFit object.
Functions [hide private]
 
_format_value_std(value, stdev)
Convert value to a string with standard deviation in brackets.
source code
 
_format_bond_length(dij, ddij, ij1, symij)
Return string with formatted bond length info for a pair of atoms.
source code
 
_convertCallable(var)
Convert an object to the result of its call when callable.
source code
Variables [hide private]
  __intro_message__ = '\n***************************************...
  __package__ = 'diffpy.pdffit2'

Imports: types, pdffit2, output


Function Details [hide private]

_format_value_std(value, stdev)

source code 
Convert value to a string with standard deviation in brackets.

value -- a number
stdev -- standard deviation.  Ignored when small compared to value.

Return string.

_format_bond_length(dij, ddij, ij1, symij)

source code 
Return string with formatted bond length info for a pair of atoms.

dij     -- distance between atoms i and j
ddij    -- standard deviation of dij.  Ignored when small relative to dij.
ij1     -- tuple of atom indices starting at 1
symij   -- tuple of atom symbols

Return formatted string.

_convertCallable(var)

source code 
Convert an object to the result of its call when callable.

var -- string or callable object that returns string

Return var or var().


Variables Details [hide private]

__intro_message__

Value:
'''
**********************************************************************\
********
*                      P D F F I T   Version   %(version)s            \
       *
*                                              %(date)s               \
       *
* --------------------------------------------------------------------\
...