Changeset 3365


Ignore:
Timestamp:
Apr 28, 2018 12:04:52 PM (5 years ago)
Author:
vondreele
Message:

remove qplot,dplot, etc from PWDR data[0] dict - weren't ever used
make sqrt & log plots mutually exclusive

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIIO.py

    r3355 r3365  
    799799            G2frame.GPXtree.SetItemPyData(G2frame.GPXtree.AppendItem(Id,text='Models'),G2pdG.SetDefaultSASDModel())
    800800        valuesdict = {
    801             'wtFactor':1.0,
    802             'Dummy':False,
    803             'ranId':ran.randint(0,sys.maxsize),
    804             'Offset':[0.0,0.0],'delOffset':0.02*Ymax,'refOffset':-0.1*Ymax,'refDelt':0.1*Ymax,
    805             'qPlot':False,'dPlot':False,'sqrtPlot':False,'Yminmax':[Ymin,Ymax]
    806             }
    807         G2frame.GPXtree.SetItemPyData(
    808             Id,[valuesdict,
    809                 [np.array(X),np.array(Y),np.array(W),np.zeros(N),np.zeros(N),np.zeros(N)]])
     801            'wtFactor':1.0,'Dummy':False,'ranId':ran.randint(0,sys.maxsize),'Offset':[0.0,0.0],'delOffset':0.02*Ymax,
     802            'refOffset':-0.1*Ymax,'refDelt':0.1*Ymax,'Yminmax':[Ymin,Ymax]}
     803        G2frame.GPXtree.SetItemPyData(Id,[valuesdict,
     804            [np.array(X),np.array(Y),np.array(W),np.zeros(N),np.zeros(N),np.zeros(N)]])
    810805    return Id       #last powder pattern generated
    811806   
  • trunk/GSASIIdataGUI.py

    r3364 r3365  
    16621662                'ranId':ran.randint(0,sys.maxsize),
    16631663                'Offset':[0.0,0.0],'delOffset':0.02*Ymax,'refOffset':-.1*Ymax,'refDelt':0.1*Ymax,
    1664                 'qPlot':False,'dPlot':False,'sqrtPlot':False,'Yminmax':[Ymin,Ymax]
     1664                'Yminmax':[Ymin,Ymax]
    16651665                }
    16661666            # apply user-supplied corrections to powder data
     
    18801880            'ranId':ran.randint(0,sys.maxsize),
    18811881            'Offset':[0.0,0.0],'delOffset':0.02*Ymax,'refOffset':-.1*Ymax,'refDelt':0.1*Ymax,
    1882             'qPlot':False,'dPlot':False,'sqrtPlot':False,'Yminmax':[Ymin,Ymax]
     1882            'Yminmax':[Ymin,Ymax]
    18831883            }
    18841884        self.GPXtree.SetItemPyData(Id,[valuesdict,rd.powderdata])
     
    22612261                'wtFactor':1.0,'Dummy':False,'ranId':ran.randint(0,sys.maxsize),
    22622262                'Offset':[0.0,0.0],'delOffset':0.02*Ymax,
    2263                 'qPlot':False,'dPlot':False,'sqrtPlot':False,'Yminmax':[Ymin,Ymax]
     2263                'Yminmax':[Ymin,Ymax]
    22642264                }
    22652265            self.GPXtree.SetItemPyData(
     
    32663266                            'ranId':ran.randint(0,sys.maxsize),
    32673267                            'Offset':[0.0,0.0],'delOffset':0.02*Ymax,'refOffset':-.1*Ymax,'refDelt':0.1*Ymax,
    3268                             'qPlot':False,'dPlot':False,'sqrtPlot':False,'Yminmax':[Ymin,Ymax]
     3268                            'Yminmax':[Ymin,Ymax]
    32693269                            }
    32703270                        self.GPXtree.SetItemPyData(Id,[valuesdict,[np.array(Xsum),np.array(Ysum),np.array(Wsum),
  • trunk/GSASIIplot.py

    r3364 r3365  
    392392        self.toolbar.Realize()
    393393        self.plotStyle = {'qPlot':False,'dPlot':False,'sqrtPlot':False,'sqPlot':False,'logPlot':False}
    394         self.logPlot = False
    395         self.sqrtPlot = False
    396394       
    397395        sizer=wx.BoxSizer(wx.VERTICAL)
     
    16391637            else:
    16401638                Page.plotStyle['logPlot'] = not Page.plotStyle['logPlot']
    1641                 if not Page.plotStyle['logPlot']:
     1639                if Page.plotStyle['logPlot']:
     1640                    Page.plotStyle['sqrtPlot'] = False
     1641                else:
    16421642                    Pattern[0]['Offset'][0] = 0
    16431643                newPlot = True
     
    16451645            if G2frame.SinglePlot:  #toggle sqrt plot
    16461646                Page.plotStyle['sqrtPlot'] = not Page.plotStyle['sqrtPlot']
     1647                if Page.plotStyle['sqrtPlot']:
     1648                    Page.plotStyle['logPlot'] = False
    16471649                Ymax = max(Pattern[1][1])
    16481650                if Page.plotStyle['sqrtPlot']:
  • trunk/GSASIIpwdGUI.py

    r3357 r3365  
    341341    if 'Offset' not in sourceData[0]:    #patch for old data
    342342        sourceData[0].update({'Offset':[0.0,0.0],'delOffset':0.02,'refOffset':-1.0,
    343             'refDelt':0.01,'qPlot':False,'dPlot':False,'sqrtPlot':False})
     343            'refDelt':0.01,})
    344344        G2frame.GPXtree.SetItemPyData(G2frame.PatternId,sourceData)
    345345       
     
    356356        copyList.append(histList[i])
    357357
    358     keys = ['Offset','delOffset','refOffset','refDelt','qPlot','dPlot','sqrtPlot']
     358    keys = ['Offset','delOffset','refOffset','refDelt']
    359359    source = dict(zip(keys,[sourceData[0][item] for item in keys]))
    360360    for hist in copyList:
  • trunk/GSASIIscriptable.py

    r3294 r3365  
    10791079                  'Offset': [0.0, 0.0], 'delOffset': 0.02*Ymax,
    10801080                  'refOffset': -0.1*Ymax, 'refDelt': 0.1*Ymax,
    1081                   'qPlot': False, 'dPlot': False, 'sqrtPlot': False,
    10821081                  'Yminmax': [Ymin, Ymax]}
    10831082    reader.Sample['ranId'] = valuesdict['ranId']
Note: See TracChangeset for help on using the changeset viewer.