Changeset 2149


Ignore:
Timestamp:
Feb 14, 2016 6:14:06 PM (6 years ago)
Author:
toby
Message:

copy thresholds with auto-int table lookup only when changed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIimgGUI.py

    r2143 r2149  
    23572357        if immask:
    23582358            self.ImageMasks = ReadMask(immask)
    2359             del self.Thresholds['Thresholds']
     2359            if list(self.ImageMasks['Thresholds'][0]) == self.ImageMasks['Thresholds'][1]:     #avoid copy of unchanged thresholds
     2360                del self.ImageMasks['Thresholds']
    23602361        else:
    23612362            self.ImageMasks = {'Points':[],'Rings':[],'Arcs':[],'Polygons':[],'Frames':[]}
Note: See TracChangeset for help on using the changeset viewer.