Ignore:
Timestamp:
Feb 11, 2016 11:45:00 AM (6 years ago)
Author:
vondreele
Message:

improve HKL transformation; include set of common choices & trap failures

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIlattice.py

    r2144 r2146  
    527527    newRefs = np.copy(refList)
    528528    for H in newRefs:
    529         H[:3+Super] = np.rint(np.inner(transMat,H[:3+Super]))
     529        newH = np.inner(transMat,H[:3+Super])
     530        H[:3+Super] = np.rint(newH)
     531        if not np.allclose(newH,H[:3+Super],atol=0.01):
     532            return []
    530533    return newRefs
    531534   
Note: See TracChangeset for help on using the changeset viewer.