Changeset 4018 for trunk/GSASIIfiles.py


Ignore:
Timestamp:
Jun 7, 2019 12:24:14 AM (2 years ago)
Author:
vondreele
Message:

set default to Bragg-Brentano for dual wavelength source & using GSAS-II insparm file on import of powder data - now works same as for old GSAS iparm files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIfiles.py

    r3999 r4018  
    314314        newVals.append(val)
    315315        il += 1
     316    if 'Lam1' in newItems:
     317        rd.Sample.update({'Type':'Bragg-Brentano','Shift':[0.,False],'Transparency':[0.,False],
     318            'SurfRoughA':[0.,False],'SurfRoughB':[0.,False]})
     319    else:
     320        rd.Sample.update({'Type':'Debye-Scherrer','Absorption':[0.,False],'DisplaceX':[0.,False],'DisplaceY':[0.,False]})
    316321    return [makeInstDict(newItems, newVals, len(newVals)*[False]), {}]
    317322
Note: See TracChangeset for help on using the changeset viewer.