Changeset 1581 for trunk/GSASIIpwdGUI.py


Ignore:
Timestamp:
Nov 24, 2014 9:27:52 AM (8 years ago)
Author:
vondreele
Message:

fix problem editing R3cR lattice parameters - incorrect angle index
begin GUI for modulation vector search

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIpwdGUI.py

    r1578 r1581  
    22692269        OnHklShow(event)
    22702270       
     2271    def OnFindMV(event):
     2272        print 'find MV'
     2273       
    22712274    def OnBravSel(event):
    22722275        brav = bravSel.GetString(bravSel.GetSelection())
     
    23612364            G2frame.HKL = G2pwd.getHKLMpeak(dmin,Inst,SGData,SSGData,Vec,maxH,A)
    23622365            peaks = [G2indx.IndexSSPeaks(peaks[0],G2frame.HKL)[1],peaks[1]]   #keep esds from peak fit
     2366            M20,X20 = G2indx.calc_M20SS(peaks[0],G2frame.HKL)
    23632367        else:
    23642368            G2frame.HKL = G2pwd.getHKLpeak(dmin,Inst,SGData,A)
    23652369            peaks = [G2indx.IndexPeaks(peaks[0],G2frame.HKL)[1],peaks[1]]   #keep esds from peak fit
     2370            M20,X20 = G2indx.calc_M20(peaks[0],G2frame.HKL)
     2371        print ' new M20,X20: %.2f %d'%(M20,X20)
    23662372        G2frame.PatternTree.SetItemPyData(G2gd.GetPatternTreeItemId(G2frame,PatternId, 'Index Peak List'),peaks)
    23672373        if 'PKS' in G2frame.PatternTree.GetItemText(G2frame.PatternId):
     
    23982404        wx.CallAfter(UpdateUnitCellsGrid,G2frame,data)       
    23992405               
    2400     def RefineCell(event):  #want this to do modulation vector as well
     2406    def RefineCell(event):
     2407       
    24012408        def cellPrint(ibrav,A):
    24022409            cell = G2lat.A2cell(A)
     
    27502757        maxMH.Bind(wx.EVT_COMBOBOX, OnMaxMH)
    27512758        ssSizer.Add(maxMH,0,WACV)
     2759        findMV = wx.wx.Button(G2frame.dataDisplay,label="Find mod. vec.?")
     2760        findMV.Bind(wx.EVT_BUTTON,OnFindMV)
     2761        ssSizer.Add(findMV,0,WACV)
    27522762        mainSizer.Add(ssSizer,0)
    27532763
Note: See TracChangeset for help on using the changeset viewer.