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 | OnPageChanged | def OnPageChanged(event):'''This is called every time that a Notebook tab button is pressedon a Phase data item window'''page = event.GetSelection()G2frame.phaseDisplay.SetSize(G2frame.dataWindow.GetClientSize())#TODO -almost right# force edits in open grids to completenewlist = []for p in G2frame.phaseDisplay.gridList... | 4 | 13 | 1 | 76 | 0 | 12,963 | 12,980 | 12,963 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (OnPageChanged) defined within the public class called public.The function start at line 12963 and ends at 12980. 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 | ChangePage | def ChangePage(page):text = G2frame.phaseDisplay.GetPageText(page)G2frame.lastSelectedPhaseTab = textG2frame.dataWindow.helpKey = 'Phase-'+text # use name of Phase tab for help lookupif text == 'General':G2gd.SetDataMenuBar(G2frame,G2frame.dataWindow.DataGeneral)UpdateGeneral()elif text == 'Data': # only when conf 'Sep... | 18 | 62 | 1 | 512 | 0 | 12,982 | 13,043 | 12,982 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (ChangePage) defined within the public class called public.The function start at line 12982 and ends at 13043. It contains 62 lines of code and it has a cyclomatic complexity of 18. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | FillMenus | def FillMenus():'''Create the Select tab menus and bind to all menu items'''# GeneralFillSelectPageMenu(TabSelectionIdDict, G2frame.dataWindow.DataGeneral)G2frame.Bind(wx.EVT_MENU, OnFourierMaps, id=G2G.wxID_FOURCALC)G2frame.Bind(wx.EVT_MENU, OnSearchMaps, id=G2G.wxID_FOURSEARCH)G2frame.Bind(wx.EVT_MENU, OnChargeFlip, ... | 7 | 158 | 0 | 2,358 | 0 | 13,045 | 13,225 | 13,045 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (FillMenus) defined within the public class called public.The function start at line 13045 and ends at 13225. It contains 158 lines of code and it has a cyclomatic complexity of 7. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | rbKeyPress | def rbKeyPress(event):'''Respond to a Tab to highlight the next RB or crystal atom'''if 'testRBObj' not in data: returnif not RigidBodies.atomsGrid: returnalt = event.GetModifiers() & wx.MOD_ALTevent.Skip()try: # IsKeyInCategory not in wx 2.9if not event.IsKeyInCategory(wx.WXK_CATEGORY_TAB): returnexcept:returnif alt:#... | 15 | 45 | 1 | 339 | 0 | 13,227 | 13,274 | 13,227 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (rbKeyPress) defined within the public class called public.The function start at line 13227 and ends at 13274. It contains 45 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 | CheckAddHKLF | def CheckAddHKLF(G2frame,data):'''GUI actions associated with linking a Phase to a HKLF histogram.This gets called in two routines named OnHklfAdd (one inside:func:`GSASIIphsGUI.UpdatePhaseData` and the other inside:func:`GSASIIddataGUI.MakeHistPhaseWin`).'''keyList = list(data['Histograms'].keys())TextList = []if not ... | 19 | 49 | 2 | 339 | 10 | 13,429 | 13,489 | 13,429 | null | ['TextList', 'usedHKLFhists', 'histoName', 'used', 'dlg', 'name', 'Id', 'result', 'msg', 'keyList'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (CheckAddHKLF) defined within the public class called public.The function start at line 13429 and ends at 13489. It contains 49 lines of code and it has a cyclomatic complexity of 19. It takes 2 parameters, represented as [13429.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | checkPDFfit | def checkPDFfit(G2frame):'''Checks to see if PDFfit2 is available and can be imported. PDFfit2 can be installedin a separate Python interpreter (saved in the pdffit2_exec config variable). If this isdefined, no attempt is made to check that it actually runs.Otherwise, if diffpy.PDFfit has been installed with conda/pip,... | 12 | 56 | 1 | 280 | 3 | 13,491 | 13,563 | 13,491 | null | ['msg', 'dlg', 'vars'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (checkPDFfit) defined within the public class called public.The function start at line 13491 and ends at 13563. It contains 56 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 | makeIsoNewPhase | def makeIsoNewPhase(phData,cell,atomList,sglbl,sgnum):'''create a new phase from a supergroup structure generated by ISOCIF'''if len(atomList) == 0:print(sglbl,'empty structure')return# create a new phasetry:sgnum = int(sgnum)sgsym = G2spc.spgbyNum[sgnum]#sgname = sgsym.replace(" ","")except:print(f'Problem with proces... | 8 | 41 | 5 | 373 | 7 | 13,565 | 13,609 | 13,565 | null | ['sgsym', 'sgnum', 'newPhase', 'Atoms', 'generalData', 'SGData', 'atom'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (makeIsoNewPhase) defined within the public class called public.The function start at line 13565 and ends at 13609. It contains 41 lines of code and it has a cyclomatic complexity of 8. It takes 5 parameters, represented as [13565.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | saveIsoNewPhase | def saveIsoNewPhase(G2frame,phData,newPhase,orgFilName):'''save the new phase generated by ISOCIF created in :func:`makeIsoNewPhase`into a GSAS-II project (.gpx) file'''import rephData.update(newPhase)# save new filesgname = newPhase['General']['SGData']['SpGrp'].replace(' ','')G2frame.GSASprojectfile = os.path.splitex... | 4 | 19 | 4 | 156 | 3 | 13,611 | 13,633 | 13,611 | null | ['s', 'sgname', 'num'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (saveIsoNewPhase) defined within the public class called public.The function start at line 13611 and ends at 13633. It contains 19 lines of code and it has a cyclomatic complexity of 4. It takes 4 parameters, represented as [13611.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | renamePhaseName | def renamePhaseName(G2frame,data,phaseItem,generalData,newName):'''Called to rename the phase. Updates the tree and items thatreference the file name. '''oldName = generalData['Name']phaseRIdList,usedHistograms = G2frame.GetPhaseInfofromTree()phaseNameList = usedHistograms.keys() # phase names in useif newName and newN... | 9 | 27 | 5 | 241 | 9 | 13,635 | 13,666 | 13,635 | null | ['oldName', 'Restraints', 'phaseNameList', 'i', 'RfList', 'rt', 'newName', 'resId', 'ht'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (renamePhaseName) defined within the public class called public.The function start at line 13635 and ends at 13666. It contains 27 lines of code and it has a cyclomatic complexity of 9. It takes 5 parameters, represented as [13635.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDysnomia.OnOptMeth | def OnOptMeth(event):DysData['Optimize'] = OptMeth.GetValue()wx.CallAfter(UpdateDysnomia,G2frame,data) | 1 | 3 | 1 | 25 | 0 | 72 | 74 | 72 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDysnomia.OnOptMeth) defined within the public class called public.The function start at line 72 and ends at 74. 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 | UpdateDysnomia.OnZmult | def OnZmult(event):DysData['Lagrange'][0] = Zmult.GetValue()wx.CallAfter(UpdateDysnomia,G2frame,data) | 1 | 3 | 1 | 28 | 0 | 76 | 78 | 76 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDysnomia.OnZmult) defined within the public class called public.The function start at line 76 and ends at 78. 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 | UpdateDysnomia.OnStart | def OnStart(event):DysData['DenStart'] = Start.GetValue() | 1 | 2 | 1 | 15 | 0 | 80 | 81 | 80 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDysnomia.OnStart) defined within the public class called public.The function start at line 80 and ends at 81. 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 | UpdateDysnomia.OnPrior | def OnPrior(event):DysData['prior'] = Prior.GetValue()if DysData['prior'] == 'last run':if os.path.isfile(pName+'_prior.pgrid'):os.remove(pName+'_prior.pgrid')os.rename(pName+'.pgrid',pName+'_prior.pgrid') | 3 | 6 | 1 | 55 | 0 | 83 | 88 | 83 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDysnomia.OnPrior) defined within the public class called public.The function start at line 83 and ends at 88. 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 | UpdateDysnomia.OnFileCheck | def OnFileCheck(event):DysData['clear'] = fileCheck.GetValue() | 1 | 2 | 1 | 15 | 0 | 90 | 91 | 90 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDysnomia.OnFileCheck) defined within the public class called public.The function start at line 90 and ends at 91. 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 | UpdateDysnomia | def UpdateDysnomia(G2frame,data):''' Present the controls for running Dysnomia'''def OnOptMeth(event):DysData['Optimize'] = OptMeth.GetValue()wx.CallAfter(UpdateDysnomia,G2frame,data)def OnZmult(event):DysData['Lagrange'][0] = Zmult.GetValue()wx.CallAfter(UpdateDysnomia,G2frame,data)def OnStart(event):DysData['DenStart... | 11 | 108 | 2 | 1,217 | 32 | 69 | 198 | 69 | null | ['Cyc', 'refDmin', 'pId', 'Map', 'topSizer', 'Csizer', 'Zsizer', 'DysData', 'OptMeth', 'overlap', 'reflSets', 'parent', 'Zmult', 'Start', 'treeId', 'mulMin', 'dlamb', 'lineSizer', 'fileCheck', 'UseList', 'MEMData', 'lbl', 'pName', 'reflData', 'PriorSizer', 'Efact', 'lamb', 'Dmin', 'generalData', 'mainSizer', 'Prior', '... | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDysnomia) defined within the public class called public.The function start at line 69 and ends at 198. It contains 108 lines of code and it has a cyclomatic complexity of 11. It takes 2 parameters, represented as [69.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDeformation.OnRadFxn | def OnRadFxn(event):Obj = event.GetEventObject()dId = Indx[Obj.GetId()]deformationData[-dId]['Radial'] = radFxn.GetStringSelection()wx.CallAfter(UpdateDeformation,G2frame,data,dId) | 1 | 5 | 1 | 48 | 0 | 204 | 208 | 204 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDeformation.OnRadFxn) defined within the public class called public.The function start at line 204 and ends at 208. 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 | UpdateDeformation.MakeUVmat | def MakeUVmat(defData,U,V):MX = Uif 'A' in defData['MUV']:MY = VMZ = np.cross(MX,MY)MZ /= nl.norm(MZ)MY = np.cross(MZ,MX)MY /= nl.norm(MY)else:MZ = VMY = np.cross(MZ,MX)MY /= nl.norm(MY)MZ = np.cross(MX,MY)MZ /= nl.norm(MZ)return np.array([MX,MY,MZ]) | 2 | 15 | 3 | 117 | 0 | 210 | 224 | 210 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDeformation.MakeUVmat) defined within the public class called public.The function start at line 210 and ends at 224. It contains 15 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [210.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDeformation.OnDeformRef | def OnDeformRef(event):Obj = event.GetEventObject()dId,oId,dkey = Indx[Obj.GetId()]deformationData[dId][oId][1][dkey][1] = not deformationData[dId][oId][1][dkey][1] | 1 | 4 | 1 | 60 | 0 | 226 | 229 | 226 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDeformation.OnDeformRef) defined within the public class called public.The function start at line 226 and ends at 229. 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 | UpdateDeformation.OnPlotAtm | def OnPlotAtm(event):Obj = event.GetEventObject()dId = Indx[Obj.GetId()]atom = atomData[AtLookUp[dId]]neigh = G2mth.FindAllNeighbors(data,atom[ct-1],AtNames)deform = deformationData[dId]UVmat = deformationData[-dId]['UVmat']radial = deformationData[-dId]['Radial']G2plt.PlotDeform(G2frame,generalData,atom[ct-1],atom[ct]... | 1 | 9 | 1 | 102 | 0 | 231 | 239 | 231 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDeformation.OnPlotAtm) defined within the public class called public.The function start at line 231 and ends at 239. It contains 9 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDeformation.OnDelAtm | def OnDelAtm(event):Obj = event.GetEventObject()dId = Indx[Obj.GetId()]del deformationData[dId]wx.CallAfter(UpdateDeformation,G2frame,data,None) | 1 | 5 | 1 | 39 | 0 | 241 | 245 | 241 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDeformation.OnDelAtm) defined within the public class called public.The function start at line 241 and ends at 245. 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 | UpdateDeformation.OnMatSel | def OnMatSel(event):"Cartesian axes: A: X'=U, Y'=(UxV)xU & Z'=UxV,B: X'=U, Y'=UxV & Z'=Ux(UxV)"Obj = event.GetEventObject()dId = Indx[Obj.GetId()]deformationData[-dId]['MUV'] = Obj.GetValue()U = UVvec[dId][UVchoice[dId].index(deformationData[-dId]['U'])]V = UVvec[dId][UVchoice[dId].index(deformationData[-dId]['V'])]UVm... | 1 | 10 | 1 | 124 | 0 | 247 | 256 | 247 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDeformation.OnMatSel) defined within the public class called public.The function start at line 247 and ends at 256. It contains 10 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDeformation.OnUvec | def OnUvec(event):"Cartesian axes: A: X'=U, Y'=(UxV)xU & Z'=UxV,B: X'=U, Y'=UxV & Z'=Ux(UxV)"Obj = event.GetEventObject()dId = Indx[Obj.GetId()]if Obj.GetValue() == deformationData[-dId]['V']:Obj.SetValue(deformationData[-dId]['U'])else:U = UVvec[dId][Obj.GetSelection()]V = UVvec[dId][UVchoice[dId].index(deformationDat... | 4 | 19 | 1 | 198 | 0 | 258 | 276 | 258 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDeformation.OnUvec) defined within the public class called public.The function start at line 258 and ends at 276. It contains 19 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 | UpdateDeformation.OnVvec | def OnVvec(event):"Cartesian axes: A: X'=U, Y'=(UxV)xU & Z'=UxV,B: X'=U, Y'=UxV & Z'=Ux(UxV)"Obj = event.GetEventObject()dId = Indx[Obj.GetId()]if Obj.GetValue() == deformationData[-dId]['U']:Obj.SetValue(deformationData[-dId]['V'])else:U = UVvec[dId][UVchoice[dId].index(deformationData[-dId]['U'])]V = UVvec[dId][Obj.G... | 4 | 19 | 1 | 198 | 0 | 278 | 296 | 278 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDeformation.OnVvec) defined within the public class called public.The function start at line 278 and ends at 296. It contains 19 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 | UpdateDeformation.OnAtSel | def OnAtSel(event):dId = atomList[atSel.GetValue()]wx.CallAfter(UpdateDeformation,G2frame,data,dId) | 1 | 3 | 1 | 27 | 0 | 298 | 300 | 298 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDeformation.OnAtSel) defined within the public class called public.The function start at line 298 and ends at 300. 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 | UpdateDeformation.Kappa | def Kappa(deformation,orbSizer,dId,orb,Indx):orbSizer.Add(G2G.ValidatedTxtCtrl(deformation,orb[1]['kappa'],0,nDig=(8,3),xmin=0.5,xmax=1.5))Tcheck = wx.CheckBox(deformation,-1,'Refine?')Tcheck.SetValue(orb[1]['kappa'][1])Tcheck.Bind(wx.EVT_CHECKBOX,OnDeformRef)Indx[Tcheck.GetId()] = [dId,iorb,'kappa']orbSizer.Add(Tcheck... | 1 | 7 | 5 | 114 | 0 | 302 | 308 | 302 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDeformation.Kappa) defined within the public class called public.The function start at line 302 and ends at 308. It contains 7 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [302.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDeformation.NeSizer | def NeSizer(deformation,orbSizer,dId,orb,Indx):orbSizer.Add(G2G.ValidatedTxtCtrl(deformation,orb[1]['Ne'],0,nDig=(8,3),xmin=0.,xmax=10.))Tcheck = wx.CheckBox(deformation,-1,'Refine?')Tcheck.SetValue(orb[1]['Ne'][1])Tcheck.Bind(wx.EVT_CHECKBOX,OnDeformRef)Indx[Tcheck.GetId()] = [dId,iorb,'Ne']orbSizer.Add(Tcheck) | 1 | 7 | 5 | 112 | 0 | 310 | 316 | 310 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDeformation.NeSizer) defined within the public class called public.The function start at line 310 and ends at 316. It contains 7 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [310.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDeformation.Dsizer | def Dsizer(deformation,orbSizer,dId,orb,Indx):orbSizer.Add(wx.StaticText(deformation,label=item+':'))orbSizer.Add(G2G.ValidatedTxtCtrl(deformation,orb[1][item],0,nDig=(8,5),xmin=-1.,xmax=1.))Tcheck = wx.CheckBox(deformation,-1,'Refine?')Tcheck.SetValue(orb[1][item][1])Tcheck.Bind(wx.EVT_CHECKBOX,OnDeformRef)Indx[Tcheck... | 1 | 8 | 5 | 130 | 0 | 318 | 325 | 318 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDeformation.Dsizer) defined within the public class called public.The function start at line 318 and ends at 325. It contains 8 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [318.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDeformation.OnNewHarm | def OnNewHarm(event):Obj = event.GetEventObject()dId = Indx[Obj.GetId()]atom = atomData[AtLookUp[dId]]sytsym = atom[cs].strip()for harm in data['Deformations'][dId]:if 'Sl' in harm[0]:Harm = harmOrder = 1Hkeys = list(Harm[1].keys())orders = [int(item[2]) for item in Hkeys if 'D' in item]if len(orders):Order = max(order... | 11 | 24 | 1 | 204 | 0 | 327 | 353 | 327 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDeformation.OnNewHarm) defined within the public class called public.The function start at line 327 and ends at 353. It contains 24 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 | UpdateDeformation.OnDelHarm | def OnDelHarm(event):Obj = event.GetEventObject()dId = Indx[Obj.GetId()]for harm in data['Deformations'][dId]:if 'Sl' in harm[0]:Harm = harmHkeys = list(Harm[1].keys())if len(Hkeys) > 1:#always an "Ne"maxord = max([int(item[2]) for item in Hkeys if 'D' in item])for item in Hkeys:if 'D' in item and int(item[2]) == maxor... | 9 | 13 | 1 | 127 | 0 | 355 | 367 | 355 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDeformation.OnDelHarm) defined within the public class called public.The function start at line 355 and ends at 367. It contains 13 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 | UpdateDeformation.OnShowDef | def OnShowDef(event):dId = Indx[event.GetEventObject().GetId()]deformationData[-dId]['showDef'] = not deformationData[-dId]['showDef']G2plt.PlotStructure(G2frame,data) | 1 | 4 | 1 | 45 | 0 | 369 | 372 | 369 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDeformation.OnShowDef) defined within the public class called public.The function start at line 369 and ends at 372. 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 | UpdateDeformation.OnAtCol | def OnAtCol(event):dId = Indx[event.GetEventObject().GetId()]deformationData[-dId]['atColor'] = not deformationData[-dId]['atColor']G2plt.PlotStructure(G2frame,data) | 1 | 4 | 1 | 45 | 0 | 374 | 377 | 374 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDeformation.OnAtCol) defined within the public class called public.The function start at line 374 and ends at 377. 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 | UpdateDeformation | def UpdateDeformation(G2frame,data,AtdId):def OnRadFxn(event):Obj = event.GetEventObject()dId = Indx[Obj.GetId()]deformationData[-dId]['Radial'] = radFxn.GetStringSelection()wx.CallAfter(UpdateDeformation,G2frame,data,dId)def MakeUVmat(defData,U,V):MX = Uif 'A' in defData['MUV']:MY = VMZ = np.cross(MX,MY)MZ /= nl.norm(... | 39 | 192 | 3 | 2,164 | 60 | 202 | 558 | 202 | null | ['Vvec', 'Obj', 'fxchoice', 'topSizer', 'Tcheck', 'Np', 'nItems', 'deformationData', 'cofNames', 'MY', 'Order', 'names', 'UVvec', 'showDef', 'radial', 'Mchoice', 'Harm', 'atom', 'atCol', 'delAtm', 'newHarm', 'parent', 'nB', 'neigh', 'AtChoice', 'radFxn', 'matSel', 'atSel', 'UVchoice', 'Hkeys', 'orbSizer', 'orders', 'pl... | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDeformation) defined within the public class called public.The function start at line 202 and ends at 558. It contains 192 lines of code and it has a cyclomatic complexity of 39. It takes 3 parameters, represented as [202.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateISODISTORT.UpdateISODISTORT.displaySetup.OnParentCif | def OnParentCif(event):dlg = wx.FileDialog(G2frame.ISODIST, 'Select parent cif file',G2frame.LastGPXdir,style=wx.FD_OPEN ,wildcard='cif file(*.cif)|*.cif')if dlg.ShowModal() == wx.ID_OK:fName = dlg.GetFilename()fDir = dlg.GetDirectory()ISOdata['ParentCIF'] = os.path.join(fDir,fName)dlg.Destroy()else:dlg.Destroy()Update... | 2 | 11 | 1 | 89 | 0 | 571 | 581 | 571 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateISODISTORT.UpdateISODISTORT.displaySetup.OnParentCif) defined within the public class called public.The function start at line 571 and ends at 581. It contains 11 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 | UpdateISODISTORT.UpdateISODISTORT.displaySetup.OnUsePhase | def OnUsePhase(event):ISOdata['ParentCIF'] = 'Use this phase'UpdateISODISTORT(G2frame,data) | 1 | 3 | 1 | 17 | 0 | 583 | 585 | 583 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateISODISTORT.UpdateISODISTORT.displaySetup.OnUsePhase) defined within the public class called public.The function start at line 583 and ends at 585. 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 | UpdateISODISTORT.UpdateISODISTORT.displaySetup.OnMethodSel | def OnMethodSel(event):method = methodSel.GetSelection()+1if method in [1,4]:ISOdata['ISOmethod'] = methodUpdateISODISTORT(G2frame,data) | 2 | 5 | 1 | 35 | 0 | 587 | 591 | 587 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateISODISTORT.UpdateISODISTORT.displaySetup.OnMethodSel) defined within the public class called public.The function start at line 587 and ends at 591. 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 | UpdateISODISTORT.UpdateISODISTORT.displaySetup.OnChildCif | def OnChildCif(event):dlg = wx.FileDialog(G2frame.ISODIST, 'Select child cif file',G2frame.LastGPXdir,style=wx.FD_OPEN ,wildcard='cif file(*.cif)|*.cif')if dlg.ShowModal() == wx.ID_OK:fName = dlg.GetFilename()fDir = dlg.GetDirectory()ISOdata['ChildCIF'] = os.path.join(fDir,fName)dlg.Destroy()else:dlg.Destroy()UpdateISO... | 2 | 11 | 1 | 89 | 0 | 593 | 603 | 593 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateISODISTORT.UpdateISODISTORT.displaySetup.OnChildCif) defined within the public class called public.The function start at line 593 and ends at 603. It contains 11 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 | UpdateISODISTORT.UpdateISODISTORT.displaySetup.OnUsePhase2 | def OnUsePhase2(event):ISOdata['ChildCIF'] = 'Use this phase'UpdateISODISTORT(G2frame,data) | 1 | 3 | 1 | 17 | 0 | 605 | 607 | 605 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateISODISTORT.UpdateISODISTORT.displaySetup.OnUsePhase2) defined within the public class called public.The function start at line 605 and ends at 607. 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 | UpdateISODISTORT.displaySetup | def displaySetup():def OnParentCif(event):dlg = wx.FileDialog(G2frame.ISODIST, 'Select parent cif file',G2frame.LastGPXdir,style=wx.FD_OPEN ,wildcard='cif file(*.cif)|*.cif')if dlg.ShowModal() == wx.ID_OK:fName = dlg.GetFilename()fDir = dlg.GetDirectory()ISOdata['ParentCIF'] = os.path.join(fDir,fName)dlg.Destroy()else:... | 7 | 41 | 0 | 395 | 0 | 569 | 646 | 569 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateISODISTORT.displaySetup) defined within the public class called public.The function start at line 569 and ends at 646. It contains 41 lines of code and it has a cyclomatic complexity of 7. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateISODISTORT.UpdateISODISTORT.displaySubset.OnLaue | def OnLaue(event):Obj = event.GetEventObject()name = Indx[Obj.GetId()]ISOdata['SGselect'][name[:4]] = not ISOdata['SGselect'][name[:4]]ISOdata['selection'] = NoneUpdateISODISTORT(G2frame,data) | 1 | 6 | 1 | 58 | 0 | 650 | 655 | 650 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateISODISTORT.UpdateISODISTORT.displaySubset.OnLaue) defined within the public class called public.The function start at line 650 and ends at 655. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateISODISTORT.UpdateISODISTORT.displaySubset.OnAllBtn | def OnAllBtn(event):for item in ISOdata['SGselect']:ISOdata['SGselect'][item] = not ISOdata['SGselect'][item]ISOdata['selection'] = NoneUpdateISODISTORT(G2frame,data) | 2 | 5 | 1 | 41 | 0 | 657 | 661 | 657 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateISODISTORT.UpdateISODISTORT.displaySubset.OnAllBtn) defined within the public class called public.The function start at line 657 and ends at 661. 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 | UpdateISODISTORT.displaySubset | def displaySubset():def OnLaue(event):Obj = event.GetEventObject()name = Indx[Obj.GetId()]ISOdata['SGselect'][name[:4]] = not ISOdata['SGselect'][name[:4]]ISOdata['selection'] = NoneUpdateISODISTORT(G2frame,data)def OnAllBtn(event):for item in ISOdata['SGselect']:ISOdata['SGselect'][item] = not ISOdata['SGselect'][item... | 2 | 21 | 0 | 200 | 0 | 648 | 680 | 648 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateISODISTORT.displaySubset) defined within the public class called public.The function start at line 648 and ends at 680. It contains 21 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 | UpdateISODISTORT.UpdateISODISTORT.displayRadio.CheckItem | def CheckItem(item):SGnum = int(item.split()[1].split('*')[0])for SGtype in ISOdata['SGselect']:if ISOdata['SGselect'][SGtype] and SGnum in SGrange[SGtype]:return Truereturn False | 4 | 6 | 1 | 54 | 0 | 684 | 689 | 684 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateISODISTORT.UpdateISODISTORT.displayRadio.CheckItem) defined within the public class called public.The function start at line 684 and ends at 689. It contains 6 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 | UpdateISODISTORT.UpdateISODISTORT.displayRadio.OnSelect | def OnSelect(event): r,c = event.GetRow(),event.GetCol() if c == 0: ISOdata['selection'] = [r,isoTable.GetValue(r,1)] for row in range(isoGrid.GetNumberRows()): isoTable.SetValue(row,c,False) isoTable.SetValue(r,c,True) isoGrid.ForceRefresh() | 3 | 8 | 1 | 79 | 0 | 691 | 698 | 691 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateISODISTORT.UpdateISODISTORT.displayRadio.OnSelect) defined within the public class called public.The function start at line 691 and ends at 698. 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 | UpdateISODISTORT.displayRadio | def displayRadio():def CheckItem(item):SGnum = int(item.split()[1].split('*')[0])for SGtype in ISOdata['SGselect']:if ISOdata['SGselect'][SGtype] and SGnum in SGrange[SGtype]:return Truereturn Falsedef OnSelect(event): r,c = event.GetRow(),event.GetCol() if c == 0: ISOdata['selection'] = [r,isoTable.GetValue(r,1)] for ... | 5 | 30 | 0 | 308 | 0 | 682 | 727 | 682 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateISODISTORT.displayRadio) defined within the public class called public.The function start at line 682 and ends at 727. It contains 30 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 | UpdateISODISTORT.UpdateISODISTORT.displayModes.OnDispl | def OnDispl(event):'''Respond to movement of distortion mode slider'''Obj = event.GetEventObject()idsp,dispVal = Indx[Obj.GetId()]modeDisp[idsp] = Obj.GetValue()/1000.dispVal.SetValue(modeDisp[idsp])err = G2mth.ApplyModeDisp(data)if err:G2G.G2MessageBox(G2frame,'Do Draw atoms first')G2phsG.FindBondsDraw(data)G2plt.Plot... | 2 | 10 | 1 | 80 | 0 | 731 | 741 | 731 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateISODISTORT.UpdateISODISTORT.displayModes.OnDispl) defined within the public class called public.The function start at line 731 and ends at 741. It contains 10 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 | UpdateISODISTORT.UpdateISODISTORT.displayModes.OnDispVal | def OnDispVal(invalid,value,tc):'''Respond to entry of a value into a distortion mode entry widget'''idsp,displ = Indx[tc.GetId()]displ.SetValue(int(value*1000))err = G2mth.ApplyModeDisp(data)if err:G2G.G2MessageBox(G2frame,'Do Draw atoms first')G2phsG.FindBondsDraw(data)G2plt.PlotStructure(G2frame,data) | 2 | 8 | 3 | 66 | 0 | 743 | 751 | 743 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateISODISTORT.UpdateISODISTORT.displayModes.OnDispVal) defined within the public class called public.The function start at line 743 and ends at 751. It contains 8 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [743.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateISODISTORT.UpdateISODISTORT.displayModes.OnRefDispl | def OnRefDispl(event):Obj = event.GetEventObject()idsp,item = Indx[Obj.GetId()]item[-2] = not item[-2] | 1 | 4 | 1 | 36 | 0 | 753 | 756 | 753 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateISODISTORT.UpdateISODISTORT.displayModes.OnRefDispl) defined within the public class called public.The function start at line 753 and ends at 756. 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 | UpdateISODISTORT.UpdateISODISTORT.displayModes.OnReset | def OnReset(event):'''Reset all distortion mode values to initial values'''ISOdata['modeDispl'] = copy.deepcopy(ISOdata['ISOmodeDispl'])err = G2mth.ApplyModeDisp(data)if err:G2G.G2MessageBox(G2frame,'Do Draw atoms first')G2phsG.FindBondsDraw(data)G2plt.PlotStructure(G2frame,data)UpdateISODISTORT(G2frame,data) | 2 | 8 | 1 | 59 | 0 | 758 | 766 | 758 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateISODISTORT.UpdateISODISTORT.displayModes.OnReset) defined within the public class called public.The function start at line 758 and ends at 766. It contains 8 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateISODISTORT.UpdateISODISTORT.displayModes.OnSetZero | def OnSetZero(event):'''Reset all distortion mode values to 0'''ISOdata['modeDispl'] = [0.0 for i in ISOdata['ISOmodeDispl']]err = G2mth.ApplyModeDisp(data)if err:G2G.G2MessageBox(G2frame,'Do Draw atoms first')G2phsG.FindBondsDraw(data)G2plt.PlotStructure(G2frame,data)UpdateISODISTORT(G2frame,data) | 3 | 8 | 1 | 62 | 0 | 768 | 776 | 768 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateISODISTORT.UpdateISODISTORT.displayModes.OnSetZero) defined within the public class called public.The function start at line 768 and ends at 776. 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 | UpdateISODISTORT.UpdateISODISTORT.displayModes.OnSaveModes | def OnSaveModes(event):'''Set saved distortion mode values to displayed values'''dlg = wx.MessageDialog(G2frame,'Are you sure you want to replace the saved mode values?','Confirm replace',wx.YES|wx.NO)try:dlg.CenterOnParent()result = dlg.ShowModal()finally:dlg.Destroy()if result != wx.ID_YES: returnISOdata['ISOmodeDisp... | 3 | 12 | 1 | 83 | 0 | 778 | 790 | 778 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateISODISTORT.UpdateISODISTORT.displayModes.OnSaveModes) defined within the public class called public.The function start at line 778 and ends at 790. It contains 12 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 | UpdateISODISTORT.displayModes | def displayModes():def OnDispl(event):'''Respond to movement of distortion mode slider'''Obj = event.GetEventObject()idsp,dispVal = Indx[Obj.GetId()]modeDisp[idsp] = Obj.GetValue()/1000.dispVal.SetValue(modeDisp[idsp])err = G2mth.ApplyModeDisp(data)if err:G2G.G2MessageBox(G2frame,'Do Draw atoms first')G2phsG.FindBondsD... | 2 | 18 | 0 | 129 | 0 | 729 | 803 | 729 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateISODISTORT.displayModes) defined within the public class called public.The function start at line 729 and ends at 803. It contains 18 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 | UpdateISODISTORT | def UpdateISODISTORT(G2frame,data,Scroll=0):''' Setup ISODISTORT and present the results. Allow selection of a distortion model for PDFfit orGSAS-II structure refinement as a cif file produced by ISODISTORT. Allows manipulation of distortionmode displacements selection their refinement for this new phase.'''def display... | 1 | 5 | 3 | 20 | 0 | 563 | 803 | 563 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateISODISTORT) defined within the public class called public.The function start at line 563 and ends at 803. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [563.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateLayerData.OnLaue | def OnLaue(event):Obj = event.GetEventObject()data['Layers']['Laue'] = Obj.GetValue()wx.CallAfter(UpdateLayerData,G2frame,data) | 1 | 4 | 1 | 35 | 0 | 933 | 936 | 933 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateLayerData.OnLaue) defined within the public class called public.The function start at line 933 and ends at 936. 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 | UpdateLayerData.OnSadpPlot | def OnSadpPlot(event):sadpPlot.SetValue(False)labels = Layers['Sadp']['Plane']lmax = float(Layers['Sadp']['Lmax'])XY = 2*lmax*np.mgrid[0:256:256j,0:256:256j]/256.-lmaxG2frame.Cmax = 1.0G2plt.PlotXYZ(G2frame,XY,Layers['Sadp']['Img'].T,labelX=labels[:-1],labelY=labels[-1],newPlot=False,Title=Layers['Sadp']['Plane']) | 1 | 8 | 1 | 115 | 0 | 938 | 945 | 938 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateLayerData.OnSadpPlot) defined within the public class called public.The function start at line 938 and ends at 945. 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 | UpdateLayerData.OnSeqPlot | def OnSeqPlot(event):seqPlot.SetValue(False)resultXY,resultXY2,seqNames = Layers['seqResults']pName = Layers['seqCodes'][0]G2plt.PlotXY(G2frame,resultXY,XY2=resultXY2,labelX=r'$\mathsf{2\theta}$',labelY='Intensity',newPlot=True,Title='Sequential simulations on '+pName,lines=True,names=seqNames) | 1 | 7 | 1 | 69 | 0 | 947 | 953 | 947 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateLayerData.OnSeqPlot) defined within the public class called public.The function start at line 947 and ends at 953. 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 | UpdateLayerData.UpdateLayerData.CellSizer.OnCellRef | def OnCellRef(event):data['Layers']['Cell'][0] = cellRef.GetValue() | 1 | 2 | 1 | 21 | 0 | 963 | 964 | 963 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateLayerData.UpdateLayerData.CellSizer.OnCellRef) defined within the public class called public.The function start at line 963 and ends at 964. 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 | UpdateLayerData.UpdateLayerData.CellSizer.OnCellChange | def OnCellChange(event):event.Skip()laue = data['Layers']['Laue']cell = data['Layers']['Cell']Obj = event.GetEventObject()ObjId = cellList.index(Obj.GetId())try:value = max(1.0,float(Obj.GetValue()))except ValueError:if ObjId < 3: #bad cell edge - resetvalue = cell[ObjId+1]else: #bad anglevalue = 90.if laue in ['-3','-... | 9 | 38 | 1 | 341 | 0 | 966 | 1,003 | 966 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateLayerData.UpdateLayerData.CellSizer.OnCellChange) defined within the public class called public.The function start at line 966 and ends at 1003. It contains 38 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 | UpdateLayerData.CellSizer | def CellSizer():cellGUIlist = [[['-3','-3m','6/m','6/mmm','4/m','4/mmm'],6,zip([" a = "," c = "],["%.5f","%.5f",],[True,True],[0,2])],[['mmm'],8,zip([" a = "," b = "," c = "],["%.5f","%.5f","%.5f"],[True,True,True],[0,1,2,])],[['2/m(ab)','2/m(c)','-1','axial','unknown'],10,zip([" a = "," b = "," c = "," gamma = "],["%.... | 4 | 30 | 0 | 394 | 0 | 955 | 1,027 | 955 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateLayerData.CellSizer) defined within the public class called public.The function start at line 955 and ends at 1027. It contains 30 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 | UpdateLayerData.UpdateLayerData.WidthSizer.OnRefWidth | def OnRefWidth(event):Id = Indx[event.GetEventObject()]Layers['Width'][1][Id] = not Layers['Width'][1][Id] | 1 | 3 | 1 | 37 | 0 | 1,031 | 1,033 | 1,031 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateLayerData.UpdateLayerData.WidthSizer.OnRefWidth) defined within the public class called public.The function start at line 1031 and ends at 1033. 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 | UpdateLayerData.WidthSizer | def WidthSizer():def OnRefWidth(event):Id = Indx[event.GetEventObject()]Layers['Width'][1][Id] = not Layers['Width'][1][Id]Labels = ['a','b']flags = Layers['Width'][1]widthSizer = wx.BoxSizer(wx.HORIZONTAL)for i in range(2):widthSizer.Add(wx.StaticText(layerData,label=u' layer width(%s) (<= 1\xb5m): '%(Labels[i])),0,WA... | 2 | 15 | 0 | 164 | 0 | 1,029 | 1,047 | 1,029 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateLayerData.WidthSizer) defined within the public class called public.The function start at line 1029 and ends at 1047. It contains 15 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 | UpdateLayerData.OnNewLayer | def OnNewLayer(event):data['Layers']['Layers'].append({'Name':'Unk','SameAs':'','Symm':'None','Atoms':[]})Trans = data['Layers']['Transitions']if len(Trans):Trans.append([[0.,0.,0.,0.,'',False] for trans in Trans])for trans in Trans:trans.append([0.,0.,0.,0.,'',False])else:Trans = [[[1.,0.,0.,0.,'',False],],]data['Laye... | 4 | 11 | 1 | 152 | 0 | 1,049 | 1,059 | 1,049 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateLayerData.OnNewLayer) defined within the public class called public.The function start at line 1049 and ends at 1059. 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 | UpdateLayerData.OnDeleteLast | def OnDeleteLast(event):del(data['Layers']['Layers'][-1])del(data['Layers']['Transitions'][-1])for trans in data['Layers']['Transitions']:del trans[-1]wx.CallAfter(UpdateLayerData,G2frame,data) | 2 | 6 | 1 | 60 | 0 | 1,061 | 1,066 | 1,061 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateLayerData.OnDeleteLast) defined within the public class called public.The function start at line 1061 and ends at 1066. It contains 6 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateLayerData.OnImportLayer | def OnImportLayer(event):dlg = wx.FileDialog(G2frame, 'Choose GSAS-II project file', G2G.GetImportPath(G2frame),wildcard='GSAS-II project file (*.gpx)|*.gpx',style=wx.FD_OPEN| wx.FD_CHANGE_DIR)try:if dlg.ShowModal() == wx.ID_OK:GPXFile = dlg.GetPath()phaseNames = G2stIO.GetPhaseNames(GPXFile)else:returnfinally:dlg.Dest... | 10 | 40 | 1 | 409 | 0 | 1,068 | 1,108 | 1,068 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateLayerData.OnImportLayer) defined within the public class called public.The function start at line 1068 and ends at 1108. It contains 40 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 | UpdateLayerData.UpdateLayerData.LayerSizer.OnAddAtom | def OnAddAtom(event):Layer['Atoms'].append(['Unk','Unk',0.,0.,0.,1.,0.01])wx.CallAfter(UpdateLayerData,G2frame,data) | 1 | 3 | 1 | 44 | 0 | 1,117 | 1,119 | 1,117 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateLayerData.UpdateLayerData.LayerSizer.OnAddAtom) defined within the public class called public.The function start at line 1117 and ends at 1119. 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 | UpdateLayerData.UpdateLayerData.LayerSizer.OnSymm | def OnSymm(event):Layer['Symm'] = symm.GetValue() | 1 | 2 | 1 | 15 | 0 | 1,121 | 1,122 | 1,121 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateLayerData.UpdateLayerData.LayerSizer.OnSymm) defined within the public class called public.The function start at line 1121 and ends at 1122. 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 | UpdateLayerData.UpdateLayerData.LayerSizer.AtomTypeSelect | def AtomTypeSelect(event):r,c =event.GetRow(),event.GetCol()if atomGrid.GetColLabelValue(c) == 'Type':PE = G2elemGUI.PickElement(G2frame)if PE.ShowModal() == wx.ID_OK:if PE.Elem != 'None':atType = PE.Elem.strip()Layer['Atoms'][r][c] = atTypename = Layer['Atoms'][r][c]if len(name) in [2,4]:Layer['Atoms'][r][c-1] = name[... | 6 | 19 | 1 | 206 | 0 | 1,124 | 1,142 | 1,124 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateLayerData.UpdateLayerData.LayerSizer.AtomTypeSelect) defined within the public class called public.The function start at line 1124 and ends at 1142. It contains 19 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 | UpdateLayerData.UpdateLayerData.LayerSizer.OnDrawLayer | def OnDrawLayer(event):drawLayer.SetValue(False)G2plt.PlotLayers(G2frame,Layers,[il,],plotDefaults,firstCall=True) | 1 | 3 | 1 | 30 | 0 | 1,144 | 1,146 | 1,144 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateLayerData.UpdateLayerData.LayerSizer.OnDrawLayer) defined within the public class called public.The function start at line 1144 and ends at 1146. 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 | UpdateLayerData.UpdateLayerData.LayerSizer.OnSameAs | def OnSameAs(event):Layer['SameAs'] = sameas.GetValue()wx.CallLater(100,UpdateLayerData,G2frame,data) | 1 | 3 | 1 | 27 | 0 | 1,148 | 1,150 | 1,148 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateLayerData.UpdateLayerData.LayerSizer.OnSameAs) defined within the public class called public.The function start at line 1148 and ends at 1150. 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 | UpdateLayerData.LayerSizer | def LayerSizer(il,Layer):# def OnNameChange(event):# event.Skip()# Layer['Name'] = layerName.GetValue()# wx.CallLater(100,UpdateLayerData,G2frame,data)def OnAddAtom(event):Layer['Atoms'].append(['Unk','Unk',0.,0.,0.,1.,0.01])wx.CallAfter(UpdateLayerData,G2frame,data)def OnSymm(event):Layer['Symm'] = symm.GetValue()def ... | 8 | 55 | 2 | 512 | 0 | 1,110 | 1,206 | 1,110 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateLayerData.LayerSizer) defined within the public class called public.The function start at line 1110 and ends at 1206. It contains 55 lines of code and it has a cyclomatic complexity of 8. It takes 2 parameters, represented as [1110.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateLayerData.UpdateLayerData.TransSizer.PlotSelect | def PlotSelect(event):Obj = event.GetEventObject()Yi = Indx[Obj.GetId()]Xi,c =event.GetRow(),event.GetCol()if Xi >= 0 and c == 5: #plot columnG2plt.PlotLayers(G2frame,Layers,[Yi,Xi,],plotDefaults,firstCall=True)else:Psum = 0.for Xi in range(len(transArray)):Psum += transArray[Xi][Xi][0]Psum /= len(transArray)totalFault... | 4 | 13 | 1 | 121 | 0 | 1,210 | 1,222 | 1,210 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateLayerData.UpdateLayerData.TransSizer.PlotSelect) defined within the public class called public.The function start at line 1210 and ends at 1222. 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 | UpdateLayerData.UpdateLayerData.TransSizer.OnNormProb | def OnNormProb(event):for Yi,Yname in enumerate(Names):Psum = 0.for Xi,Xname in enumerate(Names):Psum += transArray[Yi][Xi][0]if not Psum:transArray[Yi][0][0] = 1.0Psum = 1.0for Xi,Xname in enumerate(Names):transArray[Yi][Xi][0] /= Psumwx.CallAfter(UpdateLayerData,G2frame,data) | 5 | 11 | 1 | 97 | 0 | 1,224 | 1,234 | 1,224 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateLayerData.UpdateLayerData.TransSizer.OnNormProb) defined within the public class called public.The function start at line 1224 and ends at 1234. It contains 11 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 | UpdateLayerData.UpdateLayerData.TransSizer.OnSymProb | def OnSymProb(event):if symprob.GetValue():Nx = len(Names)-1Layers['SymTrans'] = Truefor Yi,Yname in enumerate(Names):for Xi,Xname in enumerate(Names):if transArray[Nx-Yi][Nx-Xi][0] != transArray[Yi][Xi][0]:Layers['SymTrans'] = Falsesymprob.SetValue(False)wx.MessageBox('%s-%s not equal %s-%s'%(Yname,Xname,Xname,Yname),... | 5 | 14 | 1 | 120 | 0 | 1,236 | 1,249 | 1,236 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateLayerData.UpdateLayerData.TransSizer.OnSymProb) defined within the public class called public.The function start at line 1236 and ends at 1249. It contains 14 lines of code and it has a cyclomatic complexity of 5. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateLayerData.TransSizer | def TransSizer():def PlotSelect(event):Obj = event.GetEventObject()Yi = Indx[Obj.GetId()]Xi,c =event.GetRow(),event.GetCol()if Xi >= 0 and c == 5: #plot columnG2plt.PlotLayers(G2frame,Layers,[Yi,Xi,],plotDefaults,firstCall=True)else:Psum = 0.for Xi in range(len(transArray)):Psum += transArray[Xi][Xi][0]Psum /= len(tran... | 10 | 51 | 0 | 466 | 0 | 1,208 | 1,298 | 1,208 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateLayerData.TransSizer) defined within the public class called public.The function start at line 1208 and ends at 1298. It contains 51 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 | UpdateLayerData.UpdateLayerData.PlotSizer.OnPlotSeq | def OnPlotSeq(event):event.Skip()vals = plotSeq.GetValue().split()try:vals = [int(val)-1 for val in vals]if not all([0 <= val < len(Names) for val in vals]):raise ValueErrorexcept ValueError:plotSeq.SetValue('Error in string '+plotSeq.GetValue())returnG2plt.PlotLayers(G2frame,Layers,vals,plotDefaults,firstCall=True) | 5 | 11 | 1 | 91 | 0 | 1,302 | 1,312 | 1,302 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateLayerData.UpdateLayerData.PlotSizer.OnPlotSeq) defined within the public class called public.The function start at line 1302 and ends at 1312. It contains 11 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 | UpdateLayerData.PlotSizer | def PlotSizer():def OnPlotSeq(event):event.Skip()vals = plotSeq.GetValue().split()try:vals = [int(val)-1 for val in vals]if not all([0 <= val < len(Names) for val in vals]):raise ValueErrorexcept ValueError:plotSeq.SetValue('Error in string '+plotSeq.GetValue())returnG2plt.PlotLayers(G2frame,Layers,vals,plotDefaults,fi... | 3 | 16 | 0 | 164 | 0 | 1,300 | 1,328 | 1,300 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateLayerData.PlotSizer) defined within the public class called public.The function start at line 1300 and ends at 1328. It contains 16 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 | UpdateLayerData.UpdateLayerData.StackSizer.OnStackType | def OnStackType(event):newType = stackType.GetValue()if newType == data['Layers']['Stacking'][0]:returndata['Layers']['Stacking'][0] = newTypeif newType == 'recursive':data['Layers']['Stacking'][1] = 'infinite'else:#explicitdata['Layers']['Stacking'][1] = 'random'data['Layers']['Stacking'][2] = '250'wx.CallAfter(Update... | 3 | 11 | 1 | 92 | 0 | 1,335 | 1,345 | 1,335 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateLayerData.UpdateLayerData.StackSizer.OnStackType) defined within the public class called public.The function start at line 1335 and ends at 1345. It contains 11 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateLayerData.UpdateLayerData.StackSizer.OnSeqType | def OnSeqType(event):newType = seqType.GetValue()if newType == data['Layers']['Stacking'][1]:returndata['Layers']['Stacking'][1] = newTypeif newType == 'random':data['Layers']['Stacking'][2] = '250'else: #Listdata['Layers']['Stacking'][2] = ''wx.CallAfter(UpdateLayerData,G2frame,data) | 3 | 10 | 1 | 80 | 0 | 1,347 | 1,356 | 1,347 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateLayerData.UpdateLayerData.StackSizer.OnSeqType) defined within the public class called public.The function start at line 1347 and ends at 1356. It contains 10 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 | UpdateLayerData.UpdateLayerData.StackSizer.OnNumLayers | def OnNumLayers(event):event.Skip()val = numLayers.GetValue()if val == 'infinite':data['Layers']['Stacking'][1] = valelse:try:if 0 < int(val) < 1023:data['Layers']['Stacking'][1] = valelse:data['Layers']['Stacking'][1] = 'infinite'except ValueError:passnumLayers.SetValue(data['Layers']['Stacking'][1]) | 4 | 14 | 1 | 93 | 0 | 1,358 | 1,371 | 1,358 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateLayerData.UpdateLayerData.StackSizer.OnNumLayers) defined within the public class called public.The function start at line 1358 and ends at 1371. 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 | UpdateLayerData.UpdateLayerData.StackSizer.OnNumRan | def OnNumRan(event):event.Skip()val = numRan.GetValue()try:if 0 > int(val) > 1022:raise ValueErrorelse:data['Layers']['Stacking'][2] = valexcept ValueError:val = data['Layers']['Stacking'][2]numRan.SetValue(val) | 3 | 11 | 1 | 66 | 0 | 1,373 | 1,383 | 1,373 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateLayerData.UpdateLayerData.StackSizer.OnNumRan) defined within the public class called public.The function start at line 1373 and ends at 1383. It contains 11 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateLayerData.UpdateLayerData.StackSizer.OnStackList | def OnStackList(event):event.Skip()stack = stackList.GetValue()stack = stack.replace('\n',' ').strip().strip('\n')nstar = stack.count('*')if nstar:try:newstack = ''Istar = 0for star in range(nstar):Istar = stack.index('*',Istar+1)iB = stack[:Istar].rfind(' ')if iB == -1:mult = int(stack[:Istar])else:mult = int(stack[iB... | 8 | 30 | 1 | 228 | 0 | 1,385 | 1,414 | 1,385 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateLayerData.UpdateLayerData.StackSizer.OnStackList) defined within the public class called public.The function start at line 1385 and ends at 1414. It contains 30 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 | UpdateLayerData.StackSizer | def StackSizer():stackChoice = ['recursive','explicit',]seqChoice = ['random','list',]def OnStackType(event):newType = stackType.GetValue()if newType == data['Layers']['Stacking'][0]:returndata['Layers']['Stacking'][0] = newTypeif newType == 'recursive':data['Layers']['Stacking'][1] = 'infinite'else:#explicitdata['Laye... | 7 | 53 | 0 | 611 | 0 | 1,330 | 1,462 | 1,330 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateLayerData.StackSizer) defined within the public class called public.The function start at line 1330 and ends at 1462. It contains 53 lines of code and it has a cyclomatic complexity of 7. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateLayerData | def UpdateLayerData(G2frame,data,Scroll=0):'''Present the contents of the Phase/Layers tab for stacking fault simulation'''laueChoice = ['-1','2/m(ab)','2/m(c)','mmm','-3','-3m','4/m','4/mmm','6/m','6/mmm','unknown']colLabels = ['Name','Type','x','y','z','frac','Uiso']transLabels = ['Prob','Dx','Dy','Dz','refine','plot... | 9 | 89 | 3 | 885 | 109 | 917 | 1,528 | 917 | null | ['useGUI', 'transGrid', 'OKlist', 'bottomSizer', 'transTypes', 'cellRef', 'Layer', 'Layers', 'addAtom', 'cellVal', 'pattern', 'Labels', 'u', 'Nx', 'seqChoice', 'numRan', 'labels', 'pName', 'Yi', 'value', 'toler', 'Psum', 'mult', 'totalFault', 'drawLayer', 'transTable', 'layerName', 'colLabels', 'Obj', 'deleteLast', 'la... | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateLayerData) defined within the public class called public.The function start at line 917 and ends at 1528. It contains 89 lines of code and it has a cyclomatic complexity of 9. It takes 3 parameters, represented as [917.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateTexture.SetSHCoef | def SetSHCoef():cofNames = G2lat.GenSHCoeff(SGData['SGLaue'],SamSym[textureData['Model']],textureData['Order'])newSHCoef = dict(zip(cofNames,np.zeros(len(cofNames))))SHCoeff = textureData['SH Coeff'][1]for cofName in SHCoeff:if cofName incofNames:newSHCoef[cofName] = SHCoeff[cofName]return newSHCoef | 3 | 8 | 0 | 77 | 0 | 1,532 | 1,539 | 1,532 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateTexture.SetSHCoef) defined within the public class called public.The function start at line 1532 and ends at 1539. 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 | UpdateTexture.OnShOrder | def OnShOrder(event):Obj = event.GetEventObject()# the Kaduk test: is Texture appropriate? Look for a 2nd histogram# of any type with differing setting angles from the 1st.instArray = {}if int(Obj.GetValue()) > 0:for h in data['Histograms']:PatternId = G2gd.GetGPXtreeItemId(G2frame,G2frame.root,h)if not PatternId: #ski... | 7 | 28 | 1 | 264 | 0 | 1,541 | 1,571 | 1,541 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateTexture.OnShOrder) defined within the public class called public.The function start at line 1541 and ends at 1571. It contains 28 lines of code and it has a cyclomatic complexity of 7. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateTexture.OnShModel | def OnShModel(event):Obj = event.GetEventObject()textureData['Model'] = Obj.GetValue()textureData['SH Coeff'][1] = SetSHCoef()G2frame.GPXtree.UpdateSelection()#wx.CallLater(100,UpdateTexture)wx.CallAfter(G2plt.PlotTexture,G2frame,data) | 1 | 6 | 1 | 52 | 0 | 1,573 | 1,579 | 1,573 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateTexture.OnShModel) defined within the public class called public.The function start at line 1573 and ends at 1579. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateTexture.OnSHRefine | def OnSHRefine(event):Obj = event.GetEventObject()textureData['SH Coeff'][0] = Obj.GetValue() | 1 | 3 | 1 | 25 | 0 | 1,581 | 1,583 | 1,581 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateTexture.OnSHRefine) defined within the public class called public.The function start at line 1581 and ends at 1583. 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 | UpdateTexture.OnSHShow | def OnSHShow(event):Obj = event.GetEventObject()textureData['SHShow'] = Obj.GetValue()G2frame.GPXtree.UpdateSelection() | 1 | 4 | 1 | 29 | 0 | 1,585 | 1,588 | 1,585 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateTexture.OnSHShow) defined within the public class called public.The function start at line 1585 and ends at 1588. 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 | UpdateTexture.OnProjSel | def OnProjSel(event):Obj = event.GetEventObject()G2frame.Projection = Obj.GetValue()wx.CallAfter(G2plt.PlotTexture,G2frame,data) | 1 | 4 | 1 | 33 | 0 | 1,591 | 1,594 | 1,591 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateTexture.OnProjSel) defined within the public class called public.The function start at line 1591 and ends at 1594. 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 | UpdateTexture.OnShoDet | def OnShoDet(event):Obj = event.GetEventObject()textureData['ShoDet'] = Obj.GetValue()wx.CallAfter(G2plt.PlotTexture,G2frame,data) | 1 | 4 | 1 | 34 | 0 | 1,596 | 1,599 | 1,596 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateTexture.OnShoDet) defined within the public class called public.The function start at line 1596 and ends at 1599. 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 | UpdateTexture.OnColorSel | def OnColorSel(event):Obj = event.GetEventObject()G2frame.ContourColor = Obj.GetValue()wx.CallAfter(G2plt.PlotTexture,G2frame,data) | 1 | 4 | 1 | 33 | 0 | 1,601 | 1,604 | 1,601 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateTexture.OnColorSel) defined within the public class called public.The function start at line 1601 and ends at 1604. 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 | UpdateTexture.OnAngRef | def OnAngRef(event):Obj = event.GetEventObject()textureData[angIndx[Obj.GetId()]][0] = Obj.GetValue() | 1 | 3 | 1 | 32 | 0 | 1,606 | 1,608 | 1,606 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateTexture.OnAngRef) defined within the public class called public.The function start at line 1606 and ends at 1608. 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 | UpdateTexture.OnODFValue | def OnODFValue(invalid,value,tc):wx.CallAfter(G2plt.PlotTexture,G2frame,data) | 1 | 2 | 3 | 21 | 0 | 1,610 | 1,611 | 1,610 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateTexture.OnODFValue) defined within the public class called public.The function start at line 1610 and ends at 1611. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [1610.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateTexture.OnPfType | def OnPfType(event):Obj = event.GetEventObject()textureData['PlotType'] = Obj.GetValue()G2frame.GPXtree.UpdateSelection()#wx.CallLater(100,UpdateTexture)wx.CallAfter(G2plt.PlotTexture,G2frame,data) | 1 | 5 | 1 | 41 | 0 | 1,613 | 1,618 | 1,613 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateTexture.OnPfType) defined within the public class called public.The function start at line 1613 and ends at 1618. 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 | UpdateTexture.OnPFValue | def OnPFValue(event):event.Skip()Obj = event.GetEventObject()Saxis = Obj.GetValue().split()if textureData['PlotType'] in ['Pole figure','Axial pole distribution','3D pole distribution']:try:hkl = [int(Saxis[i]) for i in range(3)]except (ValueError,IndexError):hkl = textureData['PFhkl']if not np.any(np.array(hkl)): #can... | 8 | 23 | 1 | 220 | 0 | 1,620 | 1,642 | 1,620 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateTexture.OnPFValue) defined within the public class called public.The function start at line 1620 and ends at 1642. It contains 23 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 | UpdateTexture.OnpopLA | def OnpopLA(event):pfName = PhaseNamecell = generalData['Cell'][1:7]PH = np.array(textureData['PFhkl'])phi,beta = G2lat.CrsAng(PH,cell,SGData)SHCoef = textureData['SH Coeff'][1]ODFln = G2lat.Flnh(SHCoef,phi,beta,SGData)pfName = PhaseName+'%d%d%d.gpf'%(PH[0],PH[1],PH[2])pth = G2G.GetExportPath(G2frame)dlg = wx.FileDialo... | 5 | 35 | 1 | 370 | 0 | 1,644 | 1,678 | 1,644 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateTexture.OnpopLA) defined within the public class called public.The function start at line 1644 and ends at 1678. It contains 35 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 | UpdateTexture.OnCSV | def OnCSV(event):pfName = PhaseNamepfFile = ''cell = generalData['Cell'][1:7]if 'Inverse' in textureData['PlotType']:SHCoef = textureData['SH Coeff'][1]PX = np.array(textureData['PFxyz'])gam = atan2d(PX[0],PX[1])xy = np.sqrt(PX[0]**2+PX[1]**2)xyz = np.sqrt(PX[0]**2+PX[1]**2+PX[2]**2)psi = asind(xy/xyz)IODFln = G2lat.Gl... | 8 | 66 | 1 | 811 | 0 | 1,680 | 1,745 | 1,680 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateTexture.OnCSV) defined within the public class called public.The function start at line 1680 and ends at 1745. It contains 66 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 | UpdateTexture.UpdateTexture.SHPenalty.OnHKLList | def OnHKLList(event):event.Skip()dlg = G2G.G2MultiChoiceDialog(G2frame, 'Select penalty hkls','Penalty hkls',hkls,filterBox=False)try:if dlg.ShowModal() == wx.ID_OK:Penalty[0] = [hkls[i] for i in dlg.GetSelections()]if not Penalty[0]:Penalty[0] = ['',]else:returnfinally:dlg.Destroy()G2frame.GPXtree.UpdateSelection() | 5 | 14 | 1 | 93 | 0 | 1,749 | 1,762 | 1,749 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateTexture.UpdateTexture.SHPenalty.OnHKLList) defined within the public class called public.The function start at line 1749 and ends at 1762. It contains 14 lines of code and it has a cyclomatic complexity of 5. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateTexture.SHPenalty | def SHPenalty(Penalty):def OnHKLList(event):event.Skip()dlg = G2G.G2MultiChoiceDialog(G2frame, 'Select penalty hkls','Penalty hkls',hkls,filterBox=False)try:if dlg.ShowModal() == wx.ID_OK:Penalty[0] = [hkls[i] for i in dlg.GetSelections()]if not Penalty[0]:Penalty[0] = ['',]else:returnfinally:dlg.Destroy()G2frame.GPXtr... | 1 | 15 | 1 | 199 | 0 | 1,747 | 1,777 | 1,747 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateTexture.SHPenalty) defined within the public class called public.The function start at line 1747 and ends at 1777. 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 | UpdateTexture.OnProj | def OnProj(event):Obj = event.GetEventObject()generalData['3Dproj'] = Obj.GetValue()wx.CallAfter(G2plt.PlotTexture,G2frame,data) | 1 | 4 | 1 | 34 | 0 | 1,779 | 1,782 | 1,779 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateTexture.OnProj) defined within the public class called public.The function start at line 1779 and ends at 1782. 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 | UpdateTexture | def UpdateTexture(G2frame,data):def SetSHCoef():cofNames = G2lat.GenSHCoeff(SGData['SGLaue'],SamSym[textureData['Model']],textureData['Order'])newSHCoef = dict(zip(cofNames,np.zeros(len(cofNames))))SHCoeff = textureData['SH Coeff'][1]for cofName in SHCoeff:if cofName incofNames:newSHCoef[cofName] = SHCoeff[cofName]retu... | 36 | 196 | 2 | 2,273 | 82 | 1,530 | 1,972 | 1,530 | null | ['shOrder', 'pId', 'ODFln', 'newSHCoef', 'gam', 'SamSym', 'hkl', 'SHCoef', 'instArray', 'Inst', 'pfFile', 'SGData', 'IODFln', 'shToler', 'projSel', 'PTSizer', 'PX', 'shoDet', 'angVal', 'shShow', 'ODFSizer', 'angRef', 'keyList', 'Obj', 'Gam', 'parent', 'pfVal', 'dlg', 'xy', 'Tth', 'shModels', 'setting', 'PhaseName', 'ps... | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateTexture) defined within the public class called public.The function start at line 1530 and ends at 1972. It contains 196 lines of code and it has a cyclomatic complexity of 36. It takes 2 parameters, represented as [1530.0] and does not return any value.. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.