Changeset 1190


Ignore:
Timestamp:
Jan 10, 2014 11:50:41 AM (8 years ago)
Author:
vondreele
Message:

fix peak picking in q-plots

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIimgGUI.py

    r1189 r1190  
    15881588        G2frame.dataFrame.GetStatusBar().SetStatusText('Add strain ring active - LB pick d-zero value')
    15891589    else:
    1590         G2frame.dataFrame.GetStatusBar().SetStatusText("To add strain data: On On 2D Powder Image, key a:add ring")
     1590        G2frame.dataFrame.GetStatusBar().SetStatusText("To add strain data: On 2D Powder Image, key a:add ring")
    15911591       
    15921592    G2frame.dataDisplay = wx.Panel(G2frame.dataFrame)
  • trunk/GSASIIplot.py

    r1189 r1190  
    559559            if ind.all() != [0]:                                    #picked a data point
    560560                data = G2frame.PatternTree.GetItemPyData(G2frame.PickId)
    561                 XY = G2mth.setPeakparms(Parms,Parms2,xy[0],xy[1])           #what happens for a q-plot???
     561                if 'C' in Parms['Type'][0]:                            #CW data - TOF later in an elif
     562                    if G2frame.qPlot:                              #qplot - convert back to 2-theta
     563                        xy[0] = 2.0*asind(xy[0]*wave/(4*math.pi))
     564                XY = G2mth.setPeakparms(Parms,Parms2,xy[0],xy[1])
    562565                data.append(XY)
    563566                G2pdG.UpdatePeakGrid(G2frame,data)
     
    21762179      triggers the addition of a d-zero.   
    21772180    '''
     2181    G2frame.dataFrame.GetStatusBar().SetStatusText('Add strain ring active - LB pick d-zero value')
    21782182    StrSta = G2frame.PatternTree.GetItemPyData(
    21792183        G2gd.GetPatternTreeItemId(G2frame,G2frame.Image, 'Stress/Strain'))
Note: See TracChangeset for help on using the changeset viewer.