Changeset 1480 for trunk/GSASIIplot.py


Ignore:
Timestamp:
Aug 27, 2014 12:59:17 PM (9 years ago)
Author:
vondreele
Message:

reset mustrain now gives correct SHKL coefficients for a 1000 mustrain
generalized mustrain now scaled correctly by 0.018/pi

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r1475 r1480  
    24062406                        uvw = np.inner(A.T,xyz)
    24072407                        Strm = np.array(G2spc.MustrainCoeff(uvw,SGData))
    2408                         sum = np.sum(np.multiply(Shkl,Strm))
    2409                         sum = np.where(sum > 0.01,sum,0.01)
    2410                         sum = np.sqrt(sum)*math.pi/.18      #centidegrees to radians!
    2411                         return sum*xyz
     2408                        Sum = np.sum(np.multiply(Shkl,Strm))
     2409                        Sum = np.where(Sum > 0.01,Sum,0.01)
     2410                        Sum = np.sqrt(Sum)
     2411                        return Sum*xyz
    24122412                       
    24132413                    Shkl = np.array(coeff[4])
Note: See TracChangeset for help on using the changeset viewer.