Package diffpy :: Package Structure :: Package expansion :: Module shapeUtils
[hide private]
[frames] | no frames]

Module shapeUtils

source code

Utilities for making shapes.



Functions [hide private]
 
findCenter(S)
Find the approximate center atom of a structure.
source code
Variables [hide private]
  __id__ = '$Id: shapeUtils.py 2980 2009-04-02 00:14:33Z juhas $'
Function Details [hide private]

findCenter(S)

source code 
Find the approximate center atom of a structure.

The center of the structure is the atom closest to (0.5, 0.5, 0.5)

Returns the index of the atom.