Changeset 2514


Ignore:
Timestamp:
Nov 4, 2016 9:21:09 AM (5 years ago)
Author:
vondreele
Message:

change default for Bank from None to 1 in G2IO
put in patch in G2pwdGUI to fix fail on old gpx files where bank = None

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIIO.py

    r2509 r2514  
    15821582        'Reinitialize the Reader to initial settings'
    15831583        ImportBaseclass.ReInitialize(self)
    1584         self.powderentry = ['',None,None] #  (filename,Pos,Bank)
     1584        self.powderentry = ['',None,1] #  (filename,Pos,Bank)
    15851585        self.powderdata = [] # Powder dataset
    15861586        '''A powder data set is a list with items [x,y,w,yc,yb,yd]:
     
    16241624        'Reinitialize the Reader to initial settings'
    16251625        ImportBaseclass.ReInitialize(self)
    1626         self.smallangleentry = ['',None,None] #  (filename,Pos,Bank)
     1626        self.smallangleentry = ['',None,1] #  (filename,Pos,Bank)
    16271627        self.smallangledata = [] # SASD dataset
    16281628        '''A small angle data set is a list with items [x,y,w,yc,yd]:
  • trunk/GSASIIpwdGUI.py

    r2506 r2514  
    16421642        instSizer = wx.FlexGridSizer(0,6,5,5)
    16431643        subSizer = wx.BoxSizer(wx.HORIZONTAL)
     1644        if insVal['Bank'] == None:      #patch
     1645            insVal['Bank'] = 1
    16441646        text = ' Histogram Type: %s  Bank: %d'%(insVal['Type'],insVal['Bank'])
    16451647        subSizer.Add(wx.StaticText(G2frame.dataDisplay,-1,text),0,WACV)
Note: See TracChangeset for help on using the changeset viewer.