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
OnTest
def OnTest(self,event):lenX = 0Xminmax = [0,0]XY = []Xsum = []Ysum = []Vsum = []for i,item in enumerate(self.selectData):name = itemscale = self.selectVals[i]Id = self.data.index(name)data = self.dataList[Id]if scale:x,y,w,yc,yb,yd = data #numpy arrays!if self.Limits is not None:xMin = np.searchsorted(x,self.Limits[1][...
14
64
2
554
0
3,487
3,556
3,487
null
[]
None
null
0
0
0
null
0
null
The function (OnTest) defined within the public class called public.The function start at line 3487 and ends at 3556. It contains 64 lines of code and it has a cyclomatic complexity of 14. It takes 2 parameters, represented as [3487.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
OnOk
def OnOk(self,event):if self.dataType == 'PWDR':if not self.OnTest(event): returnparent = self.GetParent()if parent is not None: parent.Raise()self.EndModal(wx.ID_OK)
4
6
2
50
0
3,558
3,563
3,558
null
[]
None
null
0
0
0
null
0
null
The function (OnOk) defined within the public class called public.The function start at line 3558 and ends at 3563. It contains 6 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [3558.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
OnCancel
def OnCancel(self,event):parent = self.GetParent()if parent is not None: parent.Raise()self.EndModal(wx.ID_CANCEL)
2
4
2
33
0
3,565
3,568
253
null
[]
None
null
0
0
0
null
0
null
The function (OnCancel) defined within the public class called public.The function start at line 3565 and ends at 3568. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [253.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
OnPwdrSum
def OnPwdrSum(self,event):'Sum or Average together powder data(?)'TextList = []DataList = []Limits = []Names = []Inst = NoneComments = ['Sum/Average equals: \n']if self.GPXtree.GetCount():item, cookie = self.GPXtree.GetFirstChild(self.root)while item:name = self.GPXtree.GetItemText(item)Names.append(name)if 'PWDR' in n...
13
74
2
787
0
3,570
3,643
3,570
null
[]
None
null
0
0
0
null
0
null
The function (OnPwdrSum) defined within the public class called public.The function start at line 3570 and ends at 3643. It contains 74 lines of code and it has a cyclomatic complexity of 13. It takes 2 parameters, represented as [3570.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
OnImageSum
def OnImageSum(self,event):'Sum together image data'TextList = []DataList = []IdList = []Names = []Items = []Comments = ['Sum equals: \n']if self.GPXtree.GetCount():item, cookie = self.GPXtree.GetFirstChild(self.root)while item:name = self.GPXtree.GetItemText(item)Names.append(name)if 'IMG' in name:Items.append(item)Te...
26
122
2
1,112
0
3,645
3,768
3,645
null
[]
None
null
0
0
0
null
0
null
The function (OnImageSum) defined within the public class called public.The function start at line 3645 and ends at 3768. It contains 122 lines of code and it has a cyclomatic complexity of 26. It takes 2 parameters, represented as [3645.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
OnAddPhase
def OnAddPhase(self,event):'Add a new, empty phase to the tree. Called by Data/Add Phase menu'PhaseName = ''dlg = wx.TextEntryDialog(None,'Enter a name for this phase','Phase Name Entry','New phase',style=wx.OK)if dlg.ShowModal() == wx.ID_OK:PhaseName = dlg.GetValue()self.CheckNotebook()sub = FindPhaseItem(self)dlg.Des...
3
25
2
226
0
3,770
3,794
3,770
null
[]
None
null
0
0
0
null
0
null
The function (OnAddPhase) defined within the public class called public.The function start at line 3770 and ends at 3794. It contains 25 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [3770.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
OnDeletePhase
def OnDeletePhase(self,event):'''Delete one or more phases from the tree. Called by Data/Delete Phase menu.Also delete this phase from Reflection Lists for each PWDR histogram;removes the phase from restraints and deletes any constraintswith variables from the phase.If any deleted phase is marked as Used in a histogram...
49
109
2
865
0
3,796
3,922
3,796
null
[]
None
null
0
0
0
null
0
null
The function (OnDeletePhase) defined within the public class called public.The function start at line 3796 and ends at 3922. It contains 109 lines of code and it has a cyclomatic complexity of 49. It takes 2 parameters, represented as [3796.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
OnRenameData
def OnRenameData(self,event):'''Renames an existing histogram. Called by Data/Rename Phase menu.Must be used before a histogram is used in a phase.'''name = self.GPXtree.GetItemText(self.PickId)Histograms,Phases = self.GetUsedHistogramsAndPhasesfromTree()if name in Histograms:G2G.G2MessageBox(self,'Histogram is used. Y...
9
26
2
230
0
3,924
3,953
3,924
null
[]
None
null
0
0
0
null
0
null
The function (OnRenameData) defined within the public class called public.The function start at line 3924 and ends at 3953. It contains 26 lines of code and it has a cyclomatic complexity of 9. It takes 2 parameters, represented as [3924.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
GetFileList
def GetFileList(self,fileType,skip=None):''' Get list of file names containing a particular string; can skip one of known GSAS-II idparam: fileType str: any string within a file nameparam: skip int:default=None, a GSAS-II assigned id of a data item to skip in collecting the namesreturns: list of file names from GSAS-II...
5
16
3
100
0
3,955
3,978
3,955
null
[]
None
null
0
0
0
null
0
null
The function (GetFileList) defined within the public class called public.The function start at line 3955 and ends at 3978. It contains 16 lines of code and it has a cyclomatic complexity of 5. It takes 3 parameters, represented as [3955.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
OnDataDelete
def OnDataDelete(self, event):'''Delete one or more histograms from data tree. Called by theData/DeleteData menu'''TextList = []DelList = []DelItemList = []nItems = {'PWDR':0,'SASD':0,'REFD':0,'IMG':0,'HKLF':0,'PDF':0}PDFnames = []selItem = self.GPXtree.GetSelection()Histograms,Phases = self.GetUsedHistogramsAndPhasesf...
39
99
2
731
0
3,980
4,081
3,980
null
[]
None
null
0
0
0
null
0
null
The function (OnDataDelete) defined within the public class called public.The function start at line 3980 and ends at 4081. It contains 99 lines of code and it has a cyclomatic complexity of 39. It takes 2 parameters, represented as [3980.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
OnPlotDelete
def OnPlotDelete(self,event):'''Delete one or more plots from plot window. Called by theData/DeletePlots menu'''plotNames = self.G2plotNB.plotListif len(plotNames):dlg = G2G.G2MultiChoiceDialog(self, 'Which plots to delete?', 'Delete plots', plotNames, wx.CHOICEDLG_STYLE)try:if dlg.ShowModal() == wx.ID_OK:result = dlg....
5
12
2
90
0
4,083
4,097
4,083
null
[]
None
null
0
0
0
null
0
null
The function (OnPlotDelete) defined within the public class called public.The function start at line 4083 and ends at 4097. It contains 12 lines of code and it has a cyclomatic complexity of 5. It takes 2 parameters, represented as [4083.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
OnDeleteSequential
def OnDeleteSequential(self,event):''' Delete any sequential results table. Called by the Data/Delete sequential results menu'''selItem = self.GPXtree.GetSelection()SeqList = []DelList = []item, cookie = self.GPXtree.GetFirstChild(self.root)while item:name = self.GPXtree.GetItemText(item)if 'Sequential' in name:SeqList...
11
32
2
251
0
4,099
4,132
4,099
null
[]
None
null
0
0
0
null
0
null
The function (OnDeleteSequential) defined within the public class called public.The function start at line 4099 and ends at 4132. It contains 32 lines of code and it has a cyclomatic complexity of 11. It takes 2 parameters, represented as [4099.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
OnFileReopen
def OnFileReopen(self, event):''' Creates a dialog box showing previously opened GSAS-II projects & offers to open onecalled by File/Reopen recent... menu item'''files = GSASIIpath.GetConfigValue('previous_GPX_files')if not files:print('no previous projects found')returnsellist = []keeplist = []try:for f in files:dirna...
9
34
2
224
0
4,134
4,170
4,134
null
[]
None
null
0
0
0
null
0
null
The function (OnFileReopen) defined within the public class called public.The function start at line 4134 and ends at 4170. It contains 34 lines of code and it has a cyclomatic complexity of 9. It takes 2 parameters, represented as [4134.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
OnFileReread._setStart
def _setStart(nameParent,name):'''Reload the last selected tree item by name'''start = self.rootif GetGPXtreeItemId(self,self.root,nameParent):start = GetGPXtreeItemId(self,self.root,nameParent)Id = GetGPXtreeItemId(self,start,name)#breakpoint()self.GPXtree.SelectItem(Id)SelectDataTreeItem(self,Id)
2
7
2
61
0
4,176
4,184
4,176
null
[]
None
null
0
0
0
null
0
null
The function (OnFileReread._setStart) defined within the public class called public.The function start at line 4176 and ends at 4184. It contains 7 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [4176.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
OnFileReread
def OnFileReread(self, event):'''reread the current GPX file; no questions asked -- no savefor development purposes.'''def _setStart(nameParent,name):'''Reload the last selected tree item by name'''start = self.rootif GetGPXtreeItemId(self,self.root,nameParent):start = GetGPXtreeItemId(self,self.root,nameParent)Id = Ge...
2
12
2
109
0
4,172
4,194
4,172
null
[]
None
null
0
0
0
null
0
null
The function (OnFileReread) defined within the public class called public.The function start at line 4172 and ends at 4194. It contains 12 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [4172.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
_SaveOld
def _SaveOld(self,askSave=True):'''See if we should save current project and continueto read another.returns True if the project load should continue'''if self.dataWindow:self.dataWindow.ClearData()if self.dataWindow and askSave:dlg = wx.MessageDialog(self,'Do you want to save and replace the current project?\n''(Use N...
9
28
2
151
0
4,196
4,227
4,196
null
[]
None
null
0
0
0
null
0
null
The function (_SaveOld) defined within the public class called public.The function start at line 4196 and ends at 4227. It contains 28 lines of code and it has a cyclomatic complexity of 9. It takes 2 parameters, represented as [4196.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
OnFileOpen.GetGPX
def GetGPX():if self.LastGPXdir:pth = self.LastGPXdirelse:pth = '.'#if GSASIIpath.GetConfigValue('debug'): print('debug: open from '+pth)dlg = wx.FileDialog(self, 'Choose GSAS-II project file', pth,wildcard='GSAS-II project file (*.gpx)|*.gpx',style=wx.FD_OPEN)try:if dlg.ShowModal() != wx.ID_OK: returnself.GSASprojectf...
4
14
0
94
0
4,234
4,248
4,234
null
[]
None
null
0
0
0
null
0
null
The function (OnFileOpen.GetGPX) defined within the public class called public.The function start at line 4234 and ends at 4248. 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
OnFileOpen
def OnFileOpen(self, event, filename=None, askSave=True):'''Gets a GSAS-II .gpx project file in response to theFile/Open Project menu button'''def GetGPX():if self.LastGPXdir:pth = self.LastGPXdirelse:pth = '.'#if GSASIIpath.GetConfigValue('debug'): print('debug: open from '+pth)dlg = wx.FileDialog(self, 'Choose GSAS-I...
5
18
4
125
0
4,229
4,269
4,229
null
[]
None
null
0
0
0
null
0
null
The function (OnFileOpen) defined within the public class called public.The function start at line 4229 and ends at 4269. It contains 18 lines of code and it has a cyclomatic complexity of 5. It takes 4 parameters, represented as [4229.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
OnFileBrowse
def OnFileBrowse(self, event):'''Gets a GSAS-II .gpx project using the GPX browser, in responseto the File/"Open Project browser" menu button'''self.EnablePlot = Falseif self.LastGPXdir:pth = self.LastGPXdirelse:pth = '.'try:dlg = G2G.gpxFileSelector(parent=self,startdir=pth)if wx.ID_OK == dlg.ShowModal():filename = dl...
7
25
2
150
0
4,271
4,301
4,271
null
[]
None
null
0
0
0
null
0
null
The function (OnFileBrowse) defined within the public class called public.The function start at line 4271 and ends at 4301. It contains 25 lines of code and it has a cyclomatic complexity of 7. It takes 2 parameters, represented as [4271.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
StartProject.exectxt
def exectxt():#print(txt)exec(txt)
1
2
0
8
0
4,366
4,368
4,366
null
[]
None
null
0
0
0
null
0
null
The function (StartProject.exectxt) defined within the public class called public.The function start at line 4366 and ends at 4368. 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
StartProject
def StartProject(self):'''Opens a GSAS-II project file & selects the 1st available data set todisplay (PWDR, HKLF, REFD or SASD)'''Id = 0phaseId = NoneseqId = NoneG2IO.ProjFileOpen(self)self.GPXtree.SetItemText(self.root,'Project: '+self.GSASprojectfile)self.GPXtree.Expand(self.root)self.HKL = np.array([])self.Extinct ...
19
59
1
452
0
4,304
4,369
4,304
null
[]
None
null
0
0
0
null
0
null
The function (StartProject) defined within the public class called public.The function start at line 4304 and ends at 4369. It contains 59 lines of code and it has a cyclomatic complexity of 19. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
OnFileClose
def OnFileClose(self, event):'''Clears the data tree in response to theFile/New Project menu button. User is given option to savethe project.'''dlg = wx.MessageDialog(self,'Do you want to save the current project and start with an empty one?\n(Use No to clear without saving or Cancel to continue with current project)',...
4
14
2
78
0
4,371
4,388
4,371
null
[]
None
null
0
0
0
null
0
null
The function (OnFileClose) defined within the public class called public.The function start at line 4371 and ends at 4388. It contains 14 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [4371.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
clearProject
def clearProject(self):'Initializes the data tree etc.'self.GPXtree.SetItemText(self.root,'Project: ')self.GPXtree.DeleteChildren(self.root)self.dataWindow.ClearData()if len(self.HKL):self.HKL = np.array([])self.Extinct = []if self.G2plotNB.plotList:self.G2plotNB.clear()self.SetTitleByGPX()self.EnableRefineCommand()sel...
3
14
1
99
0
4,390
4,403
4,390
null
[]
None
null
0
0
0
null
0
null
The function (clearProject) defined within the public class called public.The function start at line 4390 and ends at 4403. It contains 14 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
OnFileSave
def OnFileSave(self, event):'''Save the current project in response to theFile/Save Project menu button'''if self.GSASprojectfile:self.GPXtree.SetItemText(self.root,'Project: '+self.GSASprojectfile)self.CheckNotebook()G2IO.ProjFileSave(self)return Trueelse:return self.OnFileSaveas(event)
2
8
2
51
0
4,405
4,416
4,405
null
[]
None
null
0
0
0
null
0
null
The function (OnFileSave) defined within the public class called public.The function start at line 4405 and ends at 4416. It contains 8 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [4405.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
OnNewGSASII
def OnNewGSASII(self, event):'''Gets a GSAS-II .gpx project file in response to theFile/Open new window menu button. Runs only on Mac.'''if self.LastGPXdir:pth = self.LastGPXdirelse:pth = '.'GSASprojectfile = ''dlg = wx.FileDialog(self, 'Choose GSAS-II project file', pth,wildcard='GSAS-II project file (*.gpx)|*.gpx',st...
5
19
2
112
0
4,418
4,439
4,418
null
[]
None
null
0
0
0
null
0
null
The function (OnNewGSASII) defined within the public class called public.The function start at line 4418 and ends at 4439. It contains 19 lines of code and it has a cyclomatic complexity of 5. It takes 2 parameters, represented as [4418.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
SetTitleByGPX
def SetTitleByGPX(self):'''Set the title for the two window frames'''projName = os.path.split(self.GSASprojectfile)[1]if not projName: projName = "<unnamed project>"if self.testSeqRefineMode():s = u' (sequential refinement)'else:s = u''self.SetTitle("GSAS-II project: "+projName + s)self.plotFrame.SetTitle("GSAS-II plot...
3
9
1
65
0
4,441
4,451
4,441
null
[]
None
null
0
0
0
null
0
null
The function (SetTitleByGPX) defined within the public class called public.The function start at line 4441 and ends at 4451. It contains 9 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
OnFileSaveas
def OnFileSaveas(self, event):'''Save the current project with a new name in response to theFile/Save as menu button. The current project then has this new name'''if GSASIIpath.GetConfigValue('Starting_directory'):pth = GSASIIpath.GetConfigValue('Starting_directory')pth = os.path.expanduser(pth)elif self.LastGPXdir:pth...
5
28
2
196
0
4,453
4,483
4,453
null
[]
None
null
0
0
0
null
0
null
The function (OnFileSaveas) defined within the public class called public.The function start at line 4453 and ends at 4483. It contains 28 lines of code and it has a cyclomatic complexity of 5. It takes 2 parameters, represented as [4453.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
ExpandAll
def ExpandAll(self,event):'''Expand all tree items or those of a single type'''txt = self.GetMenuBar().GetLabel(event.Id)if txt == 'all':self.ExpandingAll = Truetry:self.GPXtree.ExpandAll()finally:self.ExpandingAll = Falseelse:self.ExpandingAll = Truetry:item, cookie = self.GPXtree.GetFirstChild(self.root)while item:na...
6
18
2
125
0
4,485
4,504
4,485
null
[]
None
null
0
0
0
null
0
null
The function (ExpandAll) defined within the public class called public.The function start at line 4485 and ends at 4504. It contains 18 lines of code and it has a cyclomatic complexity of 6. It takes 2 parameters, represented as [4485.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
MoveTreeItems
def MoveTreeItems(self,event):'''Move tree items of a single type to the end of the tree'''txt = self.GetMenuBar().GetLabel(event.Id)# make a list of items to copycopyList = []item, cookie = self.GPXtree.GetFirstChild(self.root)while item:if self.GPXtree.GetItemText(item).startswith(txt+' '):copyList.append(item)item, ...
6
24
2
226
0
4,506
4,533
4,506
null
[]
None
null
0
0
0
null
0
null
The function (MoveTreeItems) defined within the public class called public.The function start at line 4506 and ends at 4533. It contains 24 lines of code and it has a cyclomatic complexity of 6. It takes 2 parameters, represented as [4506.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
ExitMain
def ExitMain(self, event):'''Called if exit selected or the main window is closedrecord last position of data & plot windows to configNB: not called if console window closed'''if self.GPXtree.GetCount() > 1:dlg = wx.MessageDialog(self,'Do you want to save and exit?\n(Use No to exit without save or Cancel to prevent exi...
15
45
2
301
0
4,535
4,584
4,535
null
[]
None
null
0
0
0
null
0
null
The function (ExitMain) defined within the public class called public.The function start at line 4535 and ends at 4584. It contains 45 lines of code and it has a cyclomatic complexity of 15. It takes 2 parameters, represented as [4535.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
OnExportMTZ
def OnExportMTZ(self,event):''' exports MTZ file from macromoleculat Reflection Lists in multiple histograms'''Histograms,Phases = self.GetUsedHistogramsAndPhasesfromTree()MTZok = Falsefor phase in Phases:Phase = Phases[phase]General = Phase['General']if 'macro' in General['Type']:#really ought to be just oneSGData = G...
26
138
2
2,063
0
4,586
4,730
4,586
null
[]
None
null
0
0
0
null
0
null
The function (OnExportMTZ) defined within the public class called public.The function start at line 4586 and ends at 4730. It contains 138 lines of code and it has a cyclomatic complexity of 26. It takes 2 parameters, represented as [4586.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
OnExportPeakList
def OnExportPeakList(self,event):'''Exports a PWDR peak list as a text file'''pth = G2G.GetExportPath(self)dlg = wx.FileDialog(self, 'Choose output peak list file name', pth, '','(*.*)|*.*',wx.FD_SAVE|wx.FD_OVERWRITE_PROMPT)try:if dlg.ShowModal() == wx.ID_OK:self.peaklistfile = dlg.GetPath()self.peaklistfile = G2IO.Fil...
15
60
2
790
0
4,732
4,794
4,732
null
[]
None
null
0
0
0
null
0
null
The function (OnExportPeakList) defined within the public class called public.The function start at line 4732 and ends at 4794. It contains 60 lines of code and it has a cyclomatic complexity of 15. It takes 2 parameters, represented as [4732.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
OnExportHKL
def OnExportHKL(self,event):'''Exports a PWDR reflection list as a text file'''pth = G2G.GetExportPath(self)dlg = wx.FileDialog(self, 'Choose output reflection list file name', pth, '','(*.*)|*.*',wx.FD_SAVE|wx.FD_OVERWRITE_PROMPT)try:if dlg.ShowModal() == wx.ID_OK:self.peaklistfile = dlg.GetPath()self.peaklistfile = G...
13
50
2
575
0
4,796
4,847
4,796
null
[]
None
null
0
0
0
null
0
null
The function (OnExportHKL) defined within the public class called public.The function start at line 4796 and ends at 4847. It contains 50 lines of code and it has a cyclomatic complexity of 13. It takes 2 parameters, represented as [4796.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
OnExportPDF.PDFSave
def PDFSave(G2frame,exports,PDFsaves):'Save a PDF I(Q), S(Q), F(Q), G(r) and g(r)in column formats'if len(exports) > 1:dirname = G2G.askSaveDirectory(G2frame)if not dirname: returnelse:defnam = exports[0].replace(' ','_')[5:]filename = G2G.askSaveFile(G2frame,defnam,'.gr','G(r) file, etc.')if not filename: returndirnam...
7
27
3
242
0
4,851
4,877
4,851
null
[]
None
null
0
0
0
null
0
null
The function (OnExportPDF.PDFSave) defined within the public class called public.The function start at line 4851 and ends at 4877. It contains 27 lines of code and it has a cyclomatic complexity of 7. It takes 3 parameters, represented as [4851.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
OnExportPDF
def OnExportPDF(self,event):'Save S(Q), G(R),... as selected by user'def PDFSave(G2frame,exports,PDFsaves):'Save a PDF I(Q), S(Q), F(Q), G(r) and g(r)in column formats'if len(exports) > 1:dirname = G2G.askSaveDirectory(G2frame)if not dirname: returnelse:defnam = exports[0].replace(' ','_')[5:]filename = G2G.askSaveFile...
5
19
2
177
0
4,849
4,894
4,849
null
[]
None
null
0
0
0
null
0
null
The function (OnExportPDF) defined within the public class called public.The function start at line 4849 and ends at 4894. It contains 19 lines of code and it has a cyclomatic complexity of 5. It takes 2 parameters, represented as [4849.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
OnMakePDFs
def OnMakePDFs(self,event):'''Sets up PDF data structure filled with defaults; if found chemical formula is insertedso a default PDF can be made.'''sind = lambda x: math.sin(x*math.pi/180.)tth2q = lambda t,w:4.0*math.pi*sind(t/2.0)/wtof2q = lambda t,C:2.0*math.pi*C/tTextList = []ElLists = []Qlimits = []Names = []if sel...
15
63
2
596
0
4,896
4,962
4,896
null
[]
None
null
0
0
0
null
0
null
The function (OnMakePDFs) defined within the public class called public.The function start at line 4896 and ends at 4962. It contains 63 lines of code and it has a cyclomatic complexity of 15. It takes 2 parameters, represented as [4896.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
GetPWDRdatafromTree
def GetPWDRdatafromTree(self,PWDRname):''' Returns powder data from GSASII tree:param str PWDRname: a powder histogram name as obtained from:meth:`GSASIIstruct.GetHistogramNames`:returns: PWDRdata = powder data dictionary withPowder data arrays, Limits, Instrument Parameters,Sample Parameters'''PWDRdata = {}try:PWDRdat...
4
17
2
201
0
4,964
4,989
4,964
null
[]
None
null
0
0
0
null
0
null
The function (GetPWDRdatafromTree) defined within the public class called public.The function start at line 4964 and ends at 4989. It contains 17 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [4964.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
GetHKLFdatafromTree
def GetHKLFdatafromTree(self,HKLFname):''' Returns single crystal data from GSASII tree:param str HKLFname: a single crystal histogram name as obtainedfrom:meth:`GSASIIstruct.GetHistogramNames`:returns: HKLFdata = single crystal data list of reflections'''HKLFdata = {}HKLFdata.update(self.GPXtree.GetItemPyData(HKLFname...
1
6
2
66
0
4,991
5,009
4,991
null
[]
None
null
0
0
0
null
0
null
The function (GetHKLFdatafromTree) defined within the public class called public.The function start at line 4991 and ends at 5009. It contains 6 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [4991.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
GetPhaseData
def GetPhaseData(self):'''Returns a dict with defined phases.Note routine :func:`GSASIIstrIO.GetPhaseData` also exists toget same kind of info from GPX file & put in a list of 9 items.'''phaseData = {}if GetGPXtreeItemId(self,self.root,'Phases'):sub = GetGPXtreeItemId(self,self.root,'Phases')else:#print 'no phases foun...
5
15
1
123
0
5,011
5,030
5,011
null
[]
None
null
0
0
0
null
0
null
The function (GetPhaseData) defined within the public class called public.The function start at line 5011 and ends at 5030. It contains 15 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
GetPhaseInfofromTree
def GetPhaseInfofromTree(self, Used=False):'''Get the phase names and their rId values,also the histograms referenced in each phase.:param bool Used: if Used is True, only histograms that arereferenced in the histogram are returned:returns: (phaseRIdList, usedHistograms) where* phaseRIdList is a list of random Id value...
7
18
2
158
0
5,032
5,061
5,032
null
[]
None
null
0
0
0
null
0
null
The function (GetPhaseInfofromTree) defined within the public class called public.The function start at line 5032 and ends at 5061. It contains 18 lines of code and it has a cyclomatic complexity of 7. It takes 2 parameters, represented as [5032.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
GetPhaseNames
def GetPhaseNames(self):'''Returns a list of defined phases.Note routine :func:`GSASIIstrIO.GetPhaseNames` also exists toget same info from GPX file.'''phaseNames = []if GetGPXtreeItemId(self,self.root,'Phases'):sub = GetGPXtreeItemId(self,self.root,'Phases')else:#print 'no phases found in GetPhaseNames'sub = Noneif su...
4
13
1
89
0
5,063
5,080
5,063
null
[]
None
null
0
0
0
null
0
null
The function (GetPhaseNames) defined within the public class called public.The function start at line 5063 and ends at 5080. 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
GetHistogramTypes
def GetHistogramTypes(self):""" Returns a list of histogram types found in the GSASII data tree:return: list of histogram types"""HistogramTypes = []if self.GPXtree.GetCount():item, cookie = self.GPXtree.GetFirstChild(self.root)while item:name = self.GPXtree.GetItemText(item)if name[:4] in ['PWDR','HKLF']:Inst = self.G...
4
11
1
109
0
5,082
5,097
5,082
null
[]
None
null
0
0
0
null
0
null
The function (GetHistogramTypes) defined within the public class called public.The function start at line 5082 and ends at 5097. It contains 11 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
GetHistogramNames
def GetHistogramNames(self,hType):""" Returns a list of histogram names found in the GSASII data treeNote routine :func:`GSASIIstrIO.GetHistogramNames` also exists toget same info from GPX file.:param str hType: list of histogram types:return: list of histogram names"""HistogramNames = []if self.GPXtree.GetCount():item...
4
10
2
81
0
5,099
5,116
5,099
null
[]
None
null
0
0
0
null
0
null
The function (GetHistogramNames) defined within the public class called public.The function start at line 5099 and ends at 5116. It contains 10 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [5099.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
GetHistogramNamesID
def GetHistogramNamesID(self,hType):""" Returns a list of histogram names found in the GSASII data treeand a lookup table of their Id values. Should replace GetHistogramNamessince that will not be much faster (and there may be real speed gains fromcaching the Ids rather than keep searching for them).N.B routine :func:`...
4
12
2
93
0
5,118
5,141
5,118
null
[]
None
null
0
0
0
null
0
null
The function (GetHistogramNamesID) defined within the public class called public.The function start at line 5118 and ends at 5141. It contains 12 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [5118.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
GetUsedHistogramsAndPhasesfromTree
def GetUsedHistogramsAndPhasesfromTree(self):''' Returns all histograms that are found in any phaseand any phase that uses a histogram.This also assigns numbers to used phases and histograms by theorder they appear in the file.Note routine :func:`GSASIIstrIO.GetUsedHistogramsAndPhases` also exists toget same info from ...
15
37
1
287
0
5,143
5,192
5,143
null
[]
None
null
0
0
0
null
0
null
The function (GetUsedHistogramsAndPhasesfromTree) defined within the public class called public.The function start at line 5143 and ends at 5192. It contains 37 lines of code and it has a cyclomatic complexity of 15. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
MakeLSParmDict
def MakeLSParmDict(self,seqHist=None):'''Load all parameters used for computation from the tree into adict of paired values [value, refine flag]. Note that this isdifferent than the parmDict used in the refinement, which only hasvalues.Note that similar things are done in:meth:`GSASIIfiles.ExportBaseclass.loadParmDict`...
8
34
2
366
0
5,194
5,251
5,194
null
[]
None
null
0
0
0
null
0
null
The function (MakeLSParmDict) defined within the public class called public.The function start at line 5194 and ends at 5251. It contains 34 lines of code and it has a cyclomatic complexity of 8. It takes 2 parameters, represented as [5194.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
OnShowLSParms
def OnShowLSParms(self,event):'''Displays a window showing all parameters in the refinement.Called from the Calculate/View LS Parms menu.This could potentially be sped up by loading only the histogram that is neededfor a sequential fit.'''if G2cnstG.CheckAllScalePhaseFractions(self,refine=False): returntry:parmDict,var...
9
32
2
251
0
5,253
5,312
5,253
null
[]
None
null
0
0
0
null
0
null
The function (OnShowLSParms) defined within the public class called public.The function start at line 5253 and ends at 5312. It contains 32 lines of code and it has a cyclomatic complexity of 9. It takes 2 parameters, represented as [5253.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
OnDerivCalc
def OnDerivCalc(self,event):controlId = GetGPXtreeItemId(self,self.root, 'Controls')if not controlId:self.ErrorDialog('Computation error','No refinement information present')returnControls = self.GPXtree.GetItemPyData(controlId)self._cleanPartials(Controls)# set phase partials as invalidself.OnFileSave(event)errmsg, wa...
8
36
2
372
0
5,314
5,350
5,314
null
[]
None
null
0
0
0
null
0
null
The function (OnDerivCalc) defined within the public class called public.The function start at line 5314 and ends at 5350. It contains 36 lines of code and it has a cyclomatic complexity of 8. It takes 2 parameters, represented as [5314.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
OnExpressionCalc.extendChanges
def extendChanges():'''Propagate changes due to constraint and rigid bodiesfrom varied parameters to dependent parameters'''# apply constraintsG2mv.Dict2Map(prms)# apply rigid body constraintsG2stMth.ApplyRBModels(prms,Phases,rigidbodyDict)# apply shifts to atomsfor dk in prms:if not '::dA' in dk: continueif prms[dk] =...
4
9
0
67
0
5,365
5,379
5,365
null
[]
None
null
0
0
0
null
0
null
The function (OnExpressionCalc.extendChanges) defined within the public class called public.The function start at line 5365 and ends at 5379. 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
OnExpressionCalc.striphist
def striphist(var,insChar=''):'strip a histogram number from a var name'sv = var.split(':')if len(sv) <= 1: return varif sv[1]:sv[1] = insCharreturn ':'.join(sv)
3
7
2
47
0
5,384
5,390
5,384
null
[]
None
null
0
0
0
null
0
null
The function (OnExpressionCalc.striphist) defined within the public class called public.The function start at line 5384 and ends at 5390. It contains 7 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [5384.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
OnExpressionCalc
def OnExpressionCalc(self,event):'''Compute an arbitrary expression (supplied by user) as well as the(statistical) standard uncertainty on that expression.Uses the :class:`GSASIIexprGUI.ExpressionDialog` to obtainan expression which is evaluated using the:class:`GSASIIobj.ExpressionObj` capability. Then the derivative ...
20
82
2
613
0
5,352
5,475
5,352
null
[]
None
null
0
0
0
null
0
null
The function (OnExpressionCalc) defined within the public class called public.The function start at line 5352 and ends at 5475. It contains 82 lines of code and it has a cyclomatic complexity of 20. It takes 2 parameters, represented as [5352.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
OnRefine
def OnRefine(self,event):'''Perform a single refinement or a sequential refinement (depending on controls setting)Called from the Calculate/Refine menu.'''Controls = self.GPXtree.GetItemPyData(GetGPXtreeItemId(self,self.root, 'Controls'))self._cleanPartials(Controls)# phase partials invalid after a refinementif self.te...
25
98
2
724
0
5,477
5,584
5,477
null
[]
None
null
0
0
0
null
0
null
The function (OnRefine) defined within the public class called public.The function start at line 5477 and ends at 5584. It contains 98 lines of code and it has a cyclomatic complexity of 25. It takes 2 parameters, represented as [5477.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
OnLeBail
def OnLeBail(self,event):'''Do a 1 cycle LeBail refinement with no other variables; usually done upon initialization of a LeBail refinementeither single or sequentially'''Controls = self.GPXtree.GetItemPyData(GetGPXtreeItemId(self,self.root, 'Controls'))self._cleanPartials(Controls)# phase partials invalid after a refi...
15
63
2
421
0
5,586
5,653
5,586
null
[]
None
null
0
0
0
null
0
null
The function (OnLeBail) defined within the public class called public.The function start at line 5586 and ends at 5653. It contains 63 lines of code and it has a cyclomatic complexity of 15. It takes 2 parameters, represented as [5586.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
_cleanPartials
def _cleanPartials(self,Controls):'''Delete any partials created with :meth:`OnRefinePartials`; usedin GUI-based refinements, as the partials are no longer correct afterany fit.Also clears the PhasePartials name from Controls'''PhasePartials = os.path.abspath(os.path.splitext(self.GSASprojectfile)[0]+'.partials')if os....
2
6
2
60
0
5,655
5,665
5,655
null
[]
None
null
0
0
0
null
0
null
The function (_cleanPartials) defined within the public class called public.The function start at line 5655 and ends at 5665. It contains 6 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [5655.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
LoadPartial
def LoadPartial(self,target_hId):PhasePartials = os.path.abspath(os.path.splitext(self.GSASprojectfile)[0]+'.partials')if not os.path.exists(PhasePartials): return None,None,[]fp = open(PhasePartials,'rb')pickle.load(fp) # skip over initial Nonewhile True: # loop until we find target histogram or hit end of fileyDict =...
9
26
2
177
0
5,667
5,694
5,667
null
[]
None
null
0
0
0
null
0
null
The function (LoadPartial) defined within the public class called public.The function start at line 5667 and ends at 5694. It contains 26 lines of code and it has a cyclomatic complexity of 9. It takes 2 parameters, represented as [5667.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
OnRefinePartials
def OnRefinePartials(self,event):'''Computes and saves the intensities from each phase for each powderhistogram. Do a 0 cycle fit with no variables to pickle intensities for eachphase into a file. Not for sequential fits.Sets Controls['PhasePartials'] to a file name to trigger save ofinfo in :meth:`GSASIIstrMath.getPow...
5
32
2
228
0
5,696
5,734
5,696
null
[]
None
null
0
0
0
null
0
null
The function (OnRefinePartials) defined within the public class called public.The function start at line 5696 and ends at 5734. It contains 32 lines of code and it has a cyclomatic complexity of 5. It takes 2 parameters, represented as [5696.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
OnSavePartials
def OnSavePartials(self,event):''' Saves partials as a csv file'''Controls = self.GPXtree.GetItemPyData(GetGPXtreeItemId(self,self.root, 'Controls'))phPartialFile = Controls['PhasePartials']try:fp = open(phPartialFile,'rb')except:G2G.G2MessageBox(self,'Phase partials cannot be saved - partials file does not exist','No ...
17
79
2
560
0
5,736
5,823
5,736
null
[]
None
null
0
0
0
null
0
null
The function (OnSavePartials) defined within the public class called public.The function start at line 5736 and ends at 5823. It contains 79 lines of code and it has a cyclomatic complexity of 17. It takes 2 parameters, represented as [5736.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
OnClusterAnalysis
def OnClusterAnalysis(self,event):''' Setsup cluster analysis & make tree entry'''try:SKLearn = Falseimport sklearn.clustersklearn.clusterSKLearn = Trueexcept:res = GSASIIpath.condaInstall('scikit-learn')if res:msg = 'Installation of the sklearn package failed with error:\n' + str(res)G2G.G2MessageBox(self,msg,'Install...
4
24
2
187
0
5,825
5,852
5,825
null
[]
None
null
0
0
0
null
0
null
The function (OnClusterAnalysis) defined within the public class called public.The function start at line 5825 and ends at 5852. It contains 24 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [5825.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
reloadFromGPX
def reloadFromGPX(self,rtext=None,Rvals={}):'''Deletes current data tree & reloads it from GPX file (after arefinement.) Done after events are completed to avoid crashes.:param rtext str: string info from caller to be put in Notebook after reload'''self.GPXtree.DeleteChildren(self.root)self.HKL = np.array([])self.Extin...
5
13
3
132
0
5,854
5,870
5,854
null
[]
None
null
0
0
0
null
0
null
The function (reloadFromGPX) defined within the public class called public.The function start at line 5854 and ends at 5870. It contains 13 lines of code and it has a cyclomatic complexity of 5. It takes 3 parameters, represented as [5854.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
SaveTreeSetting
def SaveTreeSetting(self):'Save the current selected tree item by name (since the id will change)'oldId =self.GPXtree.GetSelection()#retain current selectionoldPath = self.GetTreeItemsList(oldId)self.lastTreeSetting = oldPath
1
5
1
28
0
5,872
5,876
5,872
null
[]
None
null
0
0
0
null
0
null
The function (SaveTreeSetting) defined within the public class called public.The function start at line 5872 and ends at 5876. 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
ResetPlots
def ResetPlots(self):'''This reloads the current tree item, often drawing a plot. Italso refreshes any plots that have registered a refresh routine(see G2plotNB.RegisterRedrawRoutine) and deletes all plots thathave not been refreshed and require one (see G2plotNB.SetNoDelete).'''for lbl,win in zip(self.G2plotNB.plotLis...
19
42
1
339
0
5,878
5,934
5,878
null
[]
None
null
0
0
0
null
0
null
The function (ResetPlots) defined within the public class called public.The function start at line 5878 and ends at 5934. It contains 42 lines of code and it has a cyclomatic complexity of 19. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
OnSeqRefine
def OnSeqRefine(self,event):'''Perform a sequential refinement.Called from self.OnRefine (Which is called from the Calculate/Refine menu)'''Controls = self.GPXtree.GetItemPyData(GetGPXtreeItemId(self,self.root, 'Controls'))seqList = self.testSeqRefineMode()Id = GetGPXtreeItemId(self,self.root,'Sequential results')if no...
50
163
2
1,221
0
5,936
6,115
5,936
null
[]
None
null
0
0
0
null
0
null
The function (OnSeqRefine) defined within the public class called public.The function start at line 5936 and ends at 6115. It contains 163 lines of code and it has a cyclomatic complexity of 50. It takes 2 parameters, represented as [5936.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
OnRunFprime
def OnRunFprime(self,event):'''Run Fprime'''from . import fprimeself.fprime = fprime.Fprime(self)self.fprime.Show()
1
4
2
29
0
6,117
6,121
6,117
null
[]
None
null
0
0
0
null
0
null
The function (OnRunFprime) defined within the public class called public.The function start at line 6117 and ends at 6121. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [6117.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
OnRunAbsorb
def OnRunAbsorb(self,event):'''Run Absorb'''from . import Absorbself.absorb = Absorb.Absorb(self)self.absorb.Show()
1
4
2
29
0
6,123
6,127
6,123
null
[]
None
null
0
0
0
null
0
null
The function (OnRunAbsorb) defined within the public class called public.The function start at line 6123 and ends at 6127. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [6123.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
OnRunPlotXNFF
def OnRunPlotXNFF(self,evnt):'''Run PlotXNFF'''from . import PlotXNFFself.plotXNFF = PlotXNFF.PlotXNFF(self)self.plotXNFF.Show()
1
4
2
29
0
6,129
6,133
6,129
null
[]
None
null
0
0
0
null
0
null
The function (OnRunPlotXNFF) defined within the public class called public.The function start at line 6129 and ends at 6133. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [6129.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
ErrorDialog
def ErrorDialog(self,title,message,parent=None, wtype=wx.OK):'Display an error message'result = Noneif parent is None:dlg = wx.MessageDialog(self, message, title,wtype)else:dlg = wx.MessageDialog(parent, message, title,wtype)dlg.CenterOnParent() # not working on Mactry:result = dlg.ShowModal()finally:dlg.Destroy()retur...
3
13
5
81
0
6,135
6,147
6,135
null
[]
None
null
0
0
0
null
0
null
The function (ErrorDialog) defined within the public class called public.The function start at line 6135 and ends at 6147. It contains 13 lines of code and it has a cyclomatic complexity of 3. It takes 5 parameters, represented as [6135.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
OnSaveMultipleImg
def OnSaveMultipleImg(self,event):'''Select and save multiple image parameter and mask files'''G2IO.SaveMultipleImg(self)
1
2
2
14
0
6,149
6,152
6,149
null
[]
None
null
0
0
0
null
0
null
The function (OnSaveMultipleImg) defined within the public class called public.The function start at line 6149 and ends at 6152. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [6149.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
DoSequentialProjExport
def DoSequentialProjExport(self,event):'''Export a sequential projectduplicates part of GSASIIseqGUI.DoSequentialExport'''Id = GetGPXtreeItemId(self,self.root,'Sequential results')if not Id:print('Error in DoSequentialProjExport: no Seq Res table. How did this happen?')returndata = self.GPXtree.GetItemPyData(Id)Control...
2
8
2
68
0
6,154
6,165
6,154
null
[]
None
null
0
0
0
null
0
null
The function (DoSequentialProjExport) defined within the public class called public.The function start at line 6154 and ends at 6165. It contains 8 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [6154.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
__init__
def __init__(self,parent):self.parent = parent# create an outer unscrolled panelself.outer = wx.Panel(parent,size=parent.GetSize(),name='Outer data window')mainSizer = wx.BoxSizer(wx.VERTICAL)self.outer.SetSizer(mainSizer)# three things in unscrolled panel, topBox, self (ScrolledWindow) and bottomBox# topBoxself.topBox...
1
19
2
186
0
6,274
6,300
6,274
null
[]
None
null
0
0
0
null
0
null
The function (__init__) defined within the public class called public.The function start at line 6274 and ends at 6300. It contains 19 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [6274.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
ClearData
def ClearData(self):'''Initializes the contents of the dataWindow panel'''self.customResize = None# allows a dataWindow to define a routine used for a resizeself.Unbind(wx.EVT_SIZE)self.topBox.Clear(True)self.bottomBox.Clear(True)#self.SetBackgroundColour(wx.WHITE) # this screws up dark mode#self.SetBackgroundColour(VE...
4
15
1
83
0
6,302
6,321
6,302
null
[]
None
null
0
0
0
null
0
null
The function (ClearData) defined within the public class called public.The function start at line 6302 and ends at 6321. 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
SetStatusWidth
def SetStatusWidth(self):'Make the left-side of the status bar track the size of the data tree'G2frame = self.GetTopLevelParent()wid,hgt = G2frame.GPXtree.GetSize()G2frame.GetStatusBar().SetStatusWidths([wid+10, -1])
1
5
1
41
0
6,323
6,327
6,323
null
[]
None
null
0
0
0
null
0
null
The function (SetStatusWidth) defined within the public class called public.The function start at line 6323 and ends at 6327. 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
SetDataSize._onResizeGd
def _onResizeGd(event):'''Called when a Window containing only 1 grid is resized'''self.Layout()self.SetVirtualSize(self.GetSize())self.SetStatusWidth()event.Skip()
1
5
1
31
0
6,332
6,337
6,332
null
[]
None
null
0
0
0
null
0
null
The function (SetDataSize._onResizeGd) defined within the public class called public.The function start at line 6332 and ends at 6337. 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
SetDataSize._onResizeNB
def _onResizeNB(event):'''Called when a Window containing only a notebook is resized'''self.Layout()self.SetVirtualSize(self.GetSize())self.SetStatusWidth()event.Skip()
1
5
1
31
0
6,338
6,343
6,338
null
[]
None
null
0
0
0
null
0
null
The function (SetDataSize._onResizeNB) defined within the public class called public.The function start at line 6338 and ends at 6343. 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
SetDataSize._onResize
def _onResize(event):'''Called when any other type of window is resized'''self.SetStatusWidth()
1
2
1
11
0
6,344
6,346
6,344
null
[]
None
null
0
0
0
null
0
null
The function (SetDataSize._onResize) defined within the public class called public.The function start at line 6344 and ends at 6346. 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
SetDataSize
def SetDataSize(self):'''Sizes the contents of the dataWindow panel and sets upfor response to change in size of window.'''def _onResizeGd(event):'''Called when a Window containing only 1 grid is resized'''self.Layout()self.SetVirtualSize(self.GetSize())self.SetStatusWidth()event.Skip()def _onResizeNB(event):'''Called ...
17
45
1
301
0
6,328
6,393
6,328
null
[]
None
null
0
0
0
null
0
null
The function (SetDataSize) defined within the public class called public.The function start at line 6328 and ends at 6393. It contains 45 lines of code and it has a cyclomatic complexity of 17. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
PrefillDataMenu
def PrefillDataMenu(self,menu,empty=False):'''Create the "standard" part of data frame menus & add the dataWindow menu headingsThis menu duplicates the tree menu, but adds an extra help command for the currentdata item and a separator.'''self.datamenu = menuself.GetTopLevelParent().FillMainMenu(menu,addhelp=False) # ad...
2
5
3
52
0
6,395
6,403
6,395
null
[]
None
null
0
0
0
null
0
null
The function (PrefillDataMenu) defined within the public class called public.The function start at line 6395 and ends at 6403. It contains 5 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [6395.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
PostfillDataMenu
def PostfillDataMenu(self,empty=False):'''Add the help menu to the menus associated with data tree items.'''menu = self.datamenuG2frame = self.GetTopLevelParent()if not empty:menu.Append(wx.Menu(title=''),title='|') # add another separatorHelpMenu=G2G.MyHelp(G2frame,includeTree=True,morehelpitems=[('&Tutorials','Tutori...
2
8
2
78
0
6,405
6,414
6,405
null
[]
None
null
0
0
0
null
0
null
The function (PostfillDataMenu) defined within the public class called public.The function start at line 6405 and ends at 6414. It contains 8 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [6405.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
_initMenus._makemenu
def _makemenu(): # routine to create menu when first usedself.ConstraintMenu = wx.MenuBar()self.PrefillDataMenu(self.ConstraintMenu)self.ConstraintTab = wx.Menu(title='')self.ConstraintMenu.Append(menu=self.ConstraintTab, title='Select tab')for Id,txt in ((G2G.wxID_CONSPHASE,'Phase'),(G2G.wxID_CONSHAP,'Histogram/Phase'...
2
29
0
262
0
6,443
6,475
6,443
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 6443 and ends at 6475. It contains 29 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
_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
6,482
6,495
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 6482 and ends at 6495. 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.VectorBodyMenu = wx.MenuBar()self.PrefillDataMenu(self.VectorBodyMenu)self.VectorRBEdit = wx.Menu(title='')self.VectorRBEdit.Append(G2G.wxID_VECTORBODYADD,'Add rigid body','Add vector rigid body')self.VectorBodyMenu.Append(menu=self.VectorRBEdit, title='Edit...
1
12
0
132
0
6,498
6,509
6,498
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 6498 and ends at 6509. It contains 12 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.SpinBodyMenu = wx.MenuBar()self.PrefillDataMenu(self.SpinBodyMenu)self.SpinRBEdit = wx.Menu(title='')self.SpinRBEdit.Append(G2G.wxID_SPINBODYADD,'Add rigid body','Add spinning rigid body')self.SpinBodyMenu.Append(menu=self.SpinRBEdit, title='Edit Spinning Bo...
1
8
0
76
0
6,512
6,519
6,512
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 6512 and ends at 6519. It contains 8 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.RestraintTab = wx.Menu(title='')self.RestraintEdit = wx.Menu(title='')self.RestraintEdit.Append(G2G.wxID_RESTRAINTADD,'Add restraints','Add restraints')self.RestraintEdit.Enable(G2G.wxID_RESTRAINTADD,True)#gets disabled if macromolecule phaseself.RestraintEd...
1
23
0
236
0
6,525
6,548
6,525
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 6525 and ends at 6548. It contains 23 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.SequentialMenu = wx.MenuBar()self.PrefillDataMenu(self.SequentialMenu)self.SequentialFile = wx.Menu(title='')self.SequentialMenu.Append(menu=self.SequentialFile, title='Columns/Rows')self.SequentialFile.Append(G2G.wxID_SELECTUSE,'Set used...','Dialog to sele...
12
81
0
708
0
6,559
6,648
6,559
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 6559 and ends at 6648. It contains 81 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
_initMenus._makemenu
def _makemenu(): # routine to create menu when first usedself.PWDRMenu = wx.MenuBar()self.PrefillDataMenu(self.PWDRMenu)self.ErrorAnal = wx.Menu(title='')self.PWDRMenu.Append(menu=self.ErrorAnal,title='Commands')self.ErrorAnal.Append(G2G.wxID_PWDANALYSIS,'Error Analysis','Error analysis on powder pattern')self.ErrorAna...
1
19
0
244
0
6,663
6,681
6,663
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 6663 and ends at 6681. It contains 19 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.VectorBodyMenu = wx.MenuBar()self.PrefillDataMenu(self.VectorBodyMenu)self.VectorRBEdit = wx.Menu(title='')self.VectorRBEdit.Append(G2G.wxID_VECTORBODYADD,'Add rigid body','Add vector rigid body')self.VectorBodyMenu.Append(menu=self.VectorRBEdit, title='Edit...
1
12
0
132
0
6,686
6,698
6,498
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 6686 and ends at 6698. It contains 12 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.LimitMenu = wx.MenuBar()self.PrefillDataMenu(self.LimitMenu)self.LimitEdit = wx.Menu(title='')self.LimitMenu.Append(menu=self.LimitEdit, title='Edit Limits')self.LimitEdit.Append(G2G.wxID_LIMITCOPY,'Copy','Copy limits to other histograms')self.LimitEdit.Appe...
1
18
0
144
0
6,706
6,723
6,706
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 6706 and ends at 6723. It contains 18 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.BackMenu = wx.MenuBar()self.PrefillDataMenu(self.BackMenu)self.BackEdit = wx.Menu(title='')self.BackMenu.Append(menu=self.BackEdit, title='Background')self.BackEdit.Append(G2G.wxID_BACKCOPY,'Copy','Copy background parameters to other histograms')self.BackEdi...
1
29
0
333
0
6,729
6,757
6,729
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 6729 and ends at 6757. It contains 29 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.InstMenu = wx.MenuBar()self.PrefillDataMenu(self.InstMenu)self.InstEdit = wx.Menu(title='')self.InstMenu.Append(menu=self.InstEdit, title='Operations')self.InstEdit.Append(G2G.wxID_INSTCALIB,'Calibrate','Calibrate from indexed peaks')self.InstEdit.Append(G2G...
1
16
0
188
0
6,764
6,779
6,764
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 6764 and ends at 6779. It contains 16 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.SampleMenu = wx.MenuBar()self.PrefillDataMenu(self.SampleMenu)self.SampleEdit = wx.Menu(title='')self.SampleMenu.Append(menu=self.SampleEdit, title='Command')self.SetScale = self.SampleEdit.Append(G2G.wxID_SETSCALE,'Set scale','Set scale by matching to anoth...
1
17
0
200
0
6,785
6,801
6,785
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 6785 and ends at 6801. 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.PeakMenu = wx.MenuBar()self.PrefillDataMenu(self.PeakMenu)self.PeakEdit = wx.Menu(title='')self.PeakMenu.Append(menu=self.PeakEdit, title='Peak Fitting')self.peaksSel = self.PeakEdit.Append(wx.ID_ANY,'Set sel. ref flags...','Set refinement flags for selected...
1
37
0
390
0
6,810
6,847
6,810
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 6810 and ends at 6847. It contains 37 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.IndPeaksMenu = wx.MenuBar()self.PrefillDataMenu(self.IndPeaksMenu)self.IndPeaksEdit = wx.Menu(title='')self.IndPeaksMenu.Append(menu=self.IndPeaksEdit,title='Operations')self.IndPeaksEdit.Append(G2G.wxID_INDXRELOAD,'Load/Reload','Load/Reload index peaks from...
1
12
0
122
0
6,852
6,864
6,852
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 6852 and ends at 6864. It contains 12 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.IndexMenu = wx.MenuBar()self.PrefillDataMenu(self.IndexMenu)self.IndexEdit = wx.Menu(title='')self.IndexMenu.Append(menu=self.IndexEdit, title='Cell Index/Refine')self.IndexPeaks = self.IndexEdit.Append(G2G.wxID_INDEXPEAKS,'Index Cell','Find cells that index...
1
40
0
336
0
6,874
6,916
6,874
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 6874 and ends at 6916. It contains 40 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.ReflMenu = wx.MenuBar()self.PrefillDataMenu(self.ReflMenu)self.ReflEdit = wx.Menu(title='')self.ReflMenu.Append(menu=self.ReflEdit, title='Reflection List')self.SelectPhase = self.ReflEdit.Append(G2G.wxID_SELECTPHASE,'Select phase','Select phase for reflecti...
1
14
0
164
0
6,921
6,934
6,921
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 6921 and ends at 6934. 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.SpinBodyMenu = wx.MenuBar()self.PrefillDataMenu(self.SpinBodyMenu)self.SpinRBEdit = wx.Menu(title='')self.SpinRBEdit.Append(G2G.wxID_SPINBODYADD,'Add rigid body','Add spinning rigid body')self.SpinBodyMenu.Append(menu=self.SpinRBEdit, title='Edit Spinning Bo...
1
8
0
76
0
6,939
6,946
6,512
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 6939 and ends at 6946. It contains 8 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.SpinBodyMenu = wx.MenuBar()self.PrefillDataMenu(self.SpinBodyMenu)self.SpinRBEdit = wx.Menu(title='')self.SpinRBEdit.Append(G2G.wxID_SPINBODYADD,'Add rigid body','Add spinning rigid body')self.SpinBodyMenu.Append(menu=self.SpinRBEdit, title='Edit Spinning Bo...
1
8
0
76
0
6,951
6,958
6,512
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 6951 and ends at 6958. It contains 8 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
6,964
6,977
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 6964 and ends at 6977. 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.ModelMenu = wx.MenuBar()self.PrefillDataMenu(self.ModelMenu)self.ModelEdit = wx.Menu(title='')self.ModelMenu.Append(menu=self.ModelEdit, title='Models')self.ModelEdit.Append(G2G.wxID_MODELADD,'Add','Add new term to model')self.ModelEdit.Append(G2G.wxID_MODEL...
1
15
0
170
0
6,983
6,997
6,983
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 6983 and ends at 6997. 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
_initMenus._makemenu
def _makemenu(): # routine to create menu when first usedself.LimitMenu = wx.MenuBar()self.PrefillDataMenu(self.LimitMenu)self.LimitEdit = wx.Menu(title='')self.LimitMenu.Append(menu=self.LimitEdit, title='Edit Limits')self.LimitEdit.Append(G2G.wxID_LIMITCOPY,'Copy','Copy limits to other histograms')self.LimitEdit.Appe...
1
13
0
144
0
7,001
7,013
6,706
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 7001 and ends at 7013. It contains 13 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.ImageMenu = wx.MenuBar()self.PrefillDataMenu(self.ImageMenu)self.ImageEdit = wx.Menu(title='')self.ImageMenu.Append(menu=self.ImageEdit, title='Calibration')self.ImageEdit.Append(G2G.wxID_IMCALIBRATE,'Calibrate','Calibrate detector by fitting to calibrant li...
1
31
0
364
0
7,022
7,053
7,022
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 7022 and ends at 7053. It contains 31 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.MaskMenu = wx.MenuBar()self.PrefillDataMenu(self.MaskMenu)self.MaskEdit = wx.Menu(title='')self.MaskMenu.Append(menu=self.MaskEdit, title='Operations')submenu = wx.Menu()self.MaskEdit.AppendSubMenu( submenu,'Create new','')self.MaskEdit.Append(G2G.wxID_MASKC...
1
25
0
291
0
7,060
7,084
7,060
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 7060 and ends at 7084. It contains 25 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..