Changeset 4441 for trunk


Ignore:
Timestamp:
May 26, 2020 11:44:22 AM (3 years ago)
Author:
vondreele
Message:

cleanup of GenAtom?
fix Dist Angle calcs for an imported phase with no errors

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIspc.py

    r4440 r4441  
    20832083    X = np.array(XYZ)
    20842084    mj = 0
    2085     cell0 = np.zeros(3,dtype=np.int32)
    20862085    for ic,cen in enumerate(icen):
    20872086        C = np.array(cen)
     
    20972096                    XT = -XT
    20982097                XT += C
    2099                 cell = np.zeros(3,dtype=np.int32)+cell0
    2100                 cellj = np.zeros(3,dtype=np.int32)
     2098                cell = np.zeros(3,dtype=np.int32)
    21012099                if Move:
    2102                     newX,cellj = MoveToUnitCell(XT)
     2100                    newX,cell = MoveToUnitCell(XT)
    21032101                else:
    21042102                    newX = XT
    2105                 cell += cellj
    21062103                if All:
    21072104                    if np.allclose(newX,X,atol=0.0002):
  • trunk/GSASIIstrMain.py

    r4416 r4441  
    616616    Amat,Bmat = G2lat.cell2AB(Cell[:6])
    617617    covData = {}
    618     if 'covData' in DisAglData:
     618    if len(DisAglData.get('covData',{})):
    619619        covData = DisAglData['covData']
    620620        covMatrix = covData['covMatrix']
     
    647647            Xvcov = []
    648648            TxyzNames = ''
    649             if 'covData' in DisAglData:
     649            if len(DisAglData.get('covData',{})):
    650650                OxyzNames = [pfx+'dAx:%d'%(Oatom[0]),pfx+'dAy:%d'%(Oatom[0]),pfx+'dAz:%d'%(Oatom[0])]
    651651                TxyzNames = [pfx+'dAx:%d'%(Tatom[0]),pfx+'dAy:%d'%(Tatom[0]),pfx+'dAz:%d'%(Tatom[0])]
     
    729729    Amat,Bmat = G2lat.cell2AB(Cell[:6])
    730730    covData = {}
    731     if 'covData' in DisAglData:
     731    if len(DisAglData.get('covData',{})):
    732732        covData = DisAglData['covData']
    733733        pfx = str(DisAglData['pId'])+'::'
Note: See TracChangeset for help on using the changeset viewer.