Changeset 1016 for trunk/GSASIIphsGUI.py
- Timestamp:
- Aug 4, 2013 9:35:54 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIphsGUI.py
r1015 r1016 4606 4606 for iref,ref in enumerate(Refs): 4607 4607 try: 4608 if ref Data[iref][9] < 0.:4609 ref[6] = abs(refData[iref][9])*mult4608 if ref[6] < 0.: 4609 ref[6] *= -mult 4610 4610 refData[iref][8] *= -mult 4611 4611 refData[iref][9] *= -mult … … 4613 4613 ref[7] = 1.0 4614 4614 except IndexError: 4615 print 'skipped',ref 4615 4616 pass 4616 4617 finally: 4617 4618 wx.EndBusyCursor() 4618 FillPawleyReflectionsGrid()4619 wx.CallAfter(FillPawleyReflectionsGrid) 4619 4620 4620 def OnPawleyDelete(event): #doesn't work4621 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'] = Refs4633 FillPawleyReflectionsGrid()4634 finally:4635 dlg.Destroy()4636 4637 4621 ################################################################################ 4638 4622 ##### Fourier routines … … 5086 5070 G2frame.dataFrame.Bind(wx.EVT_MENU, OnPawleyEstimate, id=G2gd.wxID_PAWLEYESTIMATE) 5087 5071 G2frame.dataFrame.Bind(wx.EVT_MENU, OnPawleyUpdate, id=G2gd.wxID_PAWLEYUPDATE) 5088 G2frame.dataFrame.Bind(wx.EVT_MENU, OnPawleyDelete, id=G2gd.wxID_PAWLEYDELETE)5089 5072 FillPawleyReflectionsGrid() 5090 5073 else:
Note: See TracChangeset
for help on using the changeset viewer.