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
GetSelection
def GetSelection(self):used = []for atm in self.atomTypes:if atm[1]:used.append(str(atm[0]))return self.centers,self.Sphere[0],used
3
6
1
47
0
285
290
285
null
[]
None
null
0
0
0
null
0
null
The function (GetSelection) defined within the public class called public.The function start at line 285 and ends at 290. It contains 6 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
OnOk
def OnOk(self,event):parent = self.GetParent()parent.Raise()self.EndModal(wx.ID_OK)
1
4
2
27
0
292
295
189
null
[]
None
null
0
0
0
null
0
null
The function (OnOk) defined within the public class called public.The function start at line 292 and ends at 295. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [189.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
OnCancel
def OnCancel(self,event):parent = self.GetParent()parent.Raise()self.EndModal(wx.ID_CANCEL)
1
4
2
27
0
297
300
194
null
[]
None
null
0
0
0
null
0
null
The function (OnCancel) defined within the public class called public.The function start at line 297 and ends at 300. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [194.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
__init__
def __init__(self,parent,phase,Trans=np.eye(3),Uvec=np.zeros(3),Vvec=np.zeros(3),ifMag=False,BNSlatt=''):wx.Dialog.__init__(self,parent,wx.ID_ANY,'Setup phase transformation',pos=wx.DefaultPosition,style=wx.DEFAULT_DIALOG_STYLE)self.panel = wx.Panel(self) #just a dummy - gets destroyed in Draw!self.Phase = copy.deepcop...
2
23
4
264
0
311
338
311
null
[]
None
null
0
0
0
null
0
null
The function (__init__) defined within the public class called public.The function start at line 311 and ends at 338. It contains 23 lines of code and it has a cyclomatic complexity of 2. It takes 4 parameters, represented as [311.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
Draw.OnCommon
def OnCommon(event):Obj = event.GetEventObject()self.Common = Obj.GetValue()self.Mtrans = Falseif '*' in self.Common:A,B = G2lat.cell2AB(self.oldCell[:6])self.newCell[2:5] = [A[2,2],90.,90.]a,b = G2lat.cell2AB(self.newCell[:6])self.Trans = np.inner(a,B)#correct!self.ifConstr = Falseself.newSpGrp = 'P 1'SGErr,SGData = G...
4
25
1
232
0
342
366
342
null
[]
None
null
0
0
0
null
0
null
The function (Draw.OnCommon) defined within the public class called public.The function start at line 342 and ends at 366. It contains 25 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
Draw.OnSpaceGroup
def OnSpaceGroup(event):event.Skip()SpcGp = GetSpGrpfromUser(self.panel,self.newSpGrp)if SpcGp == self.newSpGrp or SpcGp is None: #didn't change it!return# try a lookup on the user-supplied nameSpGrpNorm = G2spc.StandardizeSpcName(SpcGp)if SpGrpNorm:SGErr,self.SGData = G2spc.SpcGroup(SpGrpNorm)else:SGErr,self.SGData = ...
8
33
1
288
0
368
401
368
null
[]
None
null
0
0
0
null
0
null
The function (Draw.OnSpaceGroup) defined within the public class called public.The function start at line 368 and ends at 401. It contains 33 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
Draw.OnShowOps
def OnShowOps(event):text,table = G2spc.SGPrint(self.SGData,AddInv=True)if self.ifMag:msg = 'Magnetic space group information'OprNames,SpnFlp = G2spc.GenMagOps(self.SGData)text[0] = ' Magnetic Space Group: '+self.SGData['MagSpGrp']text[3] = ' The magnetic lattice point group is '+self.SGData['MagPtGp']G2G.SGMagSpinBox(...
2
12
1
126
0
403
414
403
null
[]
None
null
0
0
0
null
0
null
The function (Draw.OnShowOps) defined within the public class called public.The function start at line 403 and ends at 414. 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
Draw.OnTest
def OnTest(event):if not self.TestMat():returnif self.Mtrans:self.newCell = G2lat.TransformCell(self.oldCell[:6],self.Trans.T)else:self.newCell = G2lat.TransformCell(self.oldCell[:6],self.Trans)wx.CallAfter(self.Draw)
3
8
1
71
0
416
423
416
null
[]
None
null
0
0
0
null
0
null
The function (Draw.OnTest) defined within the public class called public.The function start at line 416 and ends at 423. 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
Draw.OnMag
def OnMag(event):self.ifMag = Trueself.BNSlatt = self.SGData['SGLatt']G2spc.SetMagnetic(self.SGData)wx.CallAfter(self.Draw)
1
5
1
36
0
425
429
425
null
[]
None
null
0
0
0
null
0
null
The function (Draw.OnMag) defined within the public class called public.The function start at line 425 and ends at 429. 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
Draw.OnConstr
def OnConstr(event):self.ifConstr = constr.GetValue()
1
2
1
14
0
431
432
431
null
[]
None
null
0
0
0
null
0
null
The function (Draw.OnConstr) defined within the public class called public.The function start at line 431 and ends at 432. 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
Draw.OnBNSlatt
def OnBNSlatt(event):Obj = event.GetEventObject()self.BNSlatt = Obj.GetValue()if self.BNSlatt == self.SGData['SGLatt']:returnGenSym,GenFlg,BNSsym = G2spc.GetGenSym(self.SGData)self.SGData['BNSlattsym'] = [self.BNSlatt,BNSsym[self.BNSlatt]]self.SGData['SGSpin'] = [1,]*len(self.SGData['SGSpin'])wx.CallAfter(self.Draw)
2
9
1
96
0
434
442
434
null
[]
None
null
0
0
0
null
0
null
The function (Draw.OnBNSlatt) defined within the public class called public.The function start at line 434 and ends at 442. 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
Draw.OnMtrans
def OnMtrans(event):Obj = event.GetEventObject()self.Mtrans = Obj.GetValue()
1
3
1
21
0
444
446
444
null
[]
None
null
0
0
0
null
0
null
The function (Draw.OnMtrans) defined within the public class called public.The function start at line 444 and ends at 446. 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
Draw.OnSpinOp
def OnSpinOp(event):Obj = event.GetEventObject()isym = Indx[Obj.GetId()]+1spCode = {'red':-1,'black':1}self.SGData['SGSpin'][isym] = spCode[Obj.GetValue()]G2spc.CheckSpin(isym,self.SGData)G2spc.SetMagnetic(self.SGData)wx.CallAfter(self.Draw)
1
8
1
80
0
448
455
448
null
[]
None
null
0
0
0
null
0
null
The function (Draw.OnSpinOp) defined within the public class called public.The function start at line 448 and ends at 455. 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
Draw
def Draw(self):def OnCommon(event):Obj = event.GetEventObject()self.Common = Obj.GetValue()self.Mtrans = Falseif '*' in self.Common:A,B = G2lat.cell2AB(self.oldCell[:6])self.newCell[2:5] = [A[2,2],90.,90.]a,b = G2lat.cell2AB(self.newCell[:6])self.Trans = np.inner(a,B)#correct!self.ifConstr = Falseself.newSpGrp = 'P 1'S...
12
125
1
1,451
0
340
576
340
null
[]
None
null
0
0
0
null
0
null
The function (Draw) defined within the public class called public.The function start at line 340 and ends at 576. It contains 125 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
TestMat
def TestMat(self):VC = nl.det(self.Trans)if VC < 0.:wx.MessageBox('Warning - left handed transformation',caption='Transformation matrix check',style=wx.ICON_EXCLAMATION)return Truetry:nl.inv(self.Trans)except nl.LinAlgError:wx.MessageBox('ERROR - bad transformation matrix',caption='Transformation matrix check',style=wx...
3
13
1
74
0
578
590
578
null
[]
None
null
0
0
0
null
0
null
The function (TestMat) defined within the public class called public.The function start at line 578 and ends at 590. It contains 13 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
GetSelection
def GetSelection(self):self.Phase['General']['SGData'] = self.SGDataif self.ifMag:self.Phase['General']['Name'] += ' mag: 'else:self.Phase['General']['Name'] += ' %s'%(self.Common)if not self.TestMat():return Noneif self.Mtrans:self.Phase['General']['Cell'][1:] = G2lat.TransformCell(self.oldCell[:6],self.Trans.T)return...
4
14
1
190
0
592
605
592
null
[]
None
null
0
0
0
null
0
null
The function (GetSelection) defined within the public class called public.The function start at line 592 and ends at 605. 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
OnOk
def OnOk(self,event):parent = self.GetParent()parent.Raise()self.EndModal(wx.ID_OK)
1
4
2
27
0
607
610
189
null
[]
None
null
0
0
0
null
0
null
The function (OnOk) defined within the public class called public.The function start at line 607 and ends at 610. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [189.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
OnCancel
def OnCancel(self,event):parent = self.GetParent()parent.Raise()self.EndModal(wx.ID_CANCEL)
1
4
2
27
0
612
615
194
null
[]
None
null
0
0
0
null
0
null
The function (OnCancel) defined within the public class called public.The function start at line 612 and ends at 615. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [194.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
__init__
def __init__(self,parent,Name,Atoms,atCodes,atMxyz,ifMag=True,ifOK=False,ifDelete=False):title = 'Subgroup atom list'if ifMag:title = 'Magnetic atom selection'wx.Dialog.__init__(self,parent,wx.ID_ANY,title,pos=wx.DefaultPosition,size=(450,275),style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER)self.panel = wxscroll.Scrolle...
2
17
9
141
0
621
638
621
null
[]
None
null
0
0
0
null
0
null
The function (__init__) defined within the public class called public.The function start at line 621 and ends at 638. It contains 17 lines of code and it has a cyclomatic complexity of 2. It takes 9 parameters, represented as [621.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
Draw.OnUseChk
def OnUseChk(event):Obj = event.GetEventObject()iuse = Indx[Obj.GetId()]self.Use[iuse] = not self.Use[iuse]Obj.SetValue(self.Use[iuse])
1
5
1
47
0
642
646
642
null
[]
None
null
0
0
0
null
0
null
The function (Draw.OnUseChk) defined within the public class called public.The function start at line 642 and ends at 646. 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
Draw
def Draw(self):def OnUseChk(event):Obj = event.GetEventObject()iuse = Indx[Obj.GetId()]self.Use[iuse] = not self.Use[iuse]Obj.SetValue(self.Use[iuse])self.panel.Destroy()self.panel = wxscroll.ScrolledPanel(self,style = wx.DEFAULT_DIALOG_STYLE)Indx = {}Mstr = [' Mx',' My',' Mz']Xstr = ['X','Y','Z']mainSizer = wx.BoxSize...
9
60
1
648
0
640
708
640
null
[]
None
null
0
0
0
null
0
null
The function (Draw) defined within the public class called public.The function start at line 640 and ends at 708. It contains 60 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
GetSelection
def GetSelection(self):useAtoms = []useatCodes = []for use,atom,code in zip(self.Use,self.Atoms,self.atCodes):if use:useAtoms.append(atom)useatCodes.append(code)return useAtoms,useatCodes
3
8
1
54
0
710
717
710
null
[]
None
null
0
0
0
null
0
null
The function (GetSelection) defined within the public class called public.The function start at line 710 and ends at 717. 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
OnYes
def OnYes(self,event):parent = self.GetParent()parent.Raise()self.EndModal(wx.ID_YES)
1
4
2
27
0
719
722
719
null
[]
None
null
0
0
0
null
0
null
The function (OnYes) defined within the public class called public.The function start at line 719 and ends at 722. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [719.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
OnNo
def OnNo(self,event):parent = self.GetParent()parent.Raise()self.EndModal(wx.ID_NO)
1
4
2
27
0
724
727
724
null
[]
None
null
0
0
0
null
0
null
The function (OnNo) defined within the public class called public.The function start at line 724 and ends at 727. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [724.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
OnDelete
def OnDelete(self,event):parent = self.GetParent()parent.Raise()self.EndModal(wx.ID_DELETE)
1
4
2
27
0
729
732
729
null
[]
None
null
0
0
0
null
0
null
The function (OnDelete) defined within the public class called public.The function start at line 729 and ends at 732. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [729.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
__init__
def __init__(self,parent):wx.Dialog.__init__(self,parent,wx.ID_ANY,'Atom group rotation/translation',pos=wx.DefaultPosition,style=wx.DEFAULT_DIALOG_STYLE)self.panel = wx.Panel(self) #just a dummy - gets destroyed in Draw!self.Trans = np.eye(3)self.Vec = np.zeros(3)self.rotAngle = 0.self.rotVec = np.array([0.,0.,1.])sel...
1
10
2
100
0
742
751
742
null
[]
None
null
0
0
0
null
0
null
The function (__init__) defined within the public class called public.The function start at line 742 and ends at 751. It contains 10 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [742.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
Draw.OnExpand
def OnExpand(event):self.Expand = expand.GetValue()
1
2
1
14
0
755
756
755
null
[]
None
null
0
0
0
null
0
null
The function (Draw.OnExpand) defined within the public class called public.The function start at line 755 and ends at 756. 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
Draw.OnRotAngle
def OnRotAngle(event):event.Skip()self.rotAngle = float(rotangle.GetValue())rotangle.SetValue('%5.3f'%(self.rotAngle))Q = G2mth.AVdeg2Q(self.rotAngle,self.rotVec)self.Trans = G2mth.Q2Mat(Q)self.Draw()
1
7
1
63
0
758
764
758
null
[]
None
null
0
0
0
null
0
null
The function (Draw.OnRotAngle) defined within the public class called public.The function start at line 758 and ends at 764. It contains 7 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
Draw.OnRotVec
def OnRotVec(event):event.Skip()vals = rotvec.GetValue()vals = vals.split()self.rotVec = np.array([float(val) for val in vals])rotvec.SetValue('%5.3f %5.3f %5.3f'%(self.rotVec[0],self.rotVec[1],self.rotVec[2]))Q = G2mth.AVdeg2Q(self.rotAngle,self.rotVec)self.Trans = G2mth.Q2Mat(Q)self.Draw()
2
9
1
101
0
766
774
766
null
[]
None
null
0
0
0
null
0
null
The function (Draw.OnRotVec) defined within the public class called public.The function start at line 766 and ends at 774. 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
Draw
def Draw(self):def OnExpand(event):self.Expand = expand.GetValue()def OnRotAngle(event):event.Skip()self.rotAngle = float(rotangle.GetValue())rotangle.SetValue('%5.3f'%(self.rotAngle))Q = G2mth.AVdeg2Q(self.rotAngle,self.rotVec)self.Trans = G2mth.Q2Mat(Q)self.Draw()def OnRotVec(event):event.Skip()vals = rotvec.GetValue...
3
60
1
715
0
753
835
753
null
[]
None
null
0
0
0
null
0
null
The function (Draw) defined within the public class called public.The function start at line 753 and ends at 835. It contains 60 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
GetSelection
def GetSelection(self):return self.Trans,self.Vec,self.Expand
1
2
1
17
0
837
838
837
null
[]
None
null
0
0
0
null
0
null
The function (GetSelection) defined within the public class called public.The function start at line 837 and ends at 838. 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
OnOk
def OnOk(self,event):parent = self.GetParent()parent.Raise()self.EndModal(wx.ID_OK)
1
4
2
27
0
840
843
189
null
[]
None
null
0
0
0
null
0
null
The function (OnOk) defined within the public class called public.The function start at line 840 and ends at 843. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [189.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
OnCancel
def OnCancel(self,event):parent = self.GetParent()parent.Raise()self.EndModal(wx.ID_CANCEL)
1
4
2
27
0
845
848
194
null
[]
None
null
0
0
0
null
0
null
The function (OnCancel) defined within the public class called public.The function start at line 845 and ends at 848. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [194.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
__init__
def __init__(self,parent,ctrls,parms=None):wx.Dialog.__init__(self,parent,wx.ID_ANY,'DIFFaX controls',pos=wx.DefaultPosition,style=wx.DEFAULT_DIALOG_STYLE)self.panel = wx.Panel(self) #just a dummy - gets destroyed in Draw!self.ctrls = ctrlsself.calcType = 'powder pattern'self.plane = 'h0l'self.planeChoice = ['h0l','0kl...
3
18
4
157
0
854
871
854
null
[]
None
null
0
0
0
null
0
null
The function (__init__) defined within the public class called public.The function start at line 854 and ends at 871. It contains 18 lines of code and it has a cyclomatic complexity of 3. It takes 4 parameters, represented as [854.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
Draw.OnCalcType
def OnCalcType(event):self.calcType = calcType.GetValue()wx.CallAfter(self.Draw)
1
3
1
22
0
875
877
875
null
[]
None
null
0
0
0
null
0
null
The function (Draw.OnCalcType) defined within the public class called public.The function start at line 875 and ends at 877. 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
Draw.OnPlane
def OnPlane(event):self.plane = plane.GetValue()
1
2
1
14
0
879
880
879
null
[]
None
null
0
0
0
null
0
null
The function (Draw.OnPlane) defined within the public class called public.The function start at line 879 and ends at 880. 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
Draw.OnMaxL
def OnMaxL(event):self.lmax = lmax.GetValue()
1
2
1
14
0
882
883
882
null
[]
None
null
0
0
0
null
0
null
The function (Draw.OnMaxL) defined within the public class called public.The function start at line 882 and ends at 883. 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
Draw.OnParmSel
def OnParmSel(event):self.Parm = parmsel.GetValue()
1
2
1
14
0
885
886
885
null
[]
None
null
0
0
0
null
0
null
The function (Draw.OnParmSel) defined within the public class called public.The function start at line 885 and ends at 886. 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
Draw.OnNumStep
def OnNumStep(event):self.parmStep = int(numStep.GetValue())
1
2
1
17
0
888
889
888
null
[]
None
null
0
0
0
null
0
null
The function (Draw.OnNumStep) defined within the public class called public.The function start at line 888 and ends at 889. 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
Draw.OnParmRange
def OnParmRange(event):event.Skip()vals = parmrange.GetValue().split()try:vals = [float(vals[0]),float(vals[1])]except ValueError:vals = self.parmRangeparmrange.SetValue('%.3f %.3f'%(vals[0],vals[1]))self.parmRange = vals
2
9
1
73
0
891
899
891
null
[]
None
null
0
0
0
null
0
null
The function (Draw.OnParmRange) defined within the public class called public.The function start at line 891 and ends at 899. 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
Draw.OnInstSel
def OnInstSel(event):self.Inst = instsel.GetValue()
1
2
1
14
0
901
902
901
null
[]
None
null
0
0
0
null
0
null
The function (Draw.OnInstSel) defined within the public class called public.The function start at line 901 and ends at 902. 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
Draw
def Draw(self):def OnCalcType(event):self.calcType = calcType.GetValue()wx.CallAfter(self.Draw)def OnPlane(event):self.plane = plane.GetValue()def OnMaxL(event):self.lmax = lmax.GetValue()def OnParmSel(event):self.Parm = parmsel.GetValue()def OnNumStep(event):self.parmStep = int(numStep.GetValue())def OnParmRange(event...
5
80
1
870
0
873
977
873
null
[]
None
null
0
0
0
null
0
null
The function (Draw) defined within the public class called public.The function start at line 873 and ends at 977. It contains 80 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
GetSelection
def GetSelection(self):used = []for atm in self.atomTypes:if atm[1]:used.append(str(atm[0]))return self.centers,self.Sphere[0],used
3
5
1
47
0
979
983
285
null
[]
None
null
0
0
0
null
0
null
The function (GetSelection) defined within the public class called public.The function start at line 979 and ends at 983. It contains 5 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
OnOk
def OnOk(self,event):parent = self.GetParent()parent.Raise()self.EndModal(wx.ID_OK)
1
4
2
27
0
985
988
189
null
[]
None
null
0
0
0
null
0
null
The function (OnOk) defined within the public class called public.The function start at line 985 and ends at 988. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [189.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
OnCancel
def OnCancel(self,event):parent = self.GetParent()parent.Raise()self.EndModal(wx.ID_CANCEL)
1
4
2
27
0
990
993
194
null
[]
None
null
0
0
0
null
0
null
The function (OnCancel) defined within the public class called public.The function start at line 990 and ends at 993. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [194.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
__init__
def __init__(self,parent,Neigh,phase):wx.Dialog.__init__(self,parent,wx.ID_ANY,'H atom add',pos=wx.DefaultPosition,style=wx.DEFAULT_DIALOG_STYLE)self.panel = wxscroll.ScrolledPanel(self) #just a dummy - gets destroyed in Draw!self.Neigh = Neighself.phase = phaseself.Hatoms = []self.Draw(self.Neigh,self.phase)
1
8
4
77
0
1,005
1,012
1,005
null
[]
None
null
0
0
0
null
0
null
The function (__init__) defined within the public class called public.The function start at line 1005 and ends at 1012. It contains 8 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [1005.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
Draw.OnHSelect
def OnHSelect(event):Obj = event.GetEventObject()item,i = Indx[Obj.GetId()]for obj in Indx[item]:obj.SetValue(False)Obj.SetValue(True)self.Neigh[item][2] = i
2
7
1
55
0
1,018
1,024
1,018
null
[]
None
null
0
0
0
null
0
null
The function (Draw.OnHSelect) defined within the public class called public.The function start at line 1018 and ends at 1024. 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
Draw.OnBond
def OnBond(event):Obj = event.GetEventObject()inei,ibond = Indx[Obj.GetId()]self.Neigh[inei][1][0][ibond][2] = Obj.GetValue()
1
4
1
48
0
1,026
1,029
1,026
null
[]
None
null
0
0
0
null
0
null
The function (Draw.OnBond) defined within the public class called public.The function start at line 1026 and ends at 1029. 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
Draw
def Draw(self,Neigh,phase):'''Creates the contents of the dialog. Normally calledby :meth:`__init__`.'''def OnHSelect(event):Obj = event.GetEventObject()item,i = Indx[Obj.GetId()]for obj in Indx[item]:obj.SetValue(False)Obj.SetValue(True)self.Neigh[item][2] = idef OnBond(event):Obj = event.GetEventObject()inei,ibond = ...
7
56
3
675
0
1,014
1,084
1,014
null
[]
None
null
0
0
0
null
0
null
The function (Draw) defined within the public class called public.The function start at line 1014 and ends at 1084. It contains 56 lines of code and it has a cyclomatic complexity of 7. It takes 3 parameters, represented as [1014.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
GetData
def GetData(self):'Returns the values from the dialog'for neigh in self.Neigh:for ibond,bond in enumerate(neigh[1][0]):if not bond[2]:neigh[1][1][1][ibond] = 0 #deselected bondneigh[1][1][1] = [a for a inneigh[1][1][1] if a]return self.Neigh #has #Hs to add for each entry
6
8
1
84
0
1,086
1,093
1,086
null
[]
None
null
0
0
0
null
0
null
The function (GetData) defined within the public class called public.The function start at line 1086 and ends at 1093. It contains 8 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
OnOk
def OnOk(self,event):'Called when the OK button is pressed'parent = self.GetParent()parent.Raise()self.EndModal(wx.ID_OK)
1
5
2
28
0
1,095
1,099
1,095
null
[]
None
null
0
0
0
null
0
null
The function (OnOk) defined within the public class called public.The function start at line 1095 and ends at 1099. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [1095.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
OnCancel
def OnCancel(self,event):parent = self.GetParent()parent.Raise()self.EndModal(wx.ID_CANCEL)
1
4
2
27
0
1,101
1,104
194
null
[]
None
null
0
0
0
null
0
null
The function (OnCancel) defined within the public class called public.The function start at line 1101 and ends at 1104. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [194.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
getPawleydRange
def getPawleydRange(G2frame,data):'find d-space range in used histograms'fmtd = lambda d: '?' if d is None else '{:.5f}'.format(d)dmaxAll = dminAll = NoneHistograms,Phases = G2frame.GetUsedHistogramsAndPhasesfromTree()nhist = 0chist = 0for item in data['Histograms']:if 'HKLF' in item: #count single crystal histogramsch...
13
31
2
249
7
1,108
1,139
1,108
null
['nhist', 'chist', 'Inst', 'fmtd', 'lbl', 'dminAll', 'dmaxAll']
None
null
0
0
0
null
0
null
The function (getPawleydRange) defined within the public class called public.The function start at line 1108 and ends at 1139. It contains 31 lines of code and it has a cyclomatic complexity of 13. It takes 2 parameters, represented as [1108.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
getAtomSelections
def getAtomSelections(AtmTbl,cn=0,action='action',includeView=False,ask=True):'''get selected atoms from table or ask user if none are selected:param list AtmTbl: atom or draw atom table:param int cn: atom name position:param str action: description for prompt, when needed:param bool includeView: if True, the viewpoint...
12
23
5
214
4
1,141
1,174
1,141
null
['val', 'indx', 'dlg', 'choices']
None
null
0
0
0
null
0
null
The function (getAtomSelections) defined within the public class called public.The function start at line 1141 and ends at 1174. It contains 23 lines of code and it has a cyclomatic complexity of 12. It takes 5 parameters, represented as [1141.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
SetPhaseWindow
def SetPhaseWindow(phasePage,mainSizer=None,Scroll=0):'''Finish off processing for all items going into a phase notebook pageThis connects the sizer to the Panel/ScrolledWindow that is assignedas the notebook's page for a tab.Note that a wx.ScrolledWindow is used for most tab pages, with theexception of Atoms, drawAtom...
3
8
3
63
0
1,176
1,197
1,176
null
[]
None
null
0
0
0
null
0
null
The function (SetPhaseWindow) defined within the public class called public.The function start at line 1176 and ends at 1197. It contains 8 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [1176.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
GetSpGrpfromUser
def GetSpGrpfromUser(parent,SpGrp):helptext = '''\t\t\tGSAS-II space group informationSpace groups are entered here as given in Volume I or Volume A of theInternational Tables using the short Hermann-Mauguin symbol,except that spacesare placed between axial fields (e.g. "P 4/m m m", "F D 3 M" or "p -3 1 m").NB: the cub...
6
49
2
142
7
1,199
1,249
1,199
null
['spcnum', 'SpcGp', 'helptext', 'fld', 'Flds', 'dlg', 'msg']
None
null
0
0
0
null
0
null
The function (GetSpGrpfromUser) defined within the public class called public.The function start at line 1199 and ends at 1249. It contains 49 lines of code and it has a cyclomatic complexity of 6. It takes 2 parameters, represented as [1199.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
FindBondsDraw
def FindBondsDraw(data):'''Generally used routine where cell is from data'''generalData = data['General']cell = generalData['Cell'][1:7]FindBondsDrawCell(data,cell)
1
4
1
29
2
1,252
1,257
1,252
null
['generalData', 'cell']
None
null
0
0
0
null
0
null
The function (FindBondsDraw) defined within the public class called public.The function start at line 1252 and ends at 1257. 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
getAtomRadii
def getAtomRadii(data):'''Get radii for atoms, using generalData['DisAglCtls']['BondRadii']to override generalData['BondRadii'] when present. Fix to make surethat all elements in generalData are present in DisAglCtls.'''generalData = data['General']if 'DisAglCtls' not in generalData:return generalData['AtomTypes'],gene...
6
14
1
134
2
1,259
1,276
1,259
null
['generalData', 'DisAglCtls']
None
null
0
0
0
null
0
null
The function (getAtomRadii) defined within the public class called public.The function start at line 1259 and ends at 1276. It contains 14 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
FindCoordinationByLabel
def FindCoordinationByLabel(data):'''Map out molecular connectivity by determining the atoms bondedto each atom, by label. The atoms bonded to each atom in the asymmetricunit is determined and returned in a dict. Works best'''generalData = data['General']cx,ct,cs,cia = generalData['AtomPtrs']atomTypes,radii = getAtomRa...
10
30
1
313
13
1,278
1,312
1,278
null
['symAtms', 'indA', 'dists', 'xyzA', 'symCellAtms', 'cellArray', 'generalData', 'neighborArray', 'lblA', 'indB', 'sumR', 'SGData', 'error']
None
null
0
0
0
null
0
null
The function (FindCoordinationByLabel) defined within the public class called public.The function start at line 1278 and ends at 1312. It contains 30 lines of code and it has a cyclomatic complexity of 10. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
FindCoordination
def FindCoordination(ind,data,neighborArray,coordsArray,cmx=0,targets=None):'''Find atoms coordinating atom ind, speed-up version.This only searches to atoms already added to the Draw Array, though we might wantto search to all atoms in the asymmetric unity (which would mean searching againstatomsAll, but would also re...
13
51
6
686
25
1,314
1,374
1,314
null
['dists', 'item', 'xyzB', 'symMisc', 'Opr', 'atom', 'lblA', 'indA', 'xyzA', 'M', 'C', 'SGData', 'opNum', 'coords', 'cellArray', 'xyz', 'Uij', 'symCoords', 'mom', 'generalData', 'indB', 'atomData', 'sumR', 'newAtomList', 'atomA']
None
null
0
0
0
null
0
null
The function (FindCoordination) defined within the public class called public.The function start at line 1314 and ends at 1374. It contains 51 lines of code and it has a cyclomatic complexity of 13. It takes 6 parameters, represented as [1314.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
FindBondsDrawCell
def FindBondsDrawCell(data,cell):'''uses numpy & masks - very fast even for proteins!allows different cell as input from seq. refinements'''cx,ct,cs,ci = data['Drawing']['atomPtrs']hydro = data['Drawing']['showHydrogen']atomData = data['Drawing']['Atoms']generalData = data['General']Amat,Bmat = G2lat.cell2AB(cell)atomT...
25
74
2
812
23
1,376
1,452
1,376
null
['dist', 'FaceGen', 'Names', 'i', 'norm', 'face', 'Styles', 'IndB', 'vol', 'IASRN', 'Radii', 'Indx', 'Dx', 'Bonds', 'Atoms', 'Faces', 'm2', 'indH', 'generalData', 'hydro', 'atomData', 'sumR', 'm1']
None
null
0
0
0
null
0
null
The function (FindBondsDrawCell) defined within the public class called public.The function start at line 1376 and ends at 1452. It contains 74 lines of code and it has a cyclomatic complexity of 25. It takes 2 parameters, represented as [1376.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
VoidMap
def VoidMap(data,aMax=1,bMax=1,cMax=1,gridspacing=.25,probeRadius=.5,aMin=0,bMin=0,cMin=0):'''Compute points where there are no atoms within probeRadius A.All atoms in the Atoms list are considered, provided theiroccupancy is non-zero.:param dict data: Phase data array:param float aMax: Maximum along the *a* direction ...
11
43
9
628
16
1,454
1,522
1,454
null
['nind', 'pgbar', 'cellMin', 'result', 'screenSize', 'cellMax', 'VDWdict', 'radius', 'coordGrd', 'lgclArray', 'XYZ', 'GoOn', 'cell', 'Size', 'SGData', 'surroundingCells']
None
null
0
0
0
null
0
null
The function (VoidMap) defined within the public class called public.The function start at line 1454 and ends at 1522. It contains 43 lines of code and it has a cyclomatic complexity of 11. It takes 9 parameters, represented as [1454.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
SetDrawingDefaults
def SetDrawingDefaults(drawingData):"""Add required items into data['drawing'] array if not present. This does not addall the items in SetupDrawingData, but it seems that this is not a problem. Perhaps thetwo routines could be combined?"""defaultDrawing = {'viewPoint':[[0.5,0.5,0.5],[]],'showHydrogen':True,'backColor':...
3
13
1
246
1
1,524
1,540
1,524
null
['defaultDrawing']
None
null
0
0
0
null
0
null
The function (SetDrawingDefaults) defined within the public class called public.The function start at line 1524 and ends at 1540. It contains 13 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
updateAddRBorientText
def updateAddRBorientText(G2frame,testRBObj,Bmat):'''Update all origin/orientation text on the Add RB panel oron main RB Models page in response to Alt+mouse movement'''A,V = G2mth.Q2AVdeg(testRBObj['rbObj']['Orient'][0])testRBObj['rbObj']['OrientVec'][0] = AtestRBObj['rbObj']['OrientVec'][1:] = np.inner(Bmat,V)for i,v...
5
15
3
194
0
1,542
1,563
1,542
null
[]
None
null
0
0
0
null
0
null
The function (updateAddRBorientText) defined within the public class called public.The function start at line 1542 and ends at 1563. It contains 15 lines of code and it has a cyclomatic complexity of 5. It takes 3 parameters, represented as [1542.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
GetReflData
def GetReflData(G2frame,phaseName,reflNames):ReflData = {'RefList':[],'Type':''}if '' in reflNames:return Nonefor reflName in reflNames:if 'PWDR' in reflName:PatternId = G2gd.GetGPXtreeItemId(G2frame,G2frame.root, reflName)if not PatternId: #got 0return NonereflSets = G2frame.GPXtree.GetItemPyData(G2gd.GetGPXtreeItemId...
10
25
3
189
4
1,565
1,589
1,565
null
['PatternId', 'ReflData', 'reflSets', 'reflData']
None
null
0
0
0
null
0
null
The function (GetReflData) defined within the public class called public.The function start at line 1565 and ends at 1589. It contains 25 lines of code and it has a cyclomatic complexity of 10. It takes 3 parameters, represented as [1565.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdatePhaseData.SetupGeneral
def SetupGeneral():try:G2elem.SetupGeneral(data,G2frame.dirname)except ValueError as msg:wx.MessageBox(msg,caption='Element symbol error')
2
5
0
31
0
1,605
1,609
1,605
null
[]
None
null
0
0
0
null
0
null
The function (UpdatePhaseData.SetupGeneral) defined within the public class called public.The function start at line 1605 and ends at 1609. 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
UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.NameSizer.SetDefaultSSsymbol
def SetDefaultSSsymbol():if generalData['SGData']['SGLaue'] in '-1':return '(abg)'elif generalData['SGData']['SGLaue'] in ['2/m']:if generalData['SGData']['SGUniq'] == 'a':return '(a00)'elif generalData['SGData']['SGUniq'] == 'b':return '(0b0)'elif generalData['SGData']['SGUniq'] == 'c':return '(00g)'else:return '(00g)...
6
12
0
73
0
1,631
1,642
1,631
null
[]
None
null
0
0
0
null
0
null
The function (UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.NameSizer.SetDefaultSSsymbol) defined within the public class called public.The function start at line 1631 and ends at 1642. It contains 12 lines of code and it has a cyclomatic complexity of 6. The function does ...
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.NameSizer.OnPhaseName
def OnPhaseName(event):'called when the phase name is changed in "General"'event.Skip()newName = NameTxt.GetValue().strip()renamePhaseName(G2frame,data,Item,generalData,newName)NameTxt.SetValue(newName)
1
6
1
40
0
1,644
1,649
1,644
null
[]
None
null
0
0
0
null
0
null
The function (UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.NameSizer.OnPhaseName) defined within the public class called public.The function start at line 1644 and ends at 1649. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take...
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.NameSizer.OnPhaseType
def OnPhaseType(event):if not len(generalData['AtomTypes']): #can change only if no atoms!generalData['Type'] = TypeTxt.GetValue()pages = [G2frame.phaseDisplay.GetPageText(PageNum) for PageNum in range(G2frame.phaseDisplay.GetPageCount())]if generalData['Type'] == 'faulted':G2frame.Bind(wx.EVT_MENU, OnLoadDIFFaX, id=G2...
13
44
1
433
0
1,651
1,697
1,651
null
[]
None
null
0
0
0
null
0
null
The function (UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.NameSizer.OnPhaseType) defined within the public class called public.The function start at line 1651 and ends at 1697. It contains 44 lines of code and it has a cyclomatic complexity of 13. The function does not ta...
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.NameSizer.OnSpaceGroup
def OnSpaceGroup(event):if generalData['SGData']['SGFixed']:msg = 'Fixed cif generated magnetic space group'text = 'space group can not be changed'wx.MessageBox(text,caption=msg,style=wx.ICON_EXCLAMATION)text,table = G2spc.SGPrint(generalData['SGData'])SGTxt.SetLabel(generalData['SGData']['SpGrp'])msg = 'cif based Spac...
13
61
1
570
0
1,699
1,760
1,699
null
[]
None
null
0
0
0
null
0
null
The function (UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.NameSizer.OnSpaceGroup) defined within the public class called public.The function start at line 1699 and ends at 1760. It contains 61 lines of code and it has a cyclomatic complexity of 13. The function does not t...
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.NameSizer.OnModulated
def OnModulated(event):if not len(generalData['AtomTypes']): #can change only if no atoms!pages = [G2frame.phaseDisplay.GetPageText(PageNum) for PageNum in range(G2frame.phaseDisplay.GetPageCount())]if generalData['Type'] in ['nuclear','magnetic']:generalData['Modulated'] = modulated.GetValue()if generalData['Modulated...
19
53
1
506
0
1,762
1,820
1,762
null
[]
None
null
0
0
0
null
0
null
The function (UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.NameSizer.OnModulated) defined within the public class called public.The function start at line 1762 and ends at 1820. It contains 53 lines of code and it has a cyclomatic complexity of 19. The function does not ta...
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdatePhaseData.UpdatePhaseData.UpdateGeneral.NameSizer
def NameSizer():def SetDefaultSSsymbol():if generalData['SGData']['SGLaue'] in '-1':return '(abg)'elif generalData['SGData']['SGLaue'] in ['2/m']:if generalData['SGData']['SGUniq'] == 'a':return '(a00)'elif generalData['SGData']['SGUniq'] == 'b':return '(0b0)'elif generalData['SGData']['SGUniq'] == 'c':return '(00g)'el...
3
29
0
309
0
1,629
1,845
1,629
null
[]
None
null
0
0
0
null
0
null
The function (UpdatePhaseData.UpdatePhaseData.UpdateGeneral.NameSizer) defined within the public class called public.The function start at line 1629 and ends at 1845. It contains 29 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
UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.CellSizer.OnCellRef
def OnCellRef(event):generalData['Cell'][0] = cellRef.GetValue()
1
2
1
18
0
1,863
1,864
1,863
null
[]
None
null
0
0
0
null
0
null
The function (UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.CellSizer.OnCellRef) defined within the public class called public.The function start at line 1863 and ends at 1864. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take a...
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.CellSizer.OnCellChange
def OnCellChange(invalid,value,tc):SGData = generalData['SGData']laue = SGData['SGLaue']if laue == '2/m':laue += SGData['SGUniq']cell = generalData['Cell']Obj = tcObjId = cellList.index(Obj.GetId())try:value = max(1.0,float(tc.GetValue()))except ValueError:if ObjId < 3: #bad cell edge - resetvalue = cell[ObjId+1]else: ...
19
75
3
637
0
1,866
1,940
1,866
null
[]
None
null
0
0
0
null
0
null
The function (UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.CellSizer.OnCellChange) defined within the public class called public.The function start at line 1866 and ends at 1940. It contains 75 lines of code and it has a cyclomatic complexity of 19. It takes 3 parameters, ...
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdatePhaseData.UpdatePhaseData.UpdateGeneral.CellSizer
def CellSizer():cellGUIlist = [[['m3','m3m'],4,zip([" Unit cell: a = "," Vol = "],["%.5f","%.3f"],[True,False],[0,0])],[['3R','3mR'],6,zip([" a = "," alpha = "," Vol = "],["%.5f","%.3f","%.3f"],[True,True,False],[0,3,0])],[['3','3m1','31m','6/m','6/mmm','4/m','4/mmm'],6,zip([" a = "," c = "," Vol = "],["%.5f","%.5f","%...
8
45
0
718
0
1,847
1,969
1,847
null
[]
None
null
0
0
0
null
0
null
The function (UpdatePhaseData.UpdatePhaseData.UpdateGeneral.CellSizer) defined within the public class called public.The function start at line 1847 and ends at 1969. It contains 45 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
UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.ElemSizer.OnIsotope
def OnIsotope(event):Obj = event.GetEventObject()item = Indx[Obj.GetId()]isotope = Obj.GetValue()nCols = len(generalData['AtomTypes'])+1data['General']['Isotope'][item] = isotopeindx = generalData['AtomTypes'].index(item)wt = generalData['Isotopes'][item][isotope]['Mass']elemSizer.GetChildren()[indx+3*nCols+1].Window.C...
2
14
1
157
0
1,973
1,986
1,973
null
[]
None
null
0
0
0
null
0
null
The function (UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.ElemSizer.OnIsotope) defined within the public class called public.The function start at line 1973 and ends at 1986. It contains 14 lines of code and it has a cyclomatic complexity of 2. The function does not take ...
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.ElemSizer.onDefColor
def onDefColor(event):'''Called when a color bar in elements table is clicked on.Changes default color for element in all phasesN.B. Change is not saved; will go back to original color whenGSAS-II is restarted.Changes colors of matching atoms in Draw Atoms table forcurrent phase -- only.'''if not hasattr(event.GetEvent...
5
17
1
187
0
1,988
2,011
1,988
null
[]
None
null
0
0
0
null
0
null
The function (UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.ElemSizer.onDefColor) defined within the public class called public.The function start at line 1988 and ends at 2011. It contains 17 lines of code and it has a cyclomatic complexity of 5. The function does not take...
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdatePhaseData.UpdatePhaseData.UpdateGeneral.ElemSizer
def ElemSizer():def OnIsotope(event):Obj = event.GetEventObject()item = Indx[Obj.GetId()]isotope = Obj.GetValue()nCols = len(generalData['AtomTypes'])+1data['General']['Isotope'][item] = isotopeindx = generalData['AtomTypes'].index(item)wt = generalData['Isotopes'][item][isotope]['Mass']elemSizer.GetChildren()[indx+3*n...
12
54
0
660
0
1,971
2,063
1,971
null
[]
None
null
0
0
0
null
0
null
The function (UpdatePhaseData.UpdatePhaseData.UpdateGeneral.ElemSizer) defined within the public class called public.The function start at line 1971 and ends at 2063. It contains 54 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
UpdatePhaseData.UpdatePhaseData.UpdateGeneral.DenSizer
def DenSizer():generalData['Mass'] = G2mth.getMass(generalData)density,mattCoeff = G2mth.getDensity(generalData)denSizer = wx.BoxSizer(wx.HORIZONTAL)denSizer.Add(wx.StaticText(General,-1,' Density: '),0,WACV)denTxt = G2G.ReadOnlyTextCtrl(General,-1,'%.3f'%(density))denSizer.Add(denTxt,0,WACV)mattTxt = Noneif generalDat...
3
14
0
155
0
2,065
2,079
2,065
null
[]
None
null
0
0
0
null
0
null
The function (UpdatePhaseData.UpdatePhaseData.UpdateGeneral.DenSizer) defined within the public class called public.The function start at line 2065 and ends at 2079. 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
UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.MagSizer.OnSpinOp
def OnSpinOp(event):if SGData['SGFixed']:msg = 'Fixed cif generated spins'text = 'Spin configuration can not be changed; it will be reset'wx.MessageBox(text,caption=msg,style=wx.ICON_EXCLAMATION)wx.CallAfter(UpdateGeneral)returnObj = event.GetEventObject()isym = Indx[Obj.GetId()]+1spCode = {'red':-1,'black':1}SGData['S...
2
13
1
101
0
2,083
2,095
2,083
null
[]
None
null
0
0
0
null
0
null
The function (UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.MagSizer.OnSpinOp) defined within the public class called public.The function start at line 2083 and ends at 2095. It contains 13 lines of code and it has a cyclomatic complexity of 2. The function does not take an...
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.MagSizer.OnBNSlatt
def OnBNSlatt(event):Obj = event.GetEventObject()BNSlatt = Obj.GetValue()SGData = generalData['SGData']SpcGrp = SGData['SpGrp']if SGData['SGGray']:SpcGrp += " 1'"SGErr,SGData = G2spc.SpcGroup(SpcGrp)if '_' in BNSlatt:SGData['BNSlattsym'] = [BNSlatt,BNSsym[BNSlatt]]else:SGData['BNSlattsym'] = [SGData['SGLatt'],[0.,0.,0....
3
21
1
175
0
2,097
2,117
2,097
null
[]
None
null
0
0
0
null
0
null
The function (UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.MagSizer.OnBNSlatt) defined within the public class called public.The function start at line 2097 and ends at 2117. It contains 21 lines of code and it has a cyclomatic complexity of 3. The function does not take a...
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.MagSizer.OnShowSpins
def OnShowSpins(event):msg = 'Magnetic space group information'text,table = G2spc.SGPrint(SGData,AddInv=not SGData['SGFixed'])text[0] = ' Magnetic Space Group: '+SGData['MagSpGrp']text[3] = ' The magnetic lattice point group is '+SGData['MagPtGp']if SGData['SGGray'] and "1'" not in text[0]:text[0] += " 1'"text[3] += "1...
3
10
1
115
0
2,119
2,128
2,119
null
[]
None
null
0
0
0
null
0
null
The function (UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.MagSizer.OnShowSpins) defined within the public class called public.The function start at line 2119 and ends at 2128. It contains 10 lines of code and it has a cyclomatic complexity of 3. The function does not take...
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdatePhaseData.UpdatePhaseData.UpdateGeneral.MagSizer
def MagSizer():def OnSpinOp(event):if SGData['SGFixed']:msg = 'Fixed cif generated spins'text = 'Spin configuration can not be changed; it will be reset'wx.MessageBox(text,caption=msg,style=wx.ICON_EXCLAMATION)wx.CallAfter(UpdateGeneral)returnObj = event.GetEventObject()isym = Indx[Obj.GetId()]+1spCode = {'red':-1,'bla...
9
62
0
623
0
2,081
2,187
2,081
null
[]
None
null
0
0
0
null
0
null
The function (UpdatePhaseData.UpdatePhaseData.UpdateGeneral.MagSizer) defined within the public class called public.The function start at line 2081 and ends at 2187. It contains 62 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
UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.ModulatedSizer.OnShowSOps
def OnShowSOps(event):SSGData = generalData['SSGData']text,table = G2spc.SSGPrint(generalData['SGData'],SSGData,not SGData['SGFixed'])msg = 'Superspace Group Information'G2G.SGMessageBox(General,msg,text,table,SGData.get('SpnFlp',[])).ShowModal()
1
5
1
61
0
2,191
2,195
2,191
null
[]
None
null
0
0
0
null
0
null
The function (UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.ModulatedSizer.OnShowSOps) defined within the public class called public.The function start at line 2191 and ends at 2195. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not ...
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.ModulatedSizer.OnSuperGp
def OnSuperGp(event): #for HKLF needs to reject SSgps not agreeing with modVec!'Respond to selection of a modulation group'wx.BeginBusyCursor()Choice = G2spc.SSChoice(SGData)wx.EndBusyCursor()dlg = wx.Dialog(General,style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER)sizer = wx.BoxSizer(wx.VERTICAL)sizer.Add(wx.StaticText(d...
5
48
1
377
0
2,197
2,245
2,197
null
[]
None
null
0
0
0
null
0
null
The function (UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.ModulatedSizer.OnSuperGp) defined within the public class called public.The function start at line 2197 and ends at 2245. It contains 48 lines of code and it has a cyclomatic complexity of 5. The function does not ...
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.ModulatedSizer.OnVecRef
def OnVecRef(event):generalData['SuperVec'][1] = Ref.GetValue()
1
2
1
18
0
2,247
2,248
2,247
null
[]
None
null
0
0
0
null
0
null
The function (UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.ModulatedSizer.OnVecRef) defined within the public class called public.The function start at line 2247 and ends at 2248. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not ta...
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.ModulatedSizer.OnMax
def OnMax(event):generalData['SuperVec'][2] = int(Max.GetValue())
1
2
1
21
0
2,250
2,251
2,250
null
[]
None
null
0
0
0
null
0
null
The function (UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.ModulatedSizer.OnMax) defined within the public class called public.The function start at line 2250 and ends at 2251. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take ...
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdatePhaseData.UpdatePhaseData.UpdateGeneral.ModulatedSizer
def ModulatedSizer(name):def OnShowSOps(event):SSGData = generalData['SSGData']text,table = G2spc.SSGPrint(generalData['SGData'],SSGData,not SGData['SGFixed'])msg = 'Superspace Group Information'G2G.SGMessageBox(General,msg,text,table,SGData.get('SpnFlp',[])).ShowModal()def OnSuperGp(event): #for HKLF needs to reject S...
8
55
1
603
0
2,189
2,302
2,189
null
[]
None
null
0
0
0
null
0
null
The function (UpdatePhaseData.UpdatePhaseData.UpdateGeneral.ModulatedSizer) defined within the public class called public.The function start at line 2189 and ends at 2302. It contains 55 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
UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.PawleySizer.enablePawley
def enablePawley(*args):for c in PawleyCtrlsList:c.Enable(generalData['doPawley'])# If Pawley is on, turn off Le Bail settings (since they will# be hidden)if generalData['doPawley']:Controls = G2frame.GPXtree.GetItemPyData(G2gd.GetGPXtreeItemId(G2frame,G2frame.GPXtree.root, 'Controls'))Controls['newLeBail'] = Falsefor ...
4
11
1
91
0
2,306
2,318
2,306
null
[]
None
null
0
0
0
null
0
null
The function (UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.PawleySizer.enablePawley) defined within the public class called public.The function start at line 2306 and ends at 2318. It contains 11 lines of code and it has a cyclomatic complexity of 4. The function does not ...
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdatePhaseData.UpdatePhaseData.UpdateGeneral.PawleySizer
def PawleySizer():# find d-space range in used histogramsdef enablePawley(*args):for c in PawleyCtrlsList:c.Enable(generalData['doPawley'])# If Pawley is on, turn off Le Bail settings (since they will# be hidden)if generalData['doPawley']:Controls = G2frame.GPXtree.GetItemPyData(G2gd.GetGPXtreeItemId(G2frame,G2frame.GP...
3
36
0
419
0
2,304
2,356
2,304
null
[]
None
null
0
0
0
null
0
null
The function (UpdatePhaseData.UpdatePhaseData.UpdateGeneral.PawleySizer) defined within the public class called public.The function start at line 2304 and ends at 2356. It contains 36 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
UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.MapSizer.OnMapType
def OnMapType(event):Map['MapType'] = mapType.GetValue()if 'delt-F' in Map['MapType']:data['Drawing']['contourColor'] = 'RdYlGn'else:data['Drawing']['contourColor'] = 'YlGnBu'
2
6
1
43
0
2,360
2,365
2,360
null
[]
None
null
0
0
0
null
0
null
The function (UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.MapSizer.OnMapType) defined within the public class called public.The function start at line 2360 and ends at 2365. It contains 6 lines of code and it has a cyclomatic complexity of 2. The function does not take an...
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.MapSizer.OnRefList
def OnRefList(event):if not refsList:G2G.G2MessageBox(G2frame,'No reflections')returndlg = G2G.G2MultiChoiceDialog(G2frame, 'Select reflection sets to use','Use data',refsList)try:if dlg.ShowModal() == wx.ID_OK:if not len(dlg.GetSelections()):dlg.Destroy()returnMap['RefList'] = [refsList[i] for i in dlg.GetSelections()...
6
18
1
111
0
2,367
2,384
2,367
null
[]
None
null
0
0
0
null
0
null
The function (UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.MapSizer.OnRefList) defined within the public class called public.The function start at line 2367 and ends at 2384. It contains 18 lines of code and it has a cyclomatic complexity of 6. The function does not take a...
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.MapSizer.OnDysnomia
def OnDysnomia(event):data['General']['doDysnomia'] = not data['General']['doDysnomia']pages = [G2frame.phaseDisplay.GetPageText(PageNum) for PageNum in range(G2frame.phaseDisplay.GetPageCount())]if generalData['doDysnomia']:if 'Dysnomia' not in pages:G2frame.MEMData = wx.ScrolledWindow(G2frame.phaseDisplay)# G2frame.B...
6
19
1
248
0
2,386
2,407
2,386
null
[]
None
null
0
0
0
null
0
null
The function (UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.MapSizer.OnDysnomia) defined within the public class called public.The function start at line 2386 and ends at 2407. It contains 19 lines of code and it has a cyclomatic complexity of 6. The function does not take ...
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdatePhaseData.UpdatePhaseData.UpdateGeneral.MapSizer
def MapSizer():def OnMapType(event):Map['MapType'] = mapType.GetValue()if 'delt-F' in Map['MapType']:data['Drawing']['contourColor'] = 'RdYlGn'else:data['Drawing']['contourColor'] = 'YlGnBu'def OnRefList(event):if not refsList:G2G.G2MessageBox(G2frame,'No reflections')returndlg = G2G.G2MultiChoiceDialog(G2frame, 'Selec...
11
49
0
560
0
2,358
2,454
2,358
null
[]
None
null
0
0
0
null
0
null
The function (UpdatePhaseData.UpdatePhaseData.UpdateGeneral.MapSizer) defined within the public class called public.The function start at line 2358 and ends at 2454. It contains 49 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
UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.FlipSizer.OnRefList
def OnRefList(event):dlg = G2G.G2MultiChoiceDialog(G2frame, 'Select reflection sets to use','Use data',refsList)try:if dlg.ShowModal() == wx.ID_OK:if not len(dlg.GetSelections()):dlg.Destroy()returnFlip['RefList'] = [refsList[i] for i in dlg.GetSelections()]else:dlg.Destroy()returnfinally:dlg.Destroy()wx.CallAfter(Upda...
5
15
1
98
0
2,463
2,477
2,463
null
[]
None
null
0
0
0
null
0
null
The function (UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.FlipSizer.OnRefList) defined within the public class called public.The function start at line 2463 and ends at 2477. It contains 15 lines of code and it has a cyclomatic complexity of 5. The function does not take ...
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.FlipSizer.OnNormElem
def OnNormElem(event):PE = G2elemGUI.PickElement(G2frame,ifNone=True)if PE.ShowModal() == wx.ID_OK:Flip['Norm element'] = PE.Elem.strip()normElem.SetLabel(Flip['Norm element'])PE.Destroy()
2
6
1
54
0
2,479
2,484
2,479
null
[]
None
null
0
0
0
null
0
null
The function (UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.FlipSizer.OnNormElem) defined within the public class called public.The function start at line 2479 and ends at 2484. It contains 6 lines of code and it has a cyclomatic complexity of 2. The function does not take ...
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.FlipSizer.OnTestHKL
def OnTestHKL(event):event.Skip()Obj = event.GetEventObject()name = Obj.GetName()try:vals = Obj.GetValue().split()Id = int(name.split('hkl')[1])HKL = [int(val) for val in vals]Flip['testHKL'][Id] = HKLexcept ValueError:HKL = Flip['testHKL'][Id]Obj.ChangeValue('%3d %3d %3d'%(HKL[0],HKL[1],HKL[2]))
3
12
1
107
0
2,486
2,497
2,486
null
[]
None
null
0
0
0
null
0
null
The function (UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.FlipSizer.OnTestHKL) defined within the public class called public.The function start at line 2486 and ends at 2497. It contains 12 lines of code and it has a cyclomatic complexity of 3. The function does not take ...
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdatePhaseData.UpdatePhaseData.UpdateGeneral.FlipSizer
def FlipSizer():#patchesif 'k-Max' not in Flip: Flip['k-Max'] = 20.if 'MScorr' not in Flip: Flip['MScorr'] = 0.0if 'Resolution' in Flip:Flip['GridStep'] = Flip['Resolution']def OnRefList(event):dlg = G2G.G2MultiChoiceDialog(G2frame, 'Select reflection sets to use','Use data',refsList)try:if dlg.ShowModal() == wx.ID_OK:...
12
55
0
762
0
2,456
2,546
2,456
null
[]
None
null
0
0
0
null
0
null
The function (UpdatePhaseData.UpdatePhaseData.UpdateGeneral.FlipSizer) defined within the public class called public.The function start at line 2456 and ends at 2546. It contains 55 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
UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.MCSASizer.OnRefList
def OnRefList(event):MCSAdata['Data source'] = refList.GetValue()
1
2
1
15
0
2,550
2,551
2,550
null
[]
None
null
0
0
0
null
0
null
The function (UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.MCSASizer.OnRefList) defined within the public class called public.The function start at line 2550 and ends at 2551. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take a...
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.MCSASizer.OnCycles
def OnCycles(event):MCSAdata['Cycles'] = int(cycles.GetValue())
1
2
1
18
0
2,553
2,554
2,553
null
[]
None
null
0
0
0
null
0
null
The function (UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.MCSASizer.OnCycles) defined within the public class called public.The function start at line 2553 and ends at 2554. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take an...