Changeset 1786 for trunk/GSASIImath.py


Ignore:
Timestamp:
Apr 10, 2015 1:14:03 PM (10 years ago)
Author:
vondreele
Message:

fix anomalous dispersion calcs.
fix SC weights on derivatives

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/GSASIImath.py ΒΆ

    r1780 r1786  
    17751775                hkl = np.asarray(hkl,dtype='i')
    17761776                dp = 360.*Phi[i]                #and phi
    1777                 a = cosd(ph+dp)
    1778                 b = sind(ph+dp)
    1779                 phasep = complex(a,b)
    1780                 phasem = complex(a,-b)
     1777                a = cosd(ph)
     1778                b = sind(ph)
     1779                phasep = complex(a,b)+dp
     1780                phasem = complex(a,-b)-dp
    17811781                if 'Fobs' in mapData['MapType']:
    17821782                    F = np.where(Fosq>0.,np.sqrt(Fosq),0.)
Note: See TracChangeset for help on using the changeset viewer.