Changeset 1419


Ignore:
Timestamp:
Jul 17, 2014 3:50:11 PM (7 years ago)
Author:
vondreele
Message:

stop copy of threshold masks from one image to another

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIimgGUI.py

    r1402 r1419  
    11121112                        Source = name
    11131113                        Mask = copy.deepcopy(G2frame.PatternTree.GetItemPyData(G2gd.GetPatternTreeItemId(G2frame,id, 'Masks')))
     1114                        Mask.pop('Thresholds')  #remove Thresholds from source mask
    11141115                    else:
    11151116                        TextList.append([False,name,id])
     
    11291130                        if ifcopy:
    11301131                            mask = G2frame.PatternTree.GetItemPyData(G2gd.GetPatternTreeItemId(G2frame,id, 'Masks'))
    1131                             Mask['Thresholds'][0] = mask['Thresholds'][0]
    1132                             Mask['Thresholds'][1][1] = min(mask['Thresholds'][1][1],Mask['Thresholds'][1][1])
     1132#                            Mask['Thresholds'][0] = mask['Thresholds'][0]
     1133#                            Mask['Thresholds'][1][1] = min(mask['Thresholds'][1][1],Mask['Thresholds'][1][1])
    11331134                            mask.update(Mask)                               
    11341135                            G2frame.PatternTree.SetItemPyData(G2gd.GetPatternTreeItemId(G2frame,id, 'Masks'),copy.deepcopy(mask))
Note: See TracChangeset for help on using the changeset viewer.