Changeset 1800 for trunk/GSASIIphsGUI.py


Ignore:
Timestamp:
Apr 21, 2015 12:16:53 PM (8 years ago)
Author:
vondreele
Message:

show no. space group extinct reflections in HKLF data - rejected from calcs.
calculate a "residual" for texture fitting & show it in ProgressBar?
correct angle derivatives in texture fitting (wrong sign)
trap empty useList in plots
make sure U23 is printed in lst output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIphsGUI.py

    r1796 r1800  
    711711            def OnRefList(event):
    712712                dlg = G2G.G2MultiChoiceDialog(G2frame, 'Select reflection sets to use',
    713                     'Use data',refsList,filterBox=False)
     713                    'Use data',refsList)
    714714                try:
    715715                    if dlg.ShowModal() == wx.ID_OK:
     
    782782            def OnRefList(event):
    783783                dlg = G2G.G2MultiChoiceDialog(G2frame, 'Select reflection sets to use',
    784                     'Use data',refsList,filterBox=False)
     784                    'Use data',refsList)
    785785                try:
    786786                    if dlg.ShowModal() == wx.ID_OK:
     
    22282228            def OnRefList(event):
    22292229                dlg = G2G.G2MultiChoiceDialog(G2frame, 'Select reflection sets to use',
    2230                     'Use data',refsList,filterBox=False)
     2230                    'Use data',refsList)
    22312231                try:
    22322232                    if dlg.ShowModal() == wx.ID_OK:
     
    37523752                TextList.append(name)
    37533753            item, cookie = G2frame.PatternTree.GetNextChild(G2frame.root, cookie)                       
    3754         dlg = wx.MultiChoiceDialog(G2frame, 'Which new data to use?', 'Use data', TextList, wx.CHOICEDLG_STYLE)
     3754        dlg = G2G.G2MultiChoiceDialog(G2frame, 'Select reflection sets to use',
     3755                    'Use data',TextList)
    37553756        try:
    37563757            if dlg.ShowModal() == wx.ID_OK:
     
    39363937        NDij = len(G2spc.HStrainNames(SGData))
    39373938        keyList = UseList.keys()
    3938         TextList = ['All PWDR']
     3939        TextList = []
    39393940        if G2frame.PatternTree.GetCount():
    39403941            item, cookie = G2frame.PatternTree.GetFirstChild(G2frame.root)
     
    39443945                    TextList.append(name)
    39453946                item, cookie = G2frame.PatternTree.GetNextChild(G2frame.root, cookie)
    3946             dlg = wx.MultiChoiceDialog(G2frame, 'Which new data to use?', 'Use data', TextList, wx.CHOICEDLG_STYLE)
     3947            dlg = G2G.G2MultiChoiceDialog(G2frame, 'Select reflection sets to use',
     3948                    'Use data',TextList)
    39473949            try:
    39483950                if dlg.ShowModal() == wx.ID_OK:
     
    59235925                else:   # xray - typical caked 2D image data
    59245926                    refData[name] = np.column_stack((Refs[0],Refs[1],Refs[2],Refs[5+im],Refs[8+im],Refs[12+im+it],np.zeros_like(Refs[0])))
    5925         Error = G2mth.FitTexture(General,Gangls,refData,keyList)
     5927        pgbar = wx.ProgressDialog('Texture fit','Residual = %5.2f'%(101.0),101.0,
     5928            style = wx.PD_ELAPSED_TIME|wx.PD_AUTO_HIDE)
     5929        Error = G2mth.FitTexture(General,Gangls,refData,keyList,pgbar)
     5930        pgbar.Destroy()
    59265931        if Error:
    59275932            wx.MessageBox(Error,caption='Fit Texture Error',style=wx.ICON_EXCLAMATION)
     
    59775982            G2gd.SetDataMenuBar(G2frame,G2frame.dataFrame.DataMenu)
    59785983            G2ddG.UpdateDData(G2frame,DData,data)
    5979             G2plt.PlotSizeStrainPO(G2frame,data,hist='',Start=True)           
     5984            wx.CallAfter(G2plt.PlotSizeStrainPO,G2frame,data,hist='',Start=True)           
    59805985        elif text == 'Atoms':
    59815986            G2gd.SetDataMenuBar(G2frame,G2frame.dataFrame.AtomsMenu)
     
    60076012            G2gd.SetDataMenuBar(G2frame,G2frame.dataFrame.TextureMenu)
    60086013            UpdateTexture()                       
    6009             G2plt.PlotTexture(G2frame,data,Start=True)           
     6014            wx.CallAfter(G2plt.PlotTexture,G2frame,data,Start=True)           
    60106015        elif text == 'Pawley reflections':
    60116016            G2gd.SetDataMenuBar(G2frame,G2frame.dataFrame.PawleyMenu)
     
    60136018        else:
    60146019            G2gd.SetDataMenuBar(G2frame)
     6020           
    60156021    def FillMenus():
    60166022        '''Create the Select tab menus and bind to all menu items
Note: See TracChangeset for help on using the changeset viewer.