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

Module TestShapeFactors

source code

Unit tests for particle shape envelope factors.

Classes [hide private]
  TestSphereEnvelope
  TestStepCutEnvelope
Functions [hide private]
 
spherefactor(r, d)
Calculate spherical envelope correction
source code
Variables [hide private]
  __package__ = 'diffpy.pdffit2.tests'

Imports: unittest, numpy, PdfFit, pdffit2, datafile


Function Details [hide private]

spherefactor(r, d)

source code 
Calculate spherical envelope correction

r -- PDF radius
d -- diameter of spherical particle

Return numpy array of shape correction envelope.