Changeset 1016 for trunk/GSASIIphsGUI.py


Ignore:
Timestamp:
Aug 4, 2013 9:35:54 PM (9 years ago)
Author:
vondreele
Message:

remove PawleyDelete? - not used
fix floating point error in vcov matrix processing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIphsGUI.py

    r1015 r1016  
    46064606            for iref,ref in enumerate(Refs):
    46074607                try:
    4608                     if refData[iref][9] < 0.:
    4609                         ref[6] = abs(refData[iref][9])*mult
     4608                    if ref[6] < 0.:
     4609                        ref[6] *= -mult
    46104610                        refData[iref][8] *= -mult
    46114611                        refData[iref][9] *= -mult
     
    46134613                        ref[7] = 1.0
    46144614                except IndexError:
     4615                    print 'skipped',ref
    46154616                    pass
    46164617        finally:
    46174618            wx.EndBusyCursor()
    4618         FillPawleyReflectionsGrid()
     4619        wx.CallAfter(FillPawleyReflectionsGrid)
    46194620                           
    4620     def OnPawleyDelete(event):          #doesn't work
    4621         dlg = wx.MessageDialog(G2frame,'Do you really want to delete selected Pawley reflections?','Delete',
    4622             wx.YES_NO | wx.ICON_QUESTION)
    4623         try:
    4624             result = dlg.ShowModal()
    4625             if result == wx.ID_YES:
    4626                 Refs = data['Pawley ref']
    4627                 Ind = G2frame.PawleyRefl.GetSelectedRows()
    4628                 Ind.sort()
    4629                 Ind.reverse()
    4630                 for ind in Ind:
    4631                     Refs = np.delete(Refs,ind,0)
    4632                 data['Pawley ref'] = Refs
    4633                 FillPawleyReflectionsGrid()
    4634         finally:
    4635             dlg.Destroy()
    4636 
    46374621################################################################################
    46384622##### Fourier routines
     
    50865070            G2frame.dataFrame.Bind(wx.EVT_MENU, OnPawleyEstimate, id=G2gd.wxID_PAWLEYESTIMATE)
    50875071            G2frame.dataFrame.Bind(wx.EVT_MENU, OnPawleyUpdate, id=G2gd.wxID_PAWLEYUPDATE)
    5088             G2frame.dataFrame.Bind(wx.EVT_MENU, OnPawleyDelete, id=G2gd.wxID_PAWLEYDELETE)           
    50895072            FillPawleyReflectionsGrid()
    50905073        else:
Note: See TracChangeset for help on using the changeset viewer.