Changeset 2571


Ignore:
Timestamp:
Dec 10, 2016 12:34:32 PM (5 years ago)
Author:
vondreele
Message:

fix to charge flipping - a new numpy problem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIImath.py

    r2546 r2571  
    28982898                phasep = complex(a,b)
    28992899                phasem = complex(a,-b)
    2900                 Ehkl[hkl+Hmax] = E*phasep
    2901                 Ehkl[-hkl+Hmax] = E*phasem
     2900                h,k,l = hkl+Hmax
     2901                Ehkl[h,k,l] = E*phasep
     2902                h,k,l = -hkl+Hmax
     2903                Ehkl[h,k,l] = E*phasem
    29022904#    Ehkl[Hmax] = 0.00001           #this to preserve F[0,0,0]
    29032905    testHKL = np.array(flipData['testHKL'])+Hmax
Note: See TracChangeset for help on using the changeset viewer.