Package diffpy :: Package Structure :: Module SymmetryUtilities :: Class _Position2Tuple
[hide private]
[frames] | no frames]

Class _Position2Tuple

source code

Create callable object that converts fractional coordinates to
a tuple of integers with given precision.  For presision close to zero
it will return a tuples of double.

Note: Helper class intended for local use only.

Data members:

eps -- cutoff for equivalent coordinates.  When two coordiantes map to the
       same tuple, they are closer than eps.



Instance Methods [hide private]
 
__init__(self, eps=1e-05)
Initialize _Position2Tuple...
source code
 
__call__(self, xyz)
Convert array of fractional coordinates to a tuple.
source code
Method Details [hide private]

__init__(self, eps=1e-05)
(Constructor)

source code 
Initialize _Position2Tuple

eps -- cutoff for equivalent coordinates

__call__(self, xyz)
(Call operator)

source code 
Convert array of fractional coordinates to a tuple.

xyz -- fractional coordinates

Return a tuple of 3 numbers.