Changeset 4080 for trunk/GSASIIpwd.py


Ignore:
Timestamp:
Aug 7, 2019 11:35:30 AM (2 years ago)
Author:
vondreele
Message:

fix to ellipsoid size math & GUI revisions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIpwd.py

    r4048 r4080  
    11121112
    11131113def ellipseSize(H,Sij,GB):
    1114     'needs a doc string'
     1114    'Implements r=1/sqrt(sum((1/S)*(q.v)^2) per note from Alexander Brady'
    11151115    HX = np.inner(H.T,GB)
    11161116    lenHX = np.sqrt(np.sum(HX**2))
    11171117    Esize,Rsize = nl.eigh(G2lat.U6toUij(Sij))           
    1118     R = np.inner(HX/lenHX,Rsize)*Esize         #want column length for hkl in crystal
    1119     lenR = np.sqrt(np.sum(R**2))
     1118    R = np.inner(HX/lenHX,Rsize)**2*Esize         #want column length for hkl in crystal
     1119    lenR = 1./np.sqrt(np.sum(R))
    11201120    return lenR
    11211121
Note: See TracChangeset for help on using the changeset viewer.