Changeset 2222 for trunk/GSASIIIO.py


Ignore:
Timestamp:
Apr 22, 2016 11:41:55 AM (6 years ago)
Author:
vondreele
Message:

fix min image default threshold at zero rather than min(image) - avoids problems with corrected images
refactor copy image controls, masks & stress/stran coeff to use G2MultiChoiceDialog
refactor integrateall & fitall stress/strain to use G2MultiChoiceDialog
all much nicer & cleaner code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIIO.py

    r2215 r2222  
    340340        Data['Flat Bkg'] = 0.0
    341341    Data['setDefault'] = False
    342     Data['range'] = [(Imin,Imax),[Imin,Imax]]
     342    Data['range'] = [(0,Imax),[Imin,Imax]]
    343343    G2frame.PatternTree.SetItemPyData(G2frame.PatternTree.AppendItem(Id,text='Image Controls'),Data)
    344     Masks = {'Points':[],'Rings':[],'Arcs':[],'Polygons':[],'Frames':[],'Thresholds':[(Imin,Imax),[Imin,Imax]]}
     344    Masks = {'Points':[],'Rings':[],'Arcs':[],'Polygons':[],'Frames':[],'Thresholds':[(0,Imax),[Imin,Imax]]}
    345345    G2frame.PatternTree.SetItemPyData(G2frame.PatternTree.AppendItem(Id,text='Masks'),Masks)
    346346    G2frame.PatternTree.SetItemPyData(G2frame.PatternTree.AppendItem(Id,text='Stress/Strain'),
Note: See TracChangeset for help on using the changeset viewer.