Changeset 2328 for trunk/GSASIImath.py


Ignore:
Timestamp:
Jun 16, 2016 4:06:26 PM (7 years ago)
Author:
vondreele
Message:

seq dist table entries & plot now have sus computed from v-cov matrix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIImath.py

    r2327 r2328  
    15281528#    GSASIIpath.IPyBreak()
    15291529    return dist   
     1530   
     1531def CalcDistDeriv(distance_dict, distance_atoms, parmDict):
     1532    if not len(parmDict):
     1533        return None
     1534    pId = distance_dict['pId']
     1535    pfx = '%d::'%(pId)
     1536    A = [parmDict['%s::A%d'%(pId,i)] for i in range(6)]
     1537    Amat = G2lat.cell2AB(G2lat.A2cell(A))[0]
     1538    Oxyz = [parmDict['%s::A%s:%d'%(pId,x,distance_atoms[0])] for x in ['x','y','z']]
     1539    Txyz = [parmDict['%s::A%s:%d'%(pId,x,distance_atoms[1])] for x in ['x','y','z']]
     1540    inv = 1
     1541    symNo = distance_dict['symNo']
     1542    Tunit = distance_dict['cellNo']
     1543    SGData = distance_dict['SGData']   
     1544    deriv = getDistDerv(Oxyz,Txyz,Amat,Tunit,symNo,SGData)
     1545    return deriv
    15301546   
    1531 def CalcDistSu(distance_dict, distance_atoms, parmDict,covData={}):
    1532     '''default doc string
    1533    
    1534     :param type name: description
    1535    
    1536     :returns: type name: description
    1537    
    1538     '''
    1539     sig = 0.001
    1540    
    1541     return sig
    1542 
    15431547def CalcAngle(angle_dict, angle_atoms, parmDict):
    15441548    if not len(parmDict):
     
    15731577    return angle
    15741578
    1575 def CalcAngleSu(angle_dict, angle_atoms, parmDict,covData={}):
    1576     '''default doc string
    1577    
    1578     :param type name: description
    1579    
    1580     :returns: type name: description
    1581    
    1582     '''
    1583     sig = 0.5
    1584    
    1585     return sig
     1579def CalcAngleDeriv(angle_dict, angle_atoms, parmDict):
     1580    if not len(parmDict):
     1581        return None
     1582    pId = angle_dict['pId']
     1583    pfx = '%d::'%(pId)
     1584    A = [parmDict['%s::A%d'%(pId,i)] for i in range(6)]
     1585    Amat = G2lat.cell2AB(G2lat.A2cell(A))[0]
     1586    Oxyz = [parmDict['%s::A%s:%d'%(pId,x,distance_atoms[0])] for x in ['x','y','z']]
     1587    Txyz = [parmDict['%s::A%s:%d'%(pId,x,distance_atoms[1])] for x in ['x','y','z']]
     1588    inv = 1
     1589    symNo = distance_dict['symNo']
     1590    Tunit = distance_dict['cellNo']
     1591    SGData = distance_dict['SGData']   
     1592    deriv = getDistDerv(Oxyz,Txyz,Amat,Tunit,symNo,SGData)
     1593    return deriv
    15861594
    15871595def getSyXYZ(XYZ,ops,SGData):
Note: See TracChangeset for help on using the changeset viewer.