Changeset 4662 for trunk


Ignore:
Timestamp:
Nov 28, 2020 11:33:01 AM (3 years ago)
Author:
toby
Message:

improve error message

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIstrMath.py

    r4595 r4662  
    32323232        G,g = G2lat.A2Gmat(A)       #recip & real metric tensors
    32333233        if np.any(np.diag(G)<0.) or np.any(np.isnan(A)):
    3234             raise G2obj.G2Exception('invalid metric tensor \n cell/Dij refinement not advised')
     3234            G2obj.HowDidIgetHere()
     3235            raise G2obj.G2Exception('Error in metric tensor refinement\nCheck for refinement of conflicting variables')
    32353236        GA,GB = G2lat.Gmat2AB(G)    #Orthogonalization matricies
    32363237        Vst = np.sqrt(nl.det(G))    #V*
Note: See TracChangeset for help on using the changeset viewer.