Changeset 1571 for trunk/GSASIIimgGUI.py


Ignore:
Timestamp:
Nov 15, 2014 12:01:30 PM (8 years ago)
Author:
vondreele
Message:

fix typos in small angle tutorials
add menu with copy & reset to instrument parameters for SASD data
copy masks now copies the lower threshold
work on indexing incommensurate powder patterns, plots

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIimgGUI.py

    r1570 r1571  
    11171117                        Source = name
    11181118                        Mask = copy.deepcopy(G2frame.PatternTree.GetItemPyData(G2gd.GetPatternTreeItemId(G2frame,id, 'Masks')))
    1119                         Mask.pop('Thresholds')  #remove Thresholds from source mask
     1119                        Thresh = Mask.pop('Thresholds')  #remove Thresholds from source mask & save it for later
    11201120                    else:
    11211121                        TextList.append([False,name,id])
     
    11371137#                            Mask['Thresholds'][0] = mask['Thresholds'][0]
    11381138#                            Mask['Thresholds'][1][1] = min(mask['Thresholds'][1][1],Mask['Thresholds'][1][1])
    1139                             mask.update(Mask)                               
     1139                            mask.update(Mask)
     1140                            mask['Thresholds'][1][0] = Thresh[1][0]  #copy only lower threshold                             
    11401141                            G2frame.PatternTree.SetItemPyData(G2gd.GetPatternTreeItemId(G2frame,id, 'Masks'),copy.deepcopy(mask))
    11411142            finally:
Note: See TracChangeset for help on using the changeset viewer.