Ignore:
Timestamp:
Feb 15, 2019 10:43:35 AM (3 years ago)
Author:
vondreele
Message:

create csv exporter for small angle data - includes size distribution histogram if any.
fix formatting issue with size distribution axis label
a bit different incomm. mag str fctr. math - still wrong

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIstrMath.py

    r3821 r3825  
    16091609            fbm = (Q*TMcorr[nxs,:,nxs,nxs,:]*sinm[nxs,:,nxs,:,:]*SMag[nxs,nxs,:,:,:])
    16101610           
    1611             fas = np.sum(np.sum(fam,axis=-1)**2,axis=-1)      #xyz,Nref,ntau; sum ops & atoms
    1612             fbs = np.sum(np.sum(fbm,axis=-1)**2,axis=-1)      #ditto
     1611            fas = np.sum(np.sum(fam,axis=-1),axis=-1)/ngl      #xyz,Nref,ntau; sum ops & atoms
     1612            fbs = np.sum(np.sum(fbm,axis=-1),axis=-1)/ngl      #ditto
    16131613           
    1614             refl.T[10] = np.sum(np.sum(fas,axis=0)/ngl,axis=-1)+np.sum(np.sum(fbs,axis=0)/ngl,axis=-1)    #square of sums
     1614            refl.T[10] = np.sum(np.sum(fas,axis=-1),axis=0)**2+np.sum(np.sum(fbs,axis=-1),axis=0)**2    #square of sums
    16151615#            refl.T[11] = mphase[:,0,0]  #ignore f' & f"
    16161616           
Note: See TracChangeset for help on using the changeset viewer.