Changeset 3380 for trunk/GSASIIspc.py


Ignore:
Timestamp:
May 11, 2018 2:40:06 PM (7 years ago)
Author:
vondreele
Message:

Add several text blocks to tutorial listing & switch format to display them.
fix bug involving new restraint layout & an old gpx file.
add GetLittleGrpOps? routine to G2spc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/GSASIIspc.py ΒΆ

    r3379 r3380  
    17271727        print (l)
    17281728       
     1729def GetLittleGrpOps(SGData,vec):
     1730    ''' Find rotation part of operators that leave vec unchanged
     1731   
     1732    :param SGData: space group data structure as defined in SpcGroup above.
     1733    :param vec: a numpy array of fractional vector coordinates
     1734    '''
     1735    Little = []
     1736    for [M,T] in SGData['SGOps']:
     1737        if np.allclose(np.inner(M,vec),vec):
     1738            Little.append([M,T])
     1739    return Little
     1740       
    17291741def SGProd(OpA,OpB):
    17301742    '''
Note: See TracChangeset for help on using the changeset viewer.