Changeset 2240


Ignore:
Timestamp:
May 5, 2016 9:29:19 AM (7 years ago)
Author:
vondreele
Message:

Trap bad cell refinement in Rietveld

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIstrMath.py

    r2155 r2240  
    32593259        A = [parmDict[pfx+'A%d'%(i)]+Dij[i] for i in range(6)]
    32603260        G,g = G2lat.A2Gmat(A)       #recip & real metric tensors
    3261         if np.any(np.diag(G)<0.):
     3261        if np.any(np.diag(G)<0.) or np.any(np.isnan(A)):
    32623262            raise G2obj.G2Exception('invalid metric tensor \n cell/Dij refinement not advised')
    32633263        GA,GB = G2lat.Gmat2AB(G)    #Orthogonalization matricies
Note: See TracChangeset for help on using the changeset viewer.