Changeset 1898 for trunk/GSASIIpwd.py


Ignore:
Timestamp:
Jun 19, 2015 3:59:22 PM (7 years ago)
Author:
vondreele
Message:

new constraint option - constrain atom variables as a set; constrain sum of frac & equivalence all other parameters - intended for multiple atoms on same site
fix bug in instrument parms flag copy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIpwd.py

    r1893 r1898  
    479479   
    480480def getFWHM(pos,Inst):
    481     'needs a doc string'
    482     sig = lambda Th,U,V,W: 1.17741*math.sqrt(max(0.001,U*tand(Th)**2+V*tand(Th)+W))*math.pi/180.
     481    '1.17741*pi/180 = sqrt(8ln2)/(2pi/180)'
     482    sig = lambda Th,U,V,W: 1.17741*np.sqrt(max(0.001,U*tand(Th)**2+V*tand(Th)+W))*np.pi/180.
    483483    sigTOF = lambda dsp,S0,S1,S2,Sq:  S0+S1*dsp**2+S2*dsp**4+Sq/dsp**2
    484484    gam = lambda Th,X,Y: (X/cosd(Th)+Y*tand(Th))*math.pi/180.
Note: See TracChangeset for help on using the changeset viewer.