Changeset 5138


Ignore:
Timestamp:
Jan 14, 2022 8:54:29 AM (7 months ago)
Author:
vondreele
Message:

Add histogram Type to default DData dictionary; needed for EDX but might be useful elsewhere.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIdataGUI.py

    r5135 r5138  
    122122def SetDefaultDData(dType,histoName,NShkl=0,NDij=0):
    123123    if dType in ['SXC','SNC']:
    124         return {'Histogram':histoName,'Show':False,'Scale':[1.0,True],
     124        return {'Histogram':histoName,'Show':False,'Scale':[1.0,True],'Type':dType,
    125125            'Babinet':{'BabA':[0.0,False],'BabU':[0.0,False]},
    126126            'Extinction':['Lorentzian','None', {'Tbar':0.1,'Cos2TM':0.955,
     
    128128            'Flack':[0.0,False]}
    129129    elif dType == 'SNT':
    130         return {'Histogram':histoName,'Show':False,'Scale':[1.0,True],
     130        return {'Histogram':histoName,'Show':False,'Scale':[1.0,True],'Type':dType,
    131131            'Babinet':{'BabA':[0.0,False],'BabU':[0.0,False]},
    132132            'Extinction':['Lorentzian','None', {
    133133            'Eg':[1.e-10,False],'Es':[1.e-10,False],'Ep':[1.e-10,False]}]}
    134134    elif 'P' in dType:
    135         return {'Histogram':histoName,'Show':False,'Scale':[1.0,False],
     135        return {'Histogram':histoName,'Show':False,'Scale':[1.0,False],'Type':dType,
    136136            'Pref.Ori.':['MD',1.0,False,[0,0,1],0,{},[],0.1],
    137137            'Size':['isotropic',[1.,1.,1.],[False,False,False],[0,0,1],
Note: See TracChangeset for help on using the changeset viewer.