Changeset 2151 for trunk/GSASIIpwdGUI.py


Ignore:
Timestamp:
Feb 16, 2016 4:19:48 PM (6 years ago)
Author:
vondreele
Message:

add Generic TOF to defaultIparms.py; forces user to set flight path & 2-theta
modify instparm reading to sort out multibank issues
add MultiFloatDialog? to solicit multi values from user

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIpwdGUI.py

    r2147 r2151  
    11821182    data tree item.
    11831183    '''
    1184 #patch
    1185     if 'Bank' not in data:  #get it from name
     1184    if 'Bank' not in data:  #get it from name; absent for default parms selection
    11861185        hst = G2frame.PatternTree.GetItemText(G2frame.PatternId)
    11871186        if 'Bank' in hst:
    1188             bank = int(hst.split('Bank')[1])
     1187            bank = int(hst.split('Bank')[1].split('_')[0])
    11891188            data['Bank'] = [bank,bank,0]
    11901189        else:
    11911190            data['Bank'] = [1,1,0]
    1192 #end patch   
     1191
    11931192    def keycheck(keys):
    11941193        good = []
Note: See TracChangeset for help on using the changeset viewer.