Changeset 2125 for trunk/GSASIIimage.py


Ignore:
Timestamp:
Jan 15, 2016 1:00:54 PM (6 years ago)
Author:
vondreele
Message:

a bit of simplification to G2sfact for HKLF5 data
Add sample shape (Cylinder & Fixed flat plate) to ImageGUI & integration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIimage.py

    r2108 r2125  
    910910            tax = np.where(tax < LRazm[0],tax+360.,tax)
    911911            if data['SampleAbs'][1]:
    912                 if 'PWDR' in data['type']:
    913                     muR = muT*(1.+npsind(tax)**2/2.)/(npcosd(tay))
     912                if 'Cylind' in data['SampleShape']:
     913                    muR = muT*(1.+npsind(tax)**2/2.)/(npcosd(tay))      #adjust for additional thickness off sample normal
    914914                    tabs = G2pwd.Absorb(data['SampleShape'],muR,tay)
    915                 elif 'SASD' in data['type']:    #assumes flat plate sample normal to beam
     915                elif 'Fixed' in data['SampleShape']:    #assumes flat plate sample normal to beam
    916916                    tabs = G2pwd.Absorb('Fixed',muT,tay)
    917917            if 'log(q)' in data['binType']:
Note: See TracChangeset for help on using the changeset viewer.