Changeset 812 for trunk/GSASIIlattice.py


Ignore:
Timestamp:
Dec 11, 2012 4:27:56 PM (9 years ago)
Author:
vondreele
Message:

add restraint macro files
fix a triclinic error in genHlaue
continue development of restraints

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIlattice.py

    r780 r812  
    641641                    H = []
    642642                    if CentCheck(SGLatt,[h,k,l]): H=[h,k,l]
    643                     rdsq = calc_rDsq(H,A)
    644                     if 0 < rdsq <= dminsq:
    645                         HKL.append([h,k,l,1/math.sqrt(rdsq)])
     643                    if H:
     644                        rdsq = calc_rDsq(H,A)
     645                        if 0 < rdsq <= dminsq:
     646                            HKL.append([h,k,l,1/math.sqrt(rdsq)])
    646647    elif SGLaue == '2/m':                #monoclinic
    647648        axisnum = 1 + ['a','b','c'].index(SGUniq)
Note: See TracChangeset for help on using the changeset viewer.