Changeset 440 for trunk/GSASIIstruct.py


Ignore:
Timestamp:
Dec 11, 2011 1:55:19 PM (11 years ago)
Author:
vondreele
Message:

fix the mustrain ve microstrain title problem = GSASII.py
take wx,CallAfter? back out of most places - caused problems
get aniso size/mustrain ellipsoid around the right way to match ellipsoid model - exchanged sin & cos.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIstruct.py

    r435 r440  
    19051905        cosP,sinP = G2lat.CosSinAngle(H,P,G)
    19061906        gam = (1.8*wave/np.pi)/(parmDict[phfx+'Size:0']*parmDict[phfx+'Size:1']*costh)
    1907         gam *= np.sqrt((cosP*parmDict[phfx+'Size:1'])**2+(sinP*parmDict[phfx+'Size:0'])**2)
     1907        gam *= np.sqrt((sinP*parmDict[phfx+'Size:1'])**2+(cosP*parmDict[phfx+'Size:0'])**2)
    19081908    else:           #ellipsoidal crystallites
    19091909        Sij =[parmDict[phfx+'Size:%d'%(i)] for i in range(6)]
     
    19431943        Sa = parmDict[phfx+'Size:1']
    19441944        gami = (1.8*wave/np.pi)/(Si*Sa)
    1945         sqtrm = np.sqrt((cosP*Sa)**2+(sinP*Si)**2)
     1945        sqtrm = np.sqrt((sinP*Sa)**2+(cosP*Si)**2)
    19461946        gam = gami*sqtrm/costh           
    1947         gamDict[phfx+'Size:0'] = gami*Si*sinP**2/(sqtrm*costh)-gam/Si
    1948         gamDict[phfx+'Size:1'] = gami*Sa*cosP**2/(sqtrm*costh)-gam/Sa         
     1947        gamDict[phfx+'Size:0'] = gami*Si*cosP**2/(sqtrm*costh)-gam/Si
     1948        gamDict[phfx+'Size:1'] = gami*Sa*sinP**2/(sqtrm*costh)-gam/Sa         
    19491949    else:           #ellipsoidal crystallites
    19501950        const = 1.8*wave/(np.pi*costh)
Note: See TracChangeset for help on using the changeset viewer.