project_name string | class_name string | class_modifiers string | class_implements int64 | class_extends int64 | function_name string | function_body string | cyclomatic_complexity int64 | NLOC int64 | num_parameter int64 | num_token int64 | num_variable int64 | start_line int64 | end_line int64 | function_index int64 | function_params string | function_variable string | function_return_type string | function_body_line_type string | function_num_functions int64 | function_num_lines int64 | outgoing_function_count int64 | outgoing_function_names string | incoming_function_count int64 | incoming_function_names string | lexical_representation string |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | _initMenus._makemenu | def _makemenu(): # routine to create menu when first usedself.StrStaMenu = wx.MenuBar()self.PrefillDataMenu(self.StrStaMenu)self.StrStaEdit = wx.Menu(title='')self.StrStaMenu.Append(menu=self.StrStaEdit, title='Operations')self.StrStaEdit.Append(G2G.wxID_APPENDDZERO,'Append d-zero','Append d-zero for one ring')self.Str... | 1 | 17 | 0 | 202 | 0 | 7,090 | 7,106 | 7,090 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_initMenus._makemenu) defined within the public class called public.The function start at line 7090 and ends at 7106. It contains 17 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | _initMenus._makemenu | def _makemenu(): # routine to create menu when first usedself.RigidBodyMenu = wx.MenuBar()self.PrefillDataMenu(self.RigidBodyMenu)self.ResidueRBMenu = wx.Menu(title='')self.ResidueRBMenu.Append(G2G.wxID_RIGIDBODYIMPORT,'Import XYZ','Import rigid body XYZ from file')self.ResidueRBMenu.Append(G2G.wxID_RIGIDBODYIMP,'Extra... | 1 | 14 | 0 | 160 | 0 | 7,113 | 7,126 | 6,482 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_initMenus._makemenu) defined within the public class called public.The function start at line 7113 and ends at 7126. It contains 14 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | _initMenus._makemenu | def _makemenu(): # routine to create menu when first usedself.PDFPksMenu = wx.MenuBar()self.PrefillDataMenu(self.PDFPksMenu)self.PDFPksEdit = wx.Menu(title='')self.PDFPksMenu.Append(menu=self.PDFPksEdit, title='PDF Peaks')self.PDFPksEdit.Append(G2G.wxID_PDFPKSFIT,'PDF peak fit','Fit PDF peaks')self.PDFPksEdit.Append(G2... | 1 | 11 | 0 | 118 | 0 | 7,131 | 7,141 | 7,131 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_initMenus._makemenu) defined within the public class called public.The function start at line 7131 and ends at 7141. It contains 11 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | _initMenus._makemenu | def _makemenu(): # routine to create menu when first used# note that the phase menus are all interconnected, so they all get created at once.self.DataGeneral = wx.MenuBar()self.PrefillDataMenu(self.DataGeneral)self.DataGeneral.Append(menu=wx.Menu(title=''),title='Select tab')self.GeneralCalc = wx.Menu(title='')self.Dat... | 3 | 309 | 0 | 3,625 | 0 | 7,148 | 7,496 | 7,148 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_initMenus._makemenu) defined within the public class called public.The function start at line 7148 and ends at 7496. It contains 309 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | _initMenus | def _initMenus(self):'''define all GSAS-II data window menus.NB: argument order conforms to both classic & phoenix variants for wx.Do not use argument= for these as the argument names are different for classic & phoenix'''#### GSAS-II Menu items# Main menuG2frame = self.GetTopLevelParent()G2frame.GSASIIMenu = wx.MenuBa... | 1 | 132 | 1 | 876 | 0 | 6,417 | 7,497 | 6,417 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_initMenus) defined within the public class called public.The function start at line 6417 and ends at 7497. It contains 132 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | readFromFile | def readFromFile(reader):'''Define a caption for a file import menu item'''nam = reader.formatNameif nam.startswith('(user'):return nam.replace('(user)','(user) from')+' file'else:return f'from {reader.formatName} file' | 2 | 6 | 1 | 35 | 1 | 7,500 | 7,506 | 7,500 | null | ['nam'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (readFromFile) defined within the public class called public.The function start at line 7500 and ends at 7506. It contains 6 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateNotebook.onUpdateWindow | def onUpdateWindow(event=None):'redraw the window'wx.CallAfter(UpdateNotebook,G2frame,data) | 1 | 3 | 1 | 18 | 0 | 7,514 | 7,516 | 7,514 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateNotebook.onUpdateWindow) defined within the public class called public.The function start at line 7514 and ends at 7516. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateNotebook.OnAddNotebook | def OnAddNotebook(event):'add comment text to notebook and redisplay'dlg = G2G.SingleStringDialog(G2frame.dataWindow,'Enter Comment','','',(600,50),'''Enter a string here that will be included in the NotebookThis can contain any text you wish. It will have no effect on GSAS-IIother than being included in the Notebook s... | 2 | 12 | 1 | 66 | 0 | 7,517 | 7,528 | 7,517 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateNotebook.OnAddNotebook) defined within the public class called public.The function start at line 7517 and ends at 7528. It contains 12 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateNotebook.OnSaveNotebook | def OnSaveNotebook(event):filename = os.path.splitext(G2frame.GSASprojectfile)[0]+'_notebook.txt'filename = os.path.join(G2frame.dirname,filename)with open(filename,'w') as fp:fp.write(textBox.GetText())print(f'Notebook contents written into {filename}') | 1 | 6 | 1 | 61 | 0 | 7,529 | 7,534 | 7,529 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateNotebook.OnSaveNotebook) defined within the public class called public.The function start at line 7529 and ends at 7534. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateNotebook.onPlotNotebook | def onPlotNotebook():'Locate R values from the Notebook and plot them'NBinfo['plotLbl']if NBinfo['plotLbl']['GOF']:target = 'GOF'elif NBinfo['plotLbl']['Rw']:target = 'Rw'else:G2frame.G2plotNB.Delete('fit results')returnvals = []for i,l in enumerate(data):ls = l.split()if len(ls) < 1: # empty linecontinueelif '[' not i... | 9 | 24 | 0 | 191 | 0 | 7,535 | 7,558 | 7,535 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateNotebook.onPlotNotebook) defined within the public class called public.The function start at line 7535 and ends at 7558. It contains 24 lines of code and it has a cyclomatic complexity of 9. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateNotebook | def UpdateNotebook(G2frame,data):'''Called when the data tree notebook entry is selected. Allows forediting of the text in that tree entry'''def onUpdateWindow(event=None):'redraw the window'wx.CallAfter(UpdateNotebook,G2frame,data)def OnAddNotebook(event):'add comment text to notebook and redisplay'dlg = G2G.SingleStr... | 26 | 116 | 2 | 1,017 | 26 | 7,510 | 7,674 | 7,510 | null | ['bigSizer', 'XY', 'topSizer', 'cId', 'ls', 'target', 'parent', 'selLbl', 'fBtn', 'filename', 'dlg', 'textBox', 'show', 'line', 'prefix', 'vals', 'first', 'addBtn', 'order', 'Btn', 'filterPrefix', 'filterLbls', 'pos', 'Y', 'controls', 'botSizer'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateNotebook) defined within the public class called public.The function start at line 7510 and ends at 7674. It contains 116 lines of code and it has a cyclomatic complexity of 26. It takes 2 parameters, represented as [7510.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateComments | def UpdateComments(G2frame,data):'''Place comments into the data window'''lines = ""topSizer = G2frame.dataWindow.topBoxparent = G2frame.dataWindow.topPaneltopSizer.Add(wx.StaticText(parent,label=' Information from data file'),0,WACV)topSizer.Add((-1,-1),1,wx.EXPAND)topSizer.Add(G2G.HelpButton(parent,helpIndex=G2frame.... | 3 | 16 | 2 | 174 | 4 | 7,677 | 7,694 | 7,677 | null | ['lines', 'text', 'parent', 'topSizer'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateComments) defined within the public class called public.The function start at line 7677 and ends at 7694. It contains 16 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [7677.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateControls.UpdateControls.SeqSizer.OnSelectData | def OnSelectData(event):choices = GetGPXtreeDataNames(G2frame,['PWDR','HKLF',])phaseRIdList,histdict = G2frame.GetPhaseInfofromTree(Used=True)usedHistograms = []for k in histdict:usedHistograms += histdict[k]usedHistograms = list(set(usedHistograms))choices = [i for i in choices if i in usedHistograms]if len(choices) =... | 11 | 33 | 1 | 238 | 0 | 7,740 | 7,773 | 7,740 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateControls.UpdateControls.SeqSizer.OnSelectData) defined within the public class called public.The function start at line 7740 and ends at 7773. It contains 33 lines of code and it has a cyclomatic complexity of 11. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateControls.UpdateControls.SeqSizer.OnReverse | def OnReverse(event):data['Reverse Seq'] = reverseSel.GetValue() | 1 | 2 | 1 | 15 | 0 | 7,775 | 7,776 | 7,775 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateControls.UpdateControls.SeqSizer.OnReverse) defined within the public class called public.The function start at line 7775 and ends at 7776. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateControls.UpdateControls.SeqSizer.OnCopySel | def OnCopySel(event):data['Copy2Next'] = copySel.GetValue() | 1 | 2 | 1 | 15 | 0 | 7,778 | 7,779 | 7,778 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateControls.UpdateControls.SeqSizer.OnCopySel) defined within the public class called public.The function start at line 7778 and ends at 7779. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateControls.UpdateControls.SeqSizer.OnClrSeq | def OnClrSeq(event):sId = GetGPXtreeItemId(G2frame,G2frame.root,'Sequential results')if sId:dlg = wx.MessageDialog(G2frame,'Are you sure?','Delete sequential results table',wx.OK|wx.CANCEL)try:if dlg.ShowModal() == wx.ID_OK:G2frame.GPXtree.Delete(sId)finally:dlg.Destroy() | 4 | 9 | 1 | 68 | 0 | 7,781 | 7,789 | 7,781 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateControls.UpdateControls.SeqSizer.OnClrSeq) defined within the public class called public.The function start at line 7781 and ends at 7789. It contains 9 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateControls.SeqSizer | def SeqSizer():def OnSelectData(event):choices = GetGPXtreeDataNames(G2frame,['PWDR','HKLF',])phaseRIdList,histdict = G2frame.GetPhaseInfofromTree(Used=True)usedHistograms = []for k in histdict:usedHistograms += histdict[k]usedHistograms = list(set(usedHistograms))choices = [i for i in choices if i in usedHistograms]if... | 3 | 33 | 0 | 307 | 0 | 7,738 | 7,818 | 7,738 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateControls.SeqSizer) defined within the public class called public.The function start at line 7738 and ends at 7818. It contains 33 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateControls.UpdateControls.LSSizer.OnDerivType | def OnDerivType(event):data['deriv type'] = derivSel.GetValue()derivSel.SetValue(data['deriv type'])wx.CallAfter(UpdateControls,G2frame,data) | 1 | 4 | 1 | 34 | 0 | 7,823 | 7,826 | 7,823 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateControls.UpdateControls.LSSizer.OnDerivType) defined within the public class called public.The function start at line 7823 and ends at 7826. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateControls.UpdateControls.LSSizer.OnMaxCycles | def OnMaxCycles(event):data['max cyc'] = int(maxCyc.GetValue())maxCyc.SetValue(str(data['max cyc'])) | 1 | 3 | 1 | 30 | 0 | 7,828 | 7,830 | 7,828 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateControls.UpdateControls.LSSizer.OnMaxCycles) defined within the public class called public.The function start at line 7828 and ends at 7830. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateControls.UpdateControls.LSSizer.OnMarqLam | def OnMarqLam(event):data['Marquardt'] = int(marqLam.GetValue())marqLam.SetValue(str(data['Marquardt'])) | 1 | 3 | 1 | 30 | 0 | 7,832 | 7,834 | 7,832 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateControls.UpdateControls.LSSizer.OnMarqLam) defined within the public class called public.The function start at line 7832 and ends at 7834. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateControls.UpdateControls.LSSizer.OnFactor | def OnFactor(event):event.Skip()try:value = min(max(float(Factr.GetValue()),0.00001),100.)except ValueError:value = 1.0data['shift factor'] = valueFactr.SetValue('%.5f'%(value)) | 2 | 8 | 1 | 59 | 0 | 7,836 | 7,843 | 7,836 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateControls.UpdateControls.LSSizer.OnFactor) defined within the public class called public.The function start at line 7836 and ends at 7843. It contains 8 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateControls.UpdateControls.LSSizer.OnFsqRef | def OnFsqRef(event):data['F**2'] = fsqRef.GetValue() | 1 | 2 | 1 | 15 | 0 | 7,845 | 7,846 | 7,845 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateControls.UpdateControls.LSSizer.OnFsqRef) defined within the public class called public.The function start at line 7845 and ends at 7846. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateControls.LSSizer | def LSSizer():def OnDerivType(event):data['deriv type'] = derivSel.GetValue()derivSel.SetValue(data['deriv type'])wx.CallAfter(UpdateControls,G2frame,data)def OnMaxCycles(event):data['max cyc'] = int(maxCyc.GetValue())maxCyc.SetValue(str(data['max cyc']))def OnMarqLam(event):data['Marquardt'] = int(marqLam.GetValue())m... | 5 | 57 | 0 | 836 | 0 | 7,821 | 7,902 | 7,821 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateControls.LSSizer) defined within the public class called public.The function start at line 7821 and ends at 7902. It contains 57 lines of code and it has a cyclomatic complexity of 5. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateControls.UpdateControls.AuthSizer.OnAuthor | def OnAuthor(event):event.Skip()data['Author'] = auth.GetValue() | 1 | 3 | 1 | 20 | 0 | 7,905 | 7,907 | 7,905 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateControls.UpdateControls.AuthSizer.OnAuthor) defined within the public class called public.The function start at line 7905 and ends at 7907. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateControls.AuthSizer | def AuthSizer():def OnAuthor(event):event.Skip()data['Author'] = auth.GetValue()Author = data['Author']authSizer = wx.BoxSizer(wx.HORIZONTAL)authSizer.Add(wx.StaticText(G2frame.dataWindow,label=' CIF Author (last, first):'),0,WACV)auth = wx.TextCtrl(G2frame.dataWindow,-1,value=Author,style=wx.TE_PROCESS_ENTER)auth.Bind... | 1 | 10 | 0 | 98 | 0 | 7,904 | 7,916 | 7,904 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateControls.AuthSizer) defined within the public class called public.The function start at line 7904 and ends at 7916. It contains 10 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateControls.ClearFrozen | def ClearFrozen(event):'Removes all frozen parameters by clearing the entire dict'Controls['parmFrozen'] = {}wx.CallAfter(UpdateControls,G2frame,data) | 1 | 4 | 1 | 23 | 0 | 7,918 | 7,921 | 7,918 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateControls.ClearFrozen) defined within the public class called public.The function start at line 7918 and ends at 7921. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateControls | def UpdateControls(G2frame,data):'''Edit overall GSAS-II controls in main Controls data tree entry'''#patchif 'deriv type' not in data:data = {}data['deriv type'] = 'analytic Hessian'data['min dM/M'] = 0.001data['shift factor'] = 1.data['max cyc'] = 3data['F**2'] = Falseif 'SVDtol' not in data:data['SVDtol'] = 1.e-6if ... | 25 | 107 | 2 | 961 | 44 | 7,697 | 7,993 | 7,697 | null | ['usrrej', 'topSizer', 'Controls', 'item', 'names', 'SeqData', 'clrSeq', 'Author', 'subSizer', 'parent', 'selSeqData', 'copySel', 'authSizer', 'constraints', 'auth', 'dlg', 'LSSizer', 'selSizer', 'frozenList', 'tmpSizer', 'count', 'parmFrozen', 'fsqRef', 'btn', 'dataSizer', 'Choice', 'seqSizer', 'sId', 'lbl', 'usedHist... | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateControls) defined within the public class called public.The function start at line 7697 and ends at 7993. It contains 107 lines of code and it has a cyclomatic complexity of 25. It takes 2 parameters, represented as [7697.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePWHKPlot.onEditSimRange | def onEditSimRange(event):'Edit simulation range'if 'TOF' in data[0].get('simType','CW'):inp = [min(data[1][0])/1000.,max(data[1][0])/1000.,None]inp[2] = (np.log(inp[1]) - np.log(inp[0]))/(len(data[1][0])-1.)names = ('start TOF(ms)', 'end TOF(ms)', 'DT/T')dlg = G2G.ScrolledMultiEditor(G2frame,[inp] * len(inp), range(le... | 6 | 53 | 1 | 554 | 0 | 8,004 | 8,056 | 8,004 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePWHKPlot.onEditSimRange) defined within the public class called public.The function start at line 8004 and ends at 8056. It contains 53 lines of code and it has a cyclomatic complexity of 6. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePWHKPlot.OnPlot1DHKL | def OnPlot1DHKL(event):'''Plots a 1D stick diagram of reflection intensities'''refList = data[1]['RefList']G2plt.Plot1DSngl(G2frame,newPlot=True,hklRef=refList,Super=Super,Title=phaseName) | 1 | 3 | 1 | 37 | 0 | 8,058 | 8,061 | 8,058 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePWHKPlot.OnPlot1DHKL) defined within the public class called public.The function start at line 8058 and ends at 8061. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePWHKPlot.OnPlot3DHKL | def OnPlot3DHKL(event):'''Plots in 3D reciprocal space with green dots proportional to F^2, etc. from single histogram'''refList = data[1]['RefList']FoMax = np.max(refList.T[8+Super])Hmin = np.array([int(np.min(refList.T[0])),int(np.min(refList.T[1])),int(np.min(refList.T[2]))])Hmax = np.array([int(np.max(refList.T[0])... | 1 | 11 | 1 | 338 | 0 | 8,063 | 8,074 | 8,063 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePWHKPlot.OnPlot3DHKL) defined within the public class called public.The function start at line 8063 and ends at 8074. It contains 11 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePWHKPlot.OnPlotAll3DHKL | def OnPlotAll3DHKL(event):'''Plots in 3D reciprocal space with green dots proportional to F^2, etc. from all SHKL histograms'''choices = GetGPXtreeDataNames(G2frame,['HKLF',])dlg = G2G.G2MultiChoiceDialog(G2frame, 'Select reflection sets to plot','Use data',choices)try:if dlg.ShowModal() == wx.ID_OK:refNames = [choices... | 6 | 28 | 1 | 455 | 0 | 8,076 | 8,105 | 8,076 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePWHKPlot.OnPlotAll3DHKL) defined within the public class called public.The function start at line 8076 and ends at 8105. It contains 28 lines of code and it has a cyclomatic complexity of 6. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePWHKPlot.OnMergeHKL | def OnMergeHKL(event):'''Merge HKLF data sets to unique set according to Laue symmetry'''Name = G2frame.GPXtree.GetItemText(G2frame.PatternId)Inst = G2frame.GPXtree.GetItemPyData(GetGPXtreeItemId(G2frame,G2frame.PatternId,'Instrument Parameters'))CId = GetGPXtreeItemId(G2frame,G2frame.PatternId,'Comments')if CId:Commen... | 23 | 119 | 1 | 1,238 | 0 | 8,108 | 8,228 | 8,108 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePWHKPlot.OnMergeHKL) defined within the public class called public.The function start at line 8108 and ends at 8228. It contains 119 lines of code and it has a cyclomatic complexity of 23. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePWHKPlot.OnFixFsqFsq | def OnFixFsqFsq(event):''' Fix HKLF data that had been misimported as F instead of F^2'''Name = G2frame.GPXtree.GetItemText(G2frame.PatternId)Inst = G2frame.GPXtree.GetItemPyData(GetGPXtreeItemId(G2frame,G2frame.PatternId,'Instrument Parameters'))CId = GetGPXtreeItemId(G2frame,G2frame.PatternId,'Comments')if CId:Commen... | 9 | 39 | 1 | 446 | 0 | 8,230 | 8,269 | 8,230 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePWHKPlot.OnFixFsqFsq) defined within the public class called public.The function start at line 8230 and ends at 8269. It contains 39 lines of code and it has a cyclomatic complexity of 9. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePWHKPlot.UpdatePWHKPlot.OnErrorAnalysis.OnPlotFoFcVsFc | def OnPlotFoFcVsFc():''' Extinction check, plots Fo-Fc & 1/ExtC vs Fo for single crystal data '''test = lambda xy:(xy[iFlg+Super]>0 and xy[iFo+Super]>0)iFlg,iFo,iSig,iFc,iFcT,iExt = 3,5,6,7,9,11refList = data[1]['RefList']wtFctr = data[0]['wtFactor']Fo = np.sqrt(np.array([xy[iFo+Super] for xy in refList if test(xy)]))F... | 13 | 14 | 0 | 343 | 0 | 8,274 | 8,288 | 8,274 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePWHKPlot.UpdatePWHKPlot.OnErrorAnalysis.OnPlotFoFcVsFc) defined within the public class called public.The function start at line 8274 and ends at 8288. It contains 14 lines of code and it has a cyclomatic complexity of 13. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePWHKPlot.OnErrorAnalysis | def OnErrorAnalysis(event):'''Plots an "Abrams" plot - sorted delta/sig across data set.Should be straight line of slope 1 - never is'''def OnPlotFoFcVsFc():''' Extinction check, plots Fo-Fc & 1/ExtC vs Fo for single crystal data '''test = lambda xy:(xy[iFlg+Super]>0 and xy[iFo+Super]>0)iFlg,iFo,iSig,iFc,iFcT,iExt = 3,... | 2 | 5 | 1 | 27 | 0 | 8,271 | 8,292 | 8,271 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePWHKPlot.OnErrorAnalysis) defined within the public class called public.The function start at line 8271 and ends at 8292. It contains 5 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePWHKPlot.onCopyPlotCtrls | def onCopyPlotCtrls(event):'''Respond to menu item to copy multiple sections from a histogram.Need this here to pass on the G2frame object.'''G2pdG.CopyPlotCtrls(G2frame) | 1 | 2 | 1 | 12 | 0 | 8,297 | 8,301 | 8,297 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePWHKPlot.onCopyPlotCtrls) defined within the public class called public.The function start at line 8297 and ends at 8301. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePWHKPlot.onCopySelectedItems | def onCopySelectedItems(event):'''Respond to menu item to copy multiple sections from a histogram.Need this here to pass on the G2frame object.'''G2pdG.CopySelectedHistItems(G2frame) | 1 | 2 | 1 | 12 | 0 | 8,303 | 8,307 | 8,303 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePWHKPlot.onCopySelectedItems) defined within the public class called public.The function start at line 8303 and ends at 8307. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePWHKPlot.OnAddMag | def OnAddMag(event):'Respond to the request to create a magnification region'if not data[0]['Magnification']: data[0]['Magnification'] = [[None,1.0]]data[0]['Magnification'] += [[(data[1][0][0]+data[1][0][-1])/2,2.]]wx.CallAfter(UpdatePWHKPlot,G2frame,kind,G2frame.PatternId) | 2 | 5 | 1 | 88 | 0 | 8,309 | 8,313 | 8,309 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePWHKPlot.OnAddMag) defined within the public class called public.The function start at line 8309 and ends at 8313. It contains 5 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePWHKPlot.OnDelMag | def OnDelMag(event):'Respond to the request to delete a magnification region'del data[0]['Magnification'][event.EventObject.row]if len(data[0]['Magnification']) == 1: data[0]['Magnification'] = []wx.CallAfter(UpdatePWHKPlot,G2frame,kind,G2frame.PatternId) | 2 | 5 | 1 | 59 | 0 | 8,314 | 8,318 | 8,314 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePWHKPlot.OnDelMag) defined within the public class called public.The function start at line 8314 and ends at 8318. It contains 5 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePWHKPlot.OnEditMag | def OnEditMag(**args):'Update to show edits to mag factors in window and plot'wx.CallAfter(UpdatePWHKPlot,G2frame,kind,G2frame.PatternId) | 1 | 3 | 1 | 21 | 0 | 8,319 | 8,321 | 8,319 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePWHKPlot.OnEditMag) defined within the public class called public.The function start at line 8319 and ends at 8321. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePWHKPlot | def UpdatePWHKPlot(G2frame,kind,item):'''Called when the histogram main tree entry is called. Displays thehistogram weight factor, refinement statistics for the histogramand the range of data for a simulation.Also invokes a plot of the histogram.'''def onEditSimRange(event):'Edit simulation range'if 'TOF' in data[0].ge... | 44 | 217 | 3 | 2,603 | 90 | 7,997 | 8,554 | 7,997 | null | ['Comments', 'pId', 'refList', 'CId', 'Vpoint', 'inp', 'page', 'sumFo', 'Hmax', 'Nmerge', 'Inst', 'edit', 'num', 'wtSizer', 'newHKL', 'S', 'delmag', 'sig', 'Name', 'controls', 'N', 'HKL', 'phaseId', 'newdata', 'parent', 'mergeRef', 'step', 'dlg', 'MaxN', 'simSizer', 'newData', 'val', 'reflData', 'DBW', 'Limits', 'Sig',... | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePWHKPlot) defined within the public class called public.The function start at line 7997 and ends at 8554. It contains 217 lines of code and it has a cyclomatic complexity of 44. It takes 3 parameters, represented as [7997.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | GetGPXtreeDataNames | def GetGPXtreeDataNames(G2frame,dataTypes):'''Finds all items in tree that match a 4 character prefix:param wx.Frame G2frame: Data tree frame object:param list dataTypes: Contains one or more data tree item types to be matchedsuch as ['IMG '] or ['PWDR','HKLF']:returns: a list of tree item names for the matching items'... | 3 | 9 | 2 | 72 | 2 | 8,557 | 8,572 | 8,557 | null | ['name', 'names'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (GetGPXtreeDataNames) defined within the public class called public.The function start at line 8557 and ends at 8572. It contains 9 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [8557.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | GetGPXtreeItemId | def GetGPXtreeItemId(G2frame, parentId, itemText):'''Find the tree item that matches the text in itemText starting with parentId:param wx.Frame G2frame: Data tree frame object:param wx.TreeItemId parentId: tree item to start search with:param str itemText: text for tree item'''try:item, cookie = G2frame.GPXtree.GetFirs... | 4 | 10 | 3 | 61 | 0 | 8,574 | 8,589 | 8,574 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (GetGPXtreeItemId) defined within the public class called public.The function start at line 8574 and ends at 8589. It contains 10 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [8574.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | SelectDataTreeItem.OnShowShift | def OnShowShift(event):if 'cycle' in event.EventObject.GetLabel():shftesd = [data['Rvals']['lastShifts'].get(k,0)/s for k,s in zip(data['varyList'],data['sig'])]lbl = 'Total shift/esd for last refinement cycle'else:if 'Lastshft' not in data:returnif data['Lastshft'] is None:returnshftesd = data['Lastshft']/data['sig']l... | 5 | 14 | 1 | 117 | 0 | 8,598 | 8,611 | 8,598 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (SelectDataTreeItem.OnShowShift) defined within the public class called public.The function start at line 8598 and ends at 8611. It contains 14 lines of code and it has a cyclomatic complexity of 5. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | SelectDataTreeItem | def SelectDataTreeItem(G2frame,item,oldFocus=None):'''Called from :meth:`GSASIIdataGUI.GSASII.OnDataTreeSelChanged` when a item is selected on the tree.Also called from GSASII.OnGPXtreeEndDrag, OnAddPhase -- might be better to select item, triggeringthe the bind to SelectDataTreeItemAlso Called in GSASIIphsGUI.UpdatePh... | 115 | 401 | 3 | 3,878 | 26 | 8,591 | 9,082 | 8,591 | null | ['topSizer', 'newPlot', 'masks', 'names', 'text', 'showShift', 'datatype', 'Rvals', 'parent', 'parentID', 'plotSizer', 'chisq_data', 'suffix1', 'lbl', 'name', 'prfx1', 'prfx', 'peaks', 'suffix', 'phaseName', 'mainSizer', 'shftesd', 'Id', 'strsta', 'data', 'Nvars'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (SelectDataTreeItem) defined within the public class called public.The function start at line 8591 and ends at 9082. It contains 401 lines of code and it has a cyclomatic complexity of 115. It takes 3 parameters, represented as [8591.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | SetDataMenuBar | def SetDataMenuBar(G2frame,menu=None):'''Attach the appropriate menu (a wx.MenuBar object) for theselected data tree item to the system's menu bar.To speed startup of the main window, most menu bars are notcreated at startup of the program, instead, the menu variableis instead initially defined with a reference to rout... | 6 | 13 | 2 | 96 | 0 | 9,094 | 9,133 | 9,094 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (SetDataMenuBar) defined within the public class called public.The function start at line 9094 and ends at 9133. It contains 13 lines of code and it has a cyclomatic complexity of 6. It takes 2 parameters, represented as [9094.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | FindPhaseItem | def FindPhaseItem(G2frame):'''Finds the Phase item in the tree. If not present it adds onealso adding 'Hist/Phase' if config var SeparateHistPhaseTreeItemis set as True.'''if not GetGPXtreeItemId(G2frame,G2frame.root,'Phases'):sub = G2frame.GPXtree.AppendItem(parent=G2frame.root,text='Phases')if GSASIIpath.GetConfigVal... | 3 | 8 | 1 | 79 | 1 | 9,136 | 9,147 | 9,136 | null | ['sub'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (FindPhaseItem) defined within the public class called public.The function start at line 9136 and ends at 9147. It contains 8 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.UpdateDData.PlotSizer.OnPlotSel | def OnPlotSel(event):Obj = event.GetEventObject()generalData['Data plot type'] = Obj.GetStringSelection()G2plt.PlotSizeStrainPO(G2frame,data,G2frame.hist)wx.CallLater(100,UpdateDData,G2frame,DData,data,G2frame.hist) | 1 | 5 | 1 | 52 | 0 | 48 | 52 | 48 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.UpdateDData.PlotSizer.OnPlotSel) defined within the public class called public.The function start at line 48 and ends at 52. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.UpdateDData.PlotSizer.OnPOhkl | def OnPOhkl(event):event.Skip()Obj = event.GetEventObject()Saxis = Obj.GetValue().split()try:hkl = [int(Saxis[i]) for i in range(3)]except (ValueError,IndexError):hkl = generalData['POhkl']if not np.any(np.array(hkl)):hkl = generalData['POhkl']generalData['POhkl'] = hklh,k,l = hklObj.SetValue('%3d %3d %3d'%(h,k,l))G2pl... | 4 | 14 | 1 | 120 | 0 | 54 | 67 | 54 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.UpdateDData.PlotSizer.OnPOhkl) defined within the public class called public.The function start at line 54 and ends at 67. It contains 14 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.UpdateDData.PlotSizer.OnProj | def OnProj(event):Obj = event.GetEventObject()generalData['3Dproj'] = Obj.GetValue()G2plt.PlotSizeStrainPO(G2frame,data,G2frame.hist) | 1 | 4 | 1 | 34 | 0 | 69 | 72 | 69 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.UpdateDData.PlotSizer.OnProj) defined within the public class called public.The function start at line 69 and ends at 72. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.PlotSizer | def PlotSizer():def OnPlotSel(event):Obj = event.GetEventObject()generalData['Data plot type'] = Obj.GetStringSelection()G2plt.PlotSizeStrainPO(G2frame,data,G2frame.hist)wx.CallLater(100,UpdateDData,G2frame,DData,data,G2frame.hist)def OnPOhkl(event):event.Skip()Obj = event.GetEventObject()Saxis = Obj.GetValue().split()... | 4 | 34 | 0 | 355 | 0 | 46 | 103 | 46 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.PlotSizer) defined within the public class called public.The function start at line 46 and ends at 103. It contains 34 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.UpdateDData.ScaleSizer.OnScaleRef | def OnScaleRef(event):Obj = event.GetEventObject()UseList[G2frame.hist]['Scale'][1] = Obj.GetValue() | 1 | 3 | 1 | 30 | 0 | 107 | 109 | 107 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.UpdateDData.ScaleSizer.OnScaleRef) defined within the public class called public.The function start at line 107 and ends at 109. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.UpdateDData.ScaleSizer.onChangeFraction | def onChangeFraction(invalid,value,tc):wx.CallLater(100,RepaintHistogramInfo,DData.GetScrollPos(wx.VERTICAL)) | 1 | 2 | 3 | 26 | 0 | 110 | 111 | 110 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.UpdateDData.ScaleSizer.onChangeFraction) defined within the public class called public.The function start at line 110 and ends at 111. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [110.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.ScaleSizer | def ScaleSizer():def OnScaleRef(event):Obj = event.GetEventObject()UseList[G2frame.hist]['Scale'][1] = Obj.GetValue()def onChangeFraction(invalid,value,tc):wx.CallLater(100,RepaintHistogramInfo,DData.GetScrollPos(wx.VERTICAL))scaleSizer = wx.BoxSizer(wx.HORIZONTAL)if 'PWDR' in G2frame.hist:scaleRef = wx.CheckBox(DData,... | 7 | 20 | 0 | 248 | 0 | 105 | 129 | 105 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.ScaleSizer) defined within the public class called public.The function start at line 105 and ends at 129. It contains 20 lines of code and it has a cyclomatic complexity of 7. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.OnLGmixRef | def OnLGmixRef(event):Obj = event.GetEventObject()hist,name = Indx[Obj.GetId()]UseList[G2frame.hist][name][2][2] = Obj.GetValue() | 1 | 4 | 1 | 45 | 0 | 131 | 134 | 131 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.OnLGmixRef) defined within the public class called public.The function start at line 131 and ends at 134. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.OnSizeType | def OnSizeType(event):Obj = event.GetEventObject()UseList[G2frame.hist]['Size'][0] = Obj.GetValue()G2plt.PlotSizeStrainPO(G2frame,data,G2frame.hist)wx.CallLater(100,RepaintHistogramInfo,DData.GetScrollPos(wx.VERTICAL)) | 1 | 5 | 1 | 59 | 0 | 136 | 140 | 136 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.OnSizeType) defined within the public class called public.The function start at line 136 and ends at 140. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.OnSizeRef | def OnSizeRef(event):Obj = event.GetEventObject()hist,pid = Indx[Obj.GetId()]if UseList[G2frame.hist]['Size'][0] == 'ellipsoidal':UseList[G2frame.hist]['Size'][5][pid] = Obj.GetValue()else:UseList[G2frame.hist]['Size'][2][pid] = Obj.GetValue() | 2 | 7 | 1 | 84 | 0 | 142 | 148 | 142 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.OnSizeRef) defined within the public class called public.The function start at line 142 and ends at 148. It contains 7 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.OnStrainType | def OnStrainType(event):Obj = event.GetEventObject()UseList[G2frame.hist]['Mustrain'][0] = Obj.GetValue()G2plt.PlotSizeStrainPO(G2frame,data,G2frame.hist)wx.CallLater(100,RepaintHistogramInfo,DData.GetScrollPos(wx.VERTICAL)) | 1 | 5 | 1 | 59 | 0 | 150 | 154 | 150 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.OnStrainType) defined within the public class called public.The function start at line 150 and ends at 154. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.OnStrainRef | def OnStrainRef(event):Obj = event.GetEventObject()hist,pid = Indx[Obj.GetId()]if UseList[G2frame.hist]['Mustrain'][0] == 'generalized':UseList[G2frame.hist]['Mustrain'][5][pid] = Obj.GetValue()else:UseList[G2frame.hist]['Mustrain'][2][pid] = Obj.GetValue() | 2 | 7 | 1 | 84 | 0 | 156 | 162 | 156 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.OnStrainRef) defined within the public class called public.The function start at line 156 and ends at 162. It contains 7 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.OnStrainAxis | def OnStrainAxis(event):event.Skip()Obj = event.GetEventObject()Saxis = Obj.GetValue().split()try:hkl = [int(Saxis[i]) for i in range(3)]except (ValueError,IndexError):hkl = UseList[G2frame.hist]['Mustrain'][3]if not np.any(np.array(hkl)):hkl = UseList[G2frame.hist]['Mustrain'][3]UseList[G2frame.hist]['Mustrain'][3] = ... | 4 | 14 | 1 | 146 | 0 | 164 | 177 | 164 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.OnStrainAxis) defined within the public class called public.The function start at line 164 and ends at 177. It contains 14 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.OnResetStrain | def OnResetStrain(event):Obj = event.GetEventObject()item,name = Indx[Obj.GetId()]if name == 'isotropic':UseList[item]['Mustrain'][1][0] = 1000.0elif name == 'uniaxial':UseList[item]['Mustrain'][1][0] = 1000.0UseList[item]['Mustrain'][1][1] = 1000.0elif name == 'generalized':muiso = 1000.cell = generalData['Cell'][1:7]... | 4 | 15 | 1 | 156 | 0 | 179 | 193 | 179 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.OnResetStrain) defined within the public class called public.The function start at line 179 and ends at 193. It contains 15 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.OnPOAxis | def OnPOAxis(event):event.Skip()Obj = event.GetEventObject()Saxis = Obj.GetValue().split()try:hkl = [int(Saxis[i]) for i in range(3)]except (ValueError,IndexError):hkl = UseList[G2frame.hist]['Pref.Ori.'][3]if not np.any(np.array(hkl)):hkl = UseList[G2frame.hist]['Pref.Ori.'][3]UseList[G2frame.hist]['Pref.Ori.'][3] = h... | 4 | 13 | 1 | 132 | 0 | 195 | 207 | 195 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.OnPOAxis) defined within the public class called public.The function start at line 195 and ends at 207. It contains 13 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.OnPOOrder | def OnPOOrder(event):'''Respond when the SH order is changed in the GUI.Updates the dict with the cylindrical Spherical harmonics coefficients for the specified order, retaining values from the previous dict, if values were already present'''Obj = event.GetEventObject()Order = int(Obj.GetValue())UseList[G2frame.hist]['... | 1 | 6 | 1 | 71 | 0 | 209 | 219 | 209 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.OnPOOrder) defined within the public class called public.The function start at line 209 and ends at 219. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.OnPOType | def OnPOType(event):'''Respond when the SH type is changed in the GUI.Note that values set that are not used are also not changed.'''Obj = event.GetEventObject()if 'March' in Obj.GetValue():UseList[G2frame.hist]['Pref.Ori.'][0] = 'MD'else:UseList[G2frame.hist]['Pref.Ori.'][0] = 'SH'wx.CallLater(100,RepaintHistogramInfo... | 2 | 7 | 1 | 69 | 0 | 221 | 230 | 221 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.OnPOType) defined within the public class called public.The function start at line 221 and ends at 230. It contains 7 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.OnPORef | def OnPORef(event):Obj = event.GetEventObject()UseList[G2frame.hist]['Pref.Ori.'][2] = Obj.GetValue() | 1 | 3 | 1 | 30 | 0 | 232 | 234 | 232 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.OnPORef) defined within the public class called public.The function start at line 232 and ends at 234. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.OnAddFixed | def OnAddFixed(event):fixedVars = UseList[G2frame.hist].get('FixedSeqVars',[])SeqId = G2gd.GetGPXtreeItemId(G2frame, G2frame.root, 'Sequential results')seqData = G2frame.GPXtree.GetItemPyData(SeqId)if G2frame.hist not in seqData:print('Strange: '+G2frame.hist+' not found')returnparmDict = seqData[G2frame.hist].get('par... | 12 | 24 | 1 | 251 | 0 | 236 | 260 | 236 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.OnAddFixed) defined within the public class called public.The function start at line 236 and ends at 260. It contains 24 lines of code and it has a cyclomatic complexity of 12. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.SetPOCoef | def SetPOCoef(Order):'''Sets up a dict with the cylindrical Spherical harmonics coefficients for the specified order. Retains values from the previous dict, if values were already present'''cofNames = G2lat.GenSHCoeff(SGData['SGLaue'],'0',Order,False) #cylindrical & no MnewPOCoef = dict(zip(cofNames,len(cofNames)*[0.])... | 3 | 8 | 1 | 77 | 0 | 262 | 273 | 262 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.SetPOCoef) defined within the public class called public.The function start at line 262 and ends at 273. It contains 8 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.checkAxis | def checkAxis(axis):if not np.any(np.array(axis)):return Falsereturn axis | 2 | 4 | 1 | 23 | 0 | 275 | 278 | 275 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.checkAxis) defined within the public class called public.The function start at line 275 and ends at 278. It contains 4 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.OnNewValue | def OnNewValue(invalid,value,tc):G2plt.PlotSizeStrainPO(G2frame,data,G2frame.hist) | 1 | 2 | 3 | 21 | 0 | 280 | 281 | 280 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.OnNewValue) defined within the public class called public.The function start at line 280 and ends at 281. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [280.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.OnNewValueReDraw | def OnNewValueReDraw(invalid,value,tc):G2plt.PlotSizeStrainPO(G2frame,data,G2frame.hist)wx.CallLater(100,RepaintHistogramInfo,DData.GetScrollPos(wx.VERTICAL)) | 1 | 3 | 3 | 38 | 0 | 283 | 285 | 283 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.OnNewValueReDraw) defined within the public class called public.The function start at line 283 and ends at 285. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [283.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.TopSizer | def TopSizer(name,choices,parm,OnType):topSizer = wx.BoxSizer(wx.HORIZONTAL)topSizer.Add(wx.StaticText(DData,wx.ID_ANY,name),0,WACV)sizeType = wx.ComboBox(DData,wx.ID_ANY,value=UseList[G2frame.hist][parm][0],choices=choices,style=wx.CB_READONLY|wx.CB_DROPDOWN)sizeType.Bind(wx.EVT_COMBOBOX, OnType)topSizer.Add(sizeType,... | 1 | 8 | 4 | 111 | 0 | 287 | 294 | 287 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.TopSizer) defined within the public class called public.The function start at line 287 and ends at 294. It contains 8 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [287.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.LGmixSizer | def LGmixSizer(name,Limits,OnRef):lgmixSizer = wx.BoxSizer(wx.HORIZONTAL)lgmixRef = wx.CheckBox(DData,wx.ID_ANY,label='LGmix')lgmixRef.thisown = FalselgmixRef.SetValue(UseList[G2frame.hist][name][2][2])Indx[lgmixRef.GetId()] = [G2frame.hist,name]lgmixRef.Bind(wx.EVT_CHECKBOX, OnRef)lgmixSizer.Add(lgmixRef,0,WACV|wx.LEF... | 1 | 12 | 3 | 165 | 0 | 296 | 307 | 296 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.LGmixSizer) defined within the public class called public.The function start at line 296 and ends at 307. It contains 12 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [296.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.ResetSizer | def ResetSizer(name,OnReset):resetSizer = wx.BoxSizer(wx.HORIZONTAL)reset = wx.Button(DData,wx.ID_ANY,label='Reset?')reset.thisown = FalseIndx[reset.GetId()] = [G2frame.hist,name]reset.Bind(wx.EVT_BUTTON,OnReset)resetSizer.Add(reset,0,WACV)return resetSizer | 1 | 8 | 2 | 76 | 0 | 309 | 316 | 309 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.ResetSizer) defined within the public class called public.The function start at line 309 and ends at 316. It contains 8 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [309.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.IsoSizer | def IsoSizer(name,parm,fmt,Limits,OnRef):isoSizer = wx.BoxSizer(wx.HORIZONTAL)sizeRef = wx.CheckBox(DData,wx.ID_ANY,label=name)sizeRef.thisown = FalsesizeRef.SetValue(UseList[G2frame.hist][parm][2][0])Indx[sizeRef.GetId()] = [G2frame.hist,0]sizeRef.Bind(wx.EVT_CHECKBOX, OnRef)isoSizer.Add(sizeRef,0,WACV|wx.LEFT,5)sizeV... | 1 | 12 | 5 | 163 | 0 | 318 | 329 | 318 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.IsoSizer) defined within the public class called public.The function start at line 318 and ends at 329. It contains 12 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [318.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.UniSizer | def UniSizer(parm,OnAxis):uniSizer = wx.BoxSizer(wx.HORIZONTAL)uniSizer.Add(wx.StaticText(DData,wx.ID_ANY,' Unique axis, H K L: '),0,WACV)h,k,l = UseList[G2frame.hist][parm][3]Axis = wx.TextCtrl(DData,wx.ID_ANY,'%3d %3d %3d'%(h,k,l),style=wx.TE_PROCESS_ENTER)Axis.Bind(wx.EVT_TEXT_ENTER,OnAxis)Axis.Bind(wx.EVT_KILL_FOCU... | 1 | 9 | 2 | 122 | 0 | 331 | 339 | 331 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.UniSizer) defined within the public class called public.The function start at line 331 and ends at 339. It contains 9 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [331.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.UniDataSizer | def UniDataSizer(parmName,parm,fmt,Limits,OnRef):dataSizer = wx.BoxSizer(wx.HORIZONTAL)parms = zip([' Equatorial '+parmName,' Axial '+parmName],UseList[G2frame.hist][parm][2],range(2))for Pa,ref,Id in parms:sizeRef = wx.CheckBox(DData,wx.ID_ANY,label=Pa)sizeRef.thisown = FalsesizeRef.SetValue(ref)Indx[sizeRef.GetId()] ... | 2 | 15 | 5 | 188 | 0 | 341 | 355 | 341 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.UniDataSizer) defined within the public class called public.The function start at line 341 and ends at 355. It contains 15 lines of code and it has a cyclomatic complexity of 2. It takes 5 parameters, represented as [341.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.EllSizeDataSizer | def EllSizeDataSizer():parms = zip(['S11','S22','S33','S12','S13','S23'],UseList[G2frame.hist]['Size'][4],UseList[G2frame.hist]['Size'][5],range(6))dataSizer = wx.BoxSizer(wx.VERTICAL)matrixSizer = wx.FlexGridSizer(0,6,5,5)Sij = []for Pa,val,ref,Id in parms:sizeRef = wx.CheckBox(DData,wx.ID_ANY,label=Pa)sizeRef.thisown... | 5 | 37 | 0 | 500 | 0 | 357 | 394 | 357 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.EllSizeDataSizer) defined within the public class called public.The function start at line 357 and ends at 394. It contains 37 lines of code and it has a cyclomatic complexity of 5. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.GenStrainDataSizer | def GenStrainDataSizer():Snames = G2spc.MustrainNames(SGData)numb = len(Snames)onumb = len(UseList[G2frame.hist]['Mustrain'][4])while onumb < numb:UseList[G2frame.hist]['Mustrain'][4].append(0.0)UseList[G2frame.hist]['Mustrain'][5].append(False)onumb += 1muMean = G2spc.MuShklMean(SGData,Amat,UseList[G2frame.hist]['Must... | 3 | 26 | 0 | 302 | 0 | 396 | 421 | 396 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.GenStrainDataSizer) defined within the public class called public.The function start at line 396 and ends at 421. It contains 26 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.UpdateDData.HstrainSizer.OnHstrainRef | def OnHstrainRef(event):Obj = event.GetEventObject()hist,pid = Indx[Obj.GetId()]UseList[G2frame.hist]['HStrain'][1][pid] = Obj.GetValue() | 1 | 4 | 1 | 45 | 0 | 425 | 428 | 425 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.UpdateDData.HstrainSizer.OnHstrainRef) defined within the public class called public.The function start at line 425 and ends at 428. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.HstrainSizer | def HstrainSizer():def OnHstrainRef(event):Obj = event.GetEventObject()hist,pid = Indx[Obj.GetId()]UseList[G2frame.hist]['HStrain'][1][pid] = Obj.GetValue()hSizer = wx.BoxSizer(wx.VERTICAL)hstrainSizer = wx.FlexGridSizer(0,6,5,5)Hsnames = G2spc.HStrainNames(SGData)parms = zip(Hsnames,UseList[G2frame.hist]['HStrain'][1]... | 9 | 43 | 0 | 426 | 0 | 423 | 471 | 423 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.HstrainSizer) defined within the public class called public.The function start at line 423 and ends at 471. It contains 43 lines of code and it has a cyclomatic complexity of 9. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.PoTopSizer | def PoTopSizer(POData):poSizer = wx.FlexGridSizer(0,6,5,5)choice = ['March-Dollase','Spherical harmonics']POtype = choice[['MD','SH'].index(POData[0])]poSizer.Add(wx.StaticText(DData,wx.ID_ANY,' Preferred orientation model '),0,WACV)POType = wx.ComboBox(DData,wx.ID_ANY,value=POtype,choices=choice,style=wx.CB_READONLY|w... | 3 | 20 | 1 | 257 | 0 | 473 | 492 | 473 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.PoTopSizer) defined within the public class called public.The function start at line 473 and ends at 492. It contains 20 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.MDDataSizer | def MDDataSizer(POData):poSizer = wx.BoxSizer(wx.HORIZONTAL)poRef = wx.CheckBox(DData,wx.ID_ANY,label=' March-Dollase ratio: ')poRef.SetValue(POData[2])poRef.Bind(wx.EVT_CHECKBOX,OnPORef)poSizer.Add(poRef,0,WACV|wx.LEFT,5)poVal = G2G.ValidatedTxtCtrl(DData,POData,1,nDig=(10,3),typeHint=float,xmin=0.)poSizer.Add(poVal,0... | 1 | 15 | 1 | 196 | 0 | 494 | 508 | 494 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.MDDataSizer) defined within the public class called public.The function start at line 494 and ends at 508. It contains 15 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.SHDataSizer | def SHDataSizer(POData):ODFSizer = wx.FlexGridSizer(0,8,2,2)ODFkeys = list(POData[5].keys())ODFkeys.sort()for odf in ODFkeys:ODFSizer.Add(wx.StaticText(DData,wx.ID_ANY,odf),0,WACV)ODFval = G2G.ValidatedTxtCtrl(DData,POData[5],odf,nDig=(8,3),typeHint=float,OnLeave=OnNewValue)ODFSizer.Add(ODFval,0,WACV|wx.LEFT,5)return O... | 2 | 9 | 1 | 112 | 0 | 510 | 519 | 510 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.SHDataSizer) defined within the public class called public.The function start at line 510 and ends at 519. It contains 9 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.UpdateDData.SHPenalty.OnHKLList | def OnHKLList(event):dlg = G2G.G2MultiChoiceDialog(G2frame, 'Select penalty hkls','Penalty hkls',hkls,filterBox=False)try:if dlg.ShowModal() == wx.ID_OK:POData[6] = [hkls[i].split(':')[0] for i in dlg.GetSelections()]if not POData[6]:POData[6] = ['',]else:returnfinally:dlg.Destroy()wx.CallLater(100,RepaintHistogramInfo... | 5 | 13 | 1 | 106 | 0 | 523 | 535 | 523 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.UpdateDData.SHPenalty.OnHKLList) defined within the public class called public.The function start at line 523 and ends at 535. It contains 13 lines of code and it has a cyclomatic complexity of 5. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.SHPenalty | def SHPenalty(POData):def OnHKLList(event):dlg = G2G.G2MultiChoiceDialog(G2frame, 'Select penalty hkls','Penalty hkls',hkls,filterBox=False)try:if dlg.ShowModal() == wx.ID_OK:POData[6] = [hkls[i].split(':')[0] for i in dlg.GetSelections()]if not POData[6]:POData[6] = ['',]else:returnfinally:dlg.Destroy()wx.CallLater(10... | 8 | 29 | 1 | 349 | 0 | 521 | 563 | 521 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.SHPenalty) defined within the public class called public.The function start at line 521 and ends at 563. It contains 29 lines of code and it has a cyclomatic complexity of 8. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.UpdateDData.ExtSizer.OnSCExtType | def OnSCExtType(event):Obj = event.GetEventObject()item = Indx[Obj.GetId()]UseList[item[0]]['Extinction'][item[1]] = Obj.GetValue()wx.CallLater(100,RepaintHistogramInfo,DData.GetScrollPos(wx.VERTICAL)) | 1 | 5 | 1 | 61 | 0 | 567 | 571 | 567 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.UpdateDData.ExtSizer.OnSCExtType) defined within the public class called public.The function start at line 567 and ends at 571. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.UpdateDData.ExtSizer.OnEref | def OnEref(event):Obj = event.GetEventObject()item = Indx[Obj.GetId()]UseList[item[0]]['Extinction'][2][item[1]][1] = Obj.GetValue() | 1 | 4 | 1 | 50 | 0 | 573 | 576 | 573 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.UpdateDData.ExtSizer.OnEref) defined within the public class called public.The function start at line 573 and ends at 576. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.UpdateDData.ExtSizer.OnExtRef | def OnExtRef(event):Obj = event.GetEventObject()UseList[G2frame.hist]['Extinction'][1] = Obj.GetValue() | 1 | 3 | 1 | 30 | 0 | 578 | 580 | 578 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.UpdateDData.ExtSizer.OnExtRef) defined within the public class called public.The function start at line 578 and ends at 580. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.UpdateDData.ExtSizer.ExtVal | def ExtVal(Ekey,valSizer,fmt,lim):for ekey in Ekey:Eref = wx.CheckBox(DData,wx.ID_ANY,label=ekey+' : ')Eref.SetValue(UseList[G2frame.hist]['Extinction'][2][ekey][1])Indx[Eref.GetId()] = [G2frame.hist,ekey]Eref.Bind(wx.EVT_CHECKBOX, OnEref)valSizer.Add(Eref,0,WACV|wx.LEFT,5)Eval = G2G.ValidatedTxtCtrl(DData,UseList[G2fr... | 2 | 11 | 4 | 165 | 0 | 582 | 592 | 582 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.UpdateDData.ExtSizer.ExtVal) defined within the public class called public.The function start at line 582 and ends at 592. It contains 11 lines of code and it has a cyclomatic complexity of 2. It takes 4 parameters, represented as [582.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.ExtSizer | def ExtSizer(Type,Htype):def OnSCExtType(event):Obj = event.GetEventObject()item = Indx[Obj.GetId()]UseList[item[0]]['Extinction'][item[1]] = Obj.GetValue()wx.CallLater(100,RepaintHistogramInfo,DData.GetScrollPos(wx.VERTICAL))def OnEref(event):Obj = event.GetEventObject()item = Indx[Obj.GetId()]UseList[item[0]]['Extinc... | 10 | 66 | 2 | 797 | 0 | 565 | 655 | 565 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.ExtSizer) defined within the public class called public.The function start at line 565 and ends at 655. It contains 66 lines of code and it has a cyclomatic complexity of 10. It takes 2 parameters, represented as [565.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.UpdateDData.BabSizer.OnBabRef | def OnBabRef(event):Obj = event.GetEventObject()item,bab = Indx[Obj.GetId()]UseList[item]['Babinet']['Bab'+bab][1] = Obj.GetValue() | 1 | 4 | 1 | 45 | 0 | 659 | 662 | 659 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.UpdateDData.BabSizer.OnBabRef) defined within the public class called public.The function start at line 659 and ends at 662. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.BabSizer | def BabSizer():def OnBabRef(event):Obj = event.GetEventObject()item,bab = Indx[Obj.GetId()]UseList[item]['Babinet']['Bab'+bab][1] = Obj.GetValue()babSizer = wx.BoxSizer(wx.HORIZONTAL)for bab in ['A','U']:babRef = wx.CheckBox(DData,wx.ID_ANY,label=' Babinet '+bab+': ')babRef.SetValue(UseList[G2frame.hist]['Babinet']['Ba... | 2 | 13 | 0 | 163 | 0 | 657 | 674 | 657 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.BabSizer) defined within the public class called public.The function start at line 657 and ends at 674. It contains 13 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.UpdateDData.FlackSizer.OnFlackRef | def OnFlackRef(event):Obj = event.GetEventObject()UseList[G2frame.hist]['Flack'][1] = Obj.GetValue() | 1 | 3 | 1 | 30 | 0 | 678 | 680 | 678 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.UpdateDData.FlackSizer.OnFlackRef) defined within the public class called public.The function start at line 678 and ends at 680. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.FlackSizer | def FlackSizer():def OnFlackRef(event):Obj = event.GetEventObject()UseList[G2frame.hist]['Flack'][1] = Obj.GetValue()flackSizer = wx.BoxSizer(wx.HORIZONTAL)flackRef = wx.CheckBox(DData,wx.ID_ANY,label=' Flack parameter: ')flackRef.SetValue(UseList[G2frame.hist]['Flack'][1])flackRef.Bind(wx.EVT_CHECKBOX, OnFlackRef)flac... | 1 | 10 | 0 | 119 | 0 | 676 | 689 | 676 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.FlackSizer) defined within the public class called public.The function start at line 676 and ends at 689. It contains 10 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.UpdateDData.DispSizer.OnDispRef | def OnDispRef(event):Obj = event.GetEventObject()UseList[G2frame.hist]['Layer Disp'][1] = Obj.GetValue() | 1 | 3 | 1 | 30 | 0 | 693 | 695 | 693 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.UpdateDData.DispSizer.OnDispRef) defined within the public class called public.The function start at line 693 and ends at 695. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.DispSizer | def DispSizer():def OnDispRef(event):Obj = event.GetEventObject()UseList[G2frame.hist]['Layer Disp'][1] = Obj.GetValue()dispSizer = wx.BoxSizer(wx.HORIZONTAL)dispRef = wx.CheckBox(DData,wx.ID_ANY,label=u' Layer displacement (\xb5m): ')dispRef.SetValue(UseList[G2frame.hist]['Layer Disp'][1])dispRef.Bind(wx.EVT_CHECKBOX,... | 1 | 9 | 0 | 117 | 0 | 691 | 703 | 691 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.DispSizer) defined within the public class called public.The function start at line 691 and ends at 703. It contains 9 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.UpdateDData.twinSizer.OnAddTwin | def OnAddTwin(event):twinMat = np.array([[-1,0,0],[0,-1,0],[0,0,-1]])#inversion by defaulttwinVal = 0.0UseList[G2frame.hist]['Twins'].append([twinMat,twinVal])nNonM = UseList[G2frame.hist]['Twins'][0][1][2]for i in range(nNonM):UseList[G2frame.hist]['Twins'].append([False,0.0])addtwin.SetValue(False)wx.CallLater(100,Re... | 2 | 9 | 1 | 134 | 0 | 707 | 715 | 707 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.UpdateDData.twinSizer.OnAddTwin) defined within the public class called public.The function start at line 707 and ends at 715. It contains 9 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.UpdateDData.twinSizer.OnMat | def OnMat(event):event.Skip()Obj = event.GetEventObject()it,im = Indx[Obj.GetId()]newMat = Obj.GetValue().split()try:uvw = [int(newMat[i]) for i in range(3)]except ValueError:uvw = UseList[G2frame.hist]['Twins'][it][0][im]UseList[G2frame.hist]['Twins'][it][0][im] = uvwObj.SetValue('%3d %3d %3d'%(uvw[0],uvw[1],uvw[2])) | 3 | 11 | 1 | 126 | 0 | 717 | 727 | 717 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.UpdateDData.twinSizer.OnMat) defined within the public class called public.The function start at line 717 and ends at 727. It contains 11 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.UpdateDData.twinSizer.OnTwinVal | def OnTwinVal(invalid,value,tc):it = Indx[tc.GetId()]sumTw = 0.for it,twin in enumerate(UseList[G2frame.hist]['Twins']):if it:sumTw += twin[1]UseList[G2frame.hist]['Twins'][0][1][0] = 1.-sumTwwx.CallLater(100,RepaintHistogramInfo,DData.GetScrollPos(wx.VERTICAL)) | 3 | 8 | 3 | 90 | 0 | 729 | 736 | 729 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.UpdateDData.twinSizer.OnTwinVal) defined within the public class called public.The function start at line 729 and ends at 736. It contains 8 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [729.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDData.UpdateDData.twinSizer.OnTwinRef | def OnTwinRef(event):Obj = event.GetEventObject()UseList[G2frame.hist]['Twins'][0][1][1] = Obj.GetValue() | 1 | 3 | 1 | 36 | 0 | 738 | 740 | 738 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDData.UpdateDData.twinSizer.OnTwinRef) defined within the public class called public.The function start at line 738 and ends at 740. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.