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 | UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.MCSASizer.OnAlist | def OnAlist(event):MCSAdata['Algorithm'] = Alist.GetValue()OnShowTsched()wx.CallAfter(UpdateGeneral,General.GetScrollPos(wx.VERTICAL)) | 1 | 4 | 1 | 33 | 0 | 2,556 | 2,559 | 2,556 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.MCSASizer.OnAlist) defined within the public class called public.The function start at line 2556 and ends at 2559. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any... |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.MCSASizer.OnRanStart | def OnRanStart(event):MCSAdata['ranStart'] = ranStart.GetValue() | 1 | 2 | 1 | 15 | 0 | 2,561 | 2,562 | 2,561 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.MCSASizer.OnRanStart) defined within the public class called public.The function start at line 2561 and ends at 2562. 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.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.MCSASizer.OnAnneal | def OnAnneal(event):event.Skip()Obj = event.GetEventObject()ind,fmt = Indx[Obj.GetId()]if ind == 2:#No. trialstry:val = int(Obj.GetValue())if 1 <= val:MCSAdata['Annealing'][ind] = valexcept ValueError:Obj.SetValue(fmt%(MCSAdata['Annealing'][ind]))else:try:val = float(Obj.GetValue())if .0 <= val:MCSAdata['Annealing'][in... | 6 | 20 | 1 | 151 | 0 | 2,567 | 2,586 | 2,567 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.MCSASizer.OnAnneal) defined within the public class called public.The function start at line 2567 and ends at 2586. It contains 20 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.MCSASizer.ShowTsched | def ShowTsched(invalid,value,tc):OnShowTsched() | 1 | 2 | 3 | 12 | 0 | 2,588 | 2,589 | 2,588 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.MCSASizer.ShowTsched) defined within the public class called public.The function start at line 2588 and ends at 2589. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, repr... |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.MCSASizer.OnShowTsched | def OnShowTsched():if MCSAdata['Algorithm'] in ['fast','log']:Y = G2mth.makeTsched(MCSAdata)XY = [np.arange(len(Y)),np.log10(Y)]G2plt.PlotXY(G2frame,[XY,],labelX='T-step',labelY='log(T)',newPlot=True,lines=True,Title='Annealing schedule') | 2 | 5 | 0 | 75 | 0 | 2,591 | 2,595 | 2,591 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.MCSASizer.OnShowTsched) defined within the public class called public.The function start at line 2591 and ends at 2595. It contains 5 lines of code and it has a cyclomatic complexity of 2. The function does not tak... |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePhaseData.UpdatePhaseData.UpdateGeneral.MCSASizer | def MCSASizer():def OnRefList(event):MCSAdata['Data source'] = refList.GetValue()def OnCycles(event):MCSAdata['Cycles'] = int(cycles.GetValue())def OnAlist(event):MCSAdata['Algorithm'] = Alist.GetValue()OnShowTsched()wx.CallAfter(UpdateGeneral,General.GetScrollPos(wx.VERTICAL))def OnRanStart(event):MCSAdata['ranStart']... | 10 | 78 | 0 | 1,019 | 0 | 2,548 | 2,667 | 2,548 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.UpdatePhaseData.UpdateGeneral.MCSASizer) defined within the public class called public.The function start at line 2548 and ends at 2667. It contains 78 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 | UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.compareSizer.OnOatmOsel | def OnOatmOsel(event):generalData['Compare']['Oatoms'] = oatmsel.GetStringSelection() | 1 | 2 | 1 | 18 | 0 | 2,671 | 2,672 | 2,671 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.compareSizer.OnOatmOsel) defined within the public class called public.The function start at line 2671 and ends at 2672. 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.compareSizer.OnTatmOsel | def OnTatmOsel(event):generalData['Compare']['Tatoms'] = tatmsel.GetStringSelection() | 1 | 2 | 1 | 18 | 0 | 2,674 | 2,675 | 2,674 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.compareSizer.OnTatmOsel) defined within the public class called public.The function start at line 2674 and ends at 2675. 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.compareSizer.OnCompPlots | def OnCompPlots(event):pName = generalData['Name']Oatoms = generalData['Compare']['Oatoms']Tatoms = generalData['Compare']['Tatoms']bName = '%s-%s'%(Oatoms,Tatoms)try:Bonds = generalData['Compare']['Bonds'][bName]except KeyError:print('need to do Compare first for %s polyhedra plots'%bName)returnTilts = generalData['Co... | 6 | 65 | 1 | 828 | 0 | 2,677 | 2,742 | 2,677 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.compareSizer.OnCompPlots) defined within the public class called public.The function start at line 2677 and ends at 2742. It contains 65 lines of code and it has a cyclomatic complexity of 6. The function does not ... |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.compareSizer.OnSaveDist | def OnSaveDist(event):pName = generalData['Name']fName = os.path.abspath(os.path.splitext(G2frame.GSASprojectfile)[0]+'_TOdist.csv')fp = open(fName,'w')fp.write('Phase name:%s,'%pName)Oatoms = generalData['Compare']['Oatoms']Tatoms = generalData['Compare']['Tatoms']bName = '%s-%s'%(Oatoms,Tatoms)Bonds = generalData['Co... | 7 | 21 | 1 | 217 | 0 | 2,744 | 2,767 | 2,744 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.UpdatePhaseData.UpdateGeneral.UpdatePhaseData.UpdatePhaseData.UpdateGeneral.compareSizer.OnSaveDist) defined within the public class called public.The function start at line 2744 and ends at 2767. It contains 21 lines of code and it has a cyclomatic complexity of 7. The function does not t... |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePhaseData.UpdatePhaseData.UpdateGeneral.compareSizer | def compareSizer():def OnOatmOsel(event):generalData['Compare']['Oatoms'] = oatmsel.GetStringSelection()def OnTatmOsel(event):generalData['Compare']['Tatoms'] = tatmsel.GetStringSelection()def OnCompPlots(event):pName = generalData['Name']Oatoms = generalData['Compare']['Oatoms']Tatoms = generalData['Compare']['Tatoms'... | 4 | 38 | 0 | 423 | 0 | 2,669 | 2,805 | 2,669 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.UpdatePhaseData.UpdateGeneral.compareSizer) defined within the public class called public.The function start at line 2669 and ends at 2805. It contains 38 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 | UpdatePhaseData.UpdateGeneral | def UpdateGeneral(Scroll=0,SkipDraw=False):'''Draw the controls for the General phase data subpage'''""" This is the default dictionary structure for phase data(taken from GSASII.py)'General':{'Name':PhaseName'Type':'nuclear''SGData':SGData'Cell':[False,10.,10.,10.,90.,90.,90,1000.]'AtomPtrs':[]'Pawley dmin':1.0,'Pawle... | 18 | 93 | 2 | 841 | 0 | 1,612 | 2,897 | 1,612 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.UpdateGeneral) defined within the public class called public.The function start at line 1612 and ends at 2897. It contains 93 lines of code and it has a cyclomatic complexity of 18. It takes 2 parameters, represented as [1612.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePhaseData.OnTransform | def OnTransform(event):Trans = np.eye(3)Uvec = np.zeros(3)Vvec = np.zeros(3)ifMag = FalseBNSlatt = ''ifRB = FalseRBModels = data['RBModels']for item in RBModels:if RBModels[item]:ifRB = Trueif ifRB:msg = 'Rigid Bodies present'text = 'Rigid bodies must be deleted before transform can be done'wx.MessageBox(text,caption=m... | 26 | 107 | 1 | 957 | 0 | 2,899 | 3,008 | 2,899 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.OnTransform) defined within the public class called public.The function start at line 2899 and ends at 3008. It contains 107 lines of code and it has a cyclomatic complexity of 26. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePhaseData.UpdatePhaseData.OnISOSearch._showWebPage | def _showWebPage(event):'Show a web page when the user presses the "show" button'import tempfiletxt = event.GetEventObject().pagetmp = tempfile.NamedTemporaryFile(suffix='.html',delete=False)with open(tmp.name,'w') as fp:fp.write(txt.replace('<HEAD>','<head><base href="https://iso.byu.edu/">',))fileList.append(tmp.name... | 1 | 13 | 1 | 77 | 0 | 3,014 | 3,026 | 3,014 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.UpdatePhaseData.OnISOSearch._showWebPage) defined within the public class called public.The function start at line 3014 and ends at 3026. It contains 13 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePhaseData.UpdatePhaseData.OnISOSearch._GetPhase | def _GetPhase():'After search complete reload the project from the saved .gpx file'G2frame.OnFileOpen(None,filename=orgFilName,askSave=False)wx.CallLater(100,_ShowPhase) | 1 | 4 | 0 | 27 | 0 | 3,230 | 3,233 | 3,230 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.UpdatePhaseData.OnISOSearch._GetPhase) defined within the public class called public.The function start at line 3230 and ends at 3233. 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 | UpdatePhaseData.UpdatePhaseData.OnISOSearch._ShowPhase | def _ShowPhase():'After search complete and project is reloaded, reopen tree to the original phase'phId = G2gd.GetGPXtreeItemId(G2frame,G2frame.root,'Phases')G2frame.GPXtree.Expand(phId)phId = G2gd.GetGPXtreeItemId(G2frame,phId,ophsnam)G2frame.GPXtree.SelectItem(phId) | 1 | 6 | 0 | 47 | 0 | 3,234 | 3,239 | 3,234 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.UpdatePhaseData.OnISOSearch._ShowPhase) defined within the public class called public.The function start at line 3234 and ends at 3239. 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 | UpdatePhaseData.OnISOSearch | def OnISOSearch(event):'''Search for a higher symmetry structure consistent with thecurrent phase using the ISOCIF web service'''def _showWebPage(event):'Show a web page when the user presses the "show" button'import tempfiletxt = event.GetEventObject().pagetmp = tempfile.NamedTemporaryFile(suffix='.html',delete=False)... | 31 | 192 | 1 | 1,597 | 0 | 3,010 | 3,240 | 3,010 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.OnISOSearch) defined within the public class called public.The function start at line 3010 and ends at 3240. It contains 192 lines of code and it has a cyclomatic complexity of 31. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePhaseData.UpdatePhaseData.OnSuperSearch._showWebPage | def _showWebPage(event):'Show a web page when the user presses the "show" button'import tempfilenum = event.GetEventObject().IndexNumtmp = tempfile.NamedTemporaryFile(suffix='.html',delete=False)with open(tmp.name,'w') as fp:fp.write(pagelist[num].replace('<head>','<head><base href="https://www.cryst.ehu.es/">',))fileL... | 1 | 13 | 1 | 80 | 0 | 3,246 | 3,258 | 3,246 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.UpdatePhaseData.OnSuperSearch._showWebPage) defined within the public class called public.The function start at line 3246 and ends at 3258. It contains 13 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePhaseData.UpdatePhaseData.OnSuperSearch._selectSuperGroups | def _selectSuperGroups(rowdict,csdict,msg,depth=0,key=0):'''Present the user with a set of supergroups and allowselection of ones to be tested. Used initially with highersymmetry cells and again later to recheck structures thathave been cast into spacegroups.'''width = 450dlg = wx.Dialog(G2frame,wx.ID_ANY,'Supergroup C... | 4 | 68 | 5 | 692 | 0 | 3,259 | 3,334 | 3,259 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.UpdatePhaseData.OnSuperSearch._selectSuperGroups) defined within the public class called public.The function start at line 3259 and ends at 3334. It contains 68 lines of code and it has a cyclomatic complexity of 4. It takes 5 parameters, represented as [3259.0] and does not return any val... |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePhaseData.UpdatePhaseData.OnSuperSearch._selectHiSymCell | def _selectHiSymCell(rowdict,csdict):'''Present the user with a set of higher symmetry cells that areconsistent with the starting cell. Used with monoclinic and triclinicstarting cells only.'''width = 450dlg = wx.Dialog(G2frame,wx.ID_ANY,'Supercell Choices',style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER)mainSizer = wx.... | 2 | 59 | 2 | 670 | 0 | 3,335 | 3,400 | 3,335 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.UpdatePhaseData.OnSuperSearch._selectHiSymCell) defined within the public class called public.The function start at line 3335 and ends at 3400. It contains 59 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [3335.0] and does not return any value... |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePhaseData.UpdatePhaseData.OnSuperSearch._GetPhase | def _GetPhase():'After search complete reload the project from the saved .gpx file'G2frame.OnFileOpen(None,filename=orgFilName,askSave=False)wx.CallLater(100,_ShowPhase) | 1 | 4 | 0 | 27 | 0 | 3,401 | 3,404 | 3,401 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.UpdatePhaseData.OnSuperSearch._GetPhase) defined within the public class called public.The function start at line 3401 and ends at 3404. 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 | UpdatePhaseData.UpdatePhaseData.OnSuperSearch._ShowPhase | def _ShowPhase():'After search complete and project is reloaded, reopen tree to the original phase'phId = G2gd.GetGPXtreeItemId(G2frame,G2frame.root,'Phases')G2frame.GPXtree.Expand(phId)phId = G2gd.GetGPXtreeItemId(G2frame,phId,ophsnam)G2frame.GPXtree.SelectItem(phId) | 1 | 6 | 0 | 47 | 0 | 3,405 | 3,410 | 3,405 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.UpdatePhaseData.OnSuperSearch._ShowPhase) defined within the public class called public.The function start at line 3405 and ends at 3410. 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 | UpdatePhaseData.UpdatePhaseData.OnSuperSearch._testSuperGroups | def _testSuperGroups(ophsnam,rowdict,csdict,valsdict,savedcookies,pagelist):'Use the Bilbao site to test selected supergroups'print(f'*** Testing {sum(csdict.values())} transformed structures')pgbar = wx.ProgressDialog('Supergroup Search',f'Searching for supergroup(s) consistent with phase {ophsnam}',len(csdict)+2,pare... | 3 | 19 | 6 | 133 | 0 | 3,411 | 3,429 | 3,411 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.UpdatePhaseData.OnSuperSearch._testSuperGroups) defined within the public class called public.The function start at line 3411 and ends at 3429. It contains 19 lines of code and it has a cyclomatic complexity of 3. It takes 6 parameters, represented as [3411.0] and does not return any value... |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePhaseData.UpdatePhaseData.OnSuperSearch.UpdatePhaseData.UpdatePhaseData.OnSuperSearch.showSuperResults._showWebPage | def _showWebPage(event):import tempfilef = event.GetEventObject().webFiletmp = tempfile.NamedTemporaryFile(suffix='.html',delete=False)with open(tmp.name,'w') as fp:fp.write(f.replace('<head>','<head><base href="https://www.cryst.ehu.es/">',))fileList.append(tmp.name)G2G.ShowWebPage('file://'+tmp.name,G2frame) | 1 | 12 | 1 | 76 | 0 | 3,434 | 3,445 | 3,434 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.UpdatePhaseData.OnSuperSearch.UpdatePhaseData.UpdatePhaseData.OnSuperSearch.showSuperResults._showWebPage) defined within the public class called public.The function start at line 3434 and ends at 3445. It contains 12 lines of code and it has a cyclomatic complexity of 1. The function does... |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePhaseData.UpdatePhaseData.OnSuperSearch.showSuperResults | def showSuperResults(G2frame,msgs,pagelist,fileList,ReSearch,parentpage,msg=None):'''Show a summary with info from a search of supergroups in:func:`OnSuperSearch` (in :func:`UpdatePhaseData`)'''def _showWebPage(event):import tempfilef = event.GetEventObject().webFiletmp = tempfile.NamedTemporaryFile(suffix='.html',dele... | 16 | 89 | 7 | 842 | 0 | 3,430 | 3,536 | 3,430 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.UpdatePhaseData.OnSuperSearch.showSuperResults) defined within the public class called public.The function start at line 3430 and ends at 3536. It contains 89 lines of code and it has a cyclomatic complexity of 16. It takes 7 parameters, represented as [3430.0] and does not return any valu... |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePhaseData.UpdatePhaseData.OnSuperSearch._showSummary | def _showSummary(G2frame,msgs,gpxList):'''Summarize the final results from all steps'''width = 500dlg = wx.Dialog(G2frame,wx.ID_ANY,'Final Supergroup Search Results',style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER)mainSizer = wx.BoxSizer(wx.VERTICAL)dlg.SetSizer(mainSizer)mainSizer.Add(wx.StaticText(dlg,wx.ID_ANY,f'''Us... | 4 | 43 | 3 | 423 | 0 | 3,538 | 3,585 | 3,538 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.UpdatePhaseData.OnSuperSearch._showSummary) defined within the public class called public.The function start at line 3538 and ends at 3585. It contains 43 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [3538.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePhaseData.UpdatePhaseData.OnSuperSearch.fmtCell | def fmtCell(cell):s = ''for i in cell[0:3]: s += f"{i:.3f}, "for i in cell[3:5]: s += f"{i:.2f}, "s += f"{cell[5]:.2f}"return s | 3 | 6 | 1 | 42 | 0 | 3,586 | 3,591 | 3,586 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.UpdatePhaseData.OnSuperSearch.fmtCell) defined within the public class called public.The function start at line 3586 and ends at 3591. 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 | UpdatePhaseData.OnSuperSearch | def OnSuperSearch(event):'''Search for a supergroup matching the current phase using theBilbao Pseudosymmetry search (PSEUDO) program'''def _showWebPage(event):'Show a web page when the user presses the "show" button'import tempfilenum = event.GetEventObject().IndexNumtmp = tempfile.NamedTemporaryFile(suffix='.html',de... | 43 | 202 | 1 | 1,508 | 0 | 3,242 | 3,811 | 3,242 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.OnSuperSearch) defined within the public class called public.The function start at line 3242 and ends at 3811. It contains 202 lines of code and it has a cyclomatic complexity of 43. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePhaseData.OnSubSearch | def OnSubSearch(event):'''Search for a lower symmetry structure consistent with thecurrent phase using the Bilbao SUBGROUPS web serviceBased on GSASIIpwdGUI.OnRunSubs'''generalData = data['General']Kx = [' ','0','1/2','-1/2','1/3','-1/3','2/3','1']Ky = [' ','0','1/2','1/3','2/3','1']Kz = [' ','0','1/2','3/2','1/3','2/3... | 14 | 89 | 1 | 884 | 0 | 3,813 | 3,913 | 3,813 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.OnSubSearch) defined within the public class called public.The function start at line 3813 and ends at 3913. It contains 89 lines of code and it has a cyclomatic complexity of 14. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePhaseData.UpdatePhaseData.OnTransform2Std._ShowPhase | def _ShowPhase():phId = G2gd.GetGPXtreeItemId(G2frame,G2frame.root,'Phases')G2frame.GPXtree.Expand(phId)phId = G2gd.GetGPXtreeItemId(G2frame,phId,ophsnam)G2frame.GPXtree.SelectItem(phId) | 1 | 5 | 0 | 46 | 0 | 4,030 | 4,034 | 4,030 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.UpdatePhaseData.OnTransform2Std._ShowPhase) defined within the public class called public.The function start at line 4030 and ends at 4034. 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 | UpdatePhaseData.OnTransform2Std | def OnTransform2Std(event):'''Uses the Bilbao web site to transform a space group and coordinatesto a standard setting'''generalData = data['General']cx,ct,cs,cia = generalData['AtomPtrs']sgnum,sgsym,xmat,xoff = SUBGROUPS.GetStdSGset(generalData['SGData'])if np.allclose(np.eye(3),xmat) and np.allclose(xoff,np.zeros_lik... | 20 | 93 | 1 | 951 | 0 | 3,915 | 4,035 | 3,915 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.OnTransform2Std) defined within the public class called public.The function start at line 3915 and ends at 4035. It contains 93 lines of code and it has a cyclomatic complexity of 20. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePhaseData.OnCompareCells | def OnCompareCells(event):G2G.Load2Cells(G2frame,data) | 1 | 2 | 1 | 13 | 0 | 4,037 | 4,038 | 4,037 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.OnCompareCells) defined within the public class called public.The function start at line 4037 and ends at 4038. 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 | UpdatePhaseData.OnCompare | def OnCompare(event):generalData = data['General']cx,ct,cs,cia = generalData['AtomPtrs']atNames = [atm[ct-1] for atm in data['Atoms']]if not generalData['Compare']['Oatoms'] or not generalData['Compare']['Tatoms']:G2frame.ErrorDialog('Compare atom selection error','Select atoms for polygon comparison first')returnbName... | 11 | 60 | 1 | 622 | 0 | 4,040 | 4,099 | 4,040 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.OnCompare) defined within the public class called public.The function start at line 4040 and ends at 4099. It contains 60 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.OnUseBilbao | def OnUseBilbao(event):'''Select and apply a transformation matrix from the Bilbao web siteto create a new phase'''if 'SUBGROUPS' in data:magData,baseList = data['SUBGROUPS']else:PatternName = data['magPhases']PatternId = G2gd.GetGPXtreeItemId(G2frame,G2frame.root,PatternName)UnitCellsId = G2gd.GetGPXtreeItemId(G2frame... | 25 | 117 | 1 | 1,064 | 0 | 4,101 | 4,222 | 4,101 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.OnUseBilbao) defined within the public class called public.The function start at line 4101 and ends at 4222. It contains 117 lines of code and it has a cyclomatic complexity of 25. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePhaseData.UpdatePhaseData.OnApplySubgroups._ShowPhase | def _ShowPhase():phId = G2gd.GetGPXtreeItemId(G2frame,G2frame.root,'Phases')G2frame.GPXtree.Expand(phId)phId = G2gd.GetGPXtreeItemId(G2frame,phId,phsnam)G2frame.GPXtree.SelectItem(phId) | 1 | 5 | 0 | 46 | 0 | 4,355 | 4,359 | 4,355 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.UpdatePhaseData.OnApplySubgroups._ShowPhase) defined within the public class called public.The function start at line 4355 and ends at 4359. 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 | UpdatePhaseData.OnApplySubgroups | def OnApplySubgroups(event):'''Select and apply a transformation matrix from the Bilbao web siteto replace current phase with a subgroup'''if 'SUBGROUPS' in data:subPhases,baseList = data['SUBGROUPS']UnitCellsId = Noneelse:PatternName = data['magPhases']PatternId = G2gd.GetGPXtreeItemId(G2frame,G2frame.root,PatternName... | 23 | 116 | 1 | 1,087 | 0 | 4,224 | 4,360 | 4,224 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.OnApplySubgroups) defined within the public class called public.The function start at line 4224 and ends at 4360. It contains 116 lines of code and it has a cyclomatic complexity of 23. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePhaseData.UpdatePhaseData.FillAtomsGrid.RefreshAtomGrid | def RefreshAtomGrid(event):r,c =event.GetRow(),event.GetCol()if r < 0 and c < 0:for row in range(Atoms.GetNumberRows()):Atoms.SelectRow(row,True)returnif r < 0:#double click on col label! Change all atoms!noSkip = Trueparms = ''if Atoms.GetColLabelValue(c) == 'refine':Type = generalData['Type']if Type in ['nuclear','ma... | 54 | 153 | 1 | 1,323 | 0 | 4,365 | 4,518 | 4,365 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.UpdatePhaseData.FillAtomsGrid.RefreshAtomGrid) defined within the public class called public.The function start at line 4365 and ends at 4518. It contains 153 lines of code and it has a cyclomatic complexity of 54. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePhaseData.UpdatePhaseData.FillAtomsGrid.UpdatePhaseData.UpdatePhaseData.FillAtomsGrid.ChangeAtomCell.chkUij | def chkUij(Uij,CSI): #needs to do something!!!return Uij | 1 | 2 | 2 | 9 | 0 | 4,522 | 4,523 | 4,522 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.UpdatePhaseData.FillAtomsGrid.UpdatePhaseData.UpdatePhaseData.FillAtomsGrid.ChangeAtomCell.chkUij) defined within the public class called public.The function start at line 4522 and ends at 4523. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, rep... |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePhaseData.UpdatePhaseData.FillAtomsGrid.ChangeAtomCell | def ChangeAtomCell(event):def chkUij(Uij,CSI): #needs to do something!!!return UijSGData = generalData['SGData']r,c =event.GetRow(),event.GetCol()replot = Trueif r >= 0 and c >= 0:ci = colLabels.index('I/A')ID = atomData[r][ci+8]if Atoms.GetColLabelValue(c) in ['x','y','z']:ci = colLabels.index('x')XYZ = atomData[r][ci... | 24 | 81 | 1 | 940 | 0 | 4,520 | 4,604 | 4,520 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.UpdatePhaseData.FillAtomsGrid.ChangeAtomCell) defined within the public class called public.The function start at line 4520 and ends at 4604. It contains 81 lines of code and it has a cyclomatic complexity of 24. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePhaseData.UpdatePhaseData.FillAtomsGrid.AtomTypeSelect | def AtomTypeSelect(event):r,c =event.GetRow(),event.GetCol()if Atoms.GetColLabelValue(c) == 'Type':PE = G2elemGUI.PickElement(G2frame,ifMag=ifMag)if PE.ShowModal() == wx.ID_OK:if PE.Elem != 'None':atomData[r][c] = PE.Elem.strip()name = atomData[r][c]if len(name) in [2,4]:atomData[r][c-1] = name[:2]+'%d'%(r+1)else:atomD... | 6 | 25 | 1 | 243 | 0 | 4,606 | 4,631 | 4,606 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.UpdatePhaseData.FillAtomsGrid.AtomTypeSelect) defined within the public class called public.The function start at line 4606 and ends at 4631. It contains 25 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 | UpdatePhaseData.UpdatePhaseData.FillAtomsGrid.RowSelect | def RowSelect(event):r,c =event.GetRow(),event.GetCol()if not (event.AltDown() or (event.ShiftDown() and event.ControlDown())):Atoms.frm = -1if r < 0 and c < 0:if Atoms.IsSelection():Atoms.ClearSelection()elif c < 0: #only row clicksci = colLabels.index('I/A')if event.ControlDown() and not event.ShiftDown():if r in Ato... | 20 | 46 | 1 | 386 | 0 | 4,633 | 4,678 | 4,633 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.UpdatePhaseData.FillAtomsGrid.RowSelect) defined within the public class called public.The function start at line 4633 and ends at 4678. It contains 46 lines of code and it has a cyclomatic complexity of 20. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePhaseData.UpdatePhaseData.FillAtomsGrid.ChangeSelection | def ChangeSelection(event):r,c =event.GetRow(),event.GetCol()if r < 0 and c < 0:Atoms.ClearSelection()if c < 0:if r in Atoms.GetSelectedRows():Atoms.DeselectRow(r)else:Atoms.SelectRow(r,True)if r < 0:if c in Atoms.GetSelectedCols():Atoms.DeselectCol(c)else:Atoms.SelectCol(c,True) | 7 | 14 | 1 | 94 | 0 | 4,681 | 4,694 | 4,681 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.UpdatePhaseData.FillAtomsGrid.ChangeSelection) defined within the public class called public.The function start at line 4681 and ends at 4694. It contains 14 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 | UpdatePhaseData.UpdatePhaseData.FillAtomsGrid.Paint | def Paint(Scroll=0):'Place atom info into the table'table = []rowLabels = []for i,atom in enumerate(atomData):table.append(atom)rowLabels.append(str(i))atomTable = G2G.Table(table,rowLabels=rowLabels,colLabels=colLabels,types=Types)try:Atoms.SetTable(atomTable, True, useFracEdit=False)# Paint may be called after the Gr... | 28 | 98 | 1 | 889 | 0 | 4,696 | 4,796 | 4,696 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.UpdatePhaseData.FillAtomsGrid.Paint) defined within the public class called public.The function start at line 4696 and ends at 4796. It contains 98 lines of code and it has a cyclomatic complexity of 28. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePhaseData.FillAtomsGrid | def FillAtomsGrid(Atoms):'''Display the contents of the Atoms tab'''def RefreshAtomGrid(event):r,c =event.GetRow(),event.GetCol()if r < 0 and c < 0:for row in range(Atoms.GetNumberRows()):Atoms.SelectRow(row,True)returnif r < 0:#double click on col label! Change all atoms!noSkip = Trueparms = ''if Atoms.GetColLabelValu... | 18 | 102 | 1 | 907 | 0 | 4,362 | 4,895 | 4,362 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.FillAtomsGrid) defined within the public class called public.The function start at line 4362 and ends at 4895. It contains 102 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 | UpdatePhaseData.OnAtomAdd | def OnAtomAdd(event):Elem = 'H'if data['General']['Type'] == 'magnetic':Elem = 'Fe'AtomAdd(0.,0.,0.,El=Elem)FillAtomsGrid(Atoms)event.StopPropagation()if data['Drawing']:G2plt.PlotStructure(G2frame,data) | 3 | 9 | 1 | 60 | 0 | 4,897 | 4,905 | 4,897 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.OnAtomAdd) defined within the public class called public.The function start at line 4897 and ends at 4905. It contains 9 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePhaseData.OnAtomViewAdd | def OnAtomViewAdd(event):Elem = 'H'if data['General']['Type'] == 'magnetic':Elem = 'Fe'try:drawData = data['Drawing']x,y,z = drawData['viewPoint'][0]AtomAdd(x,y,z,El=Elem)except:AtomAdd(0.,0.,0.,El=Elem)FillAtomsGrid(Atoms)event.StopPropagation()data['Drawing']['Atoms'] = []UpdateDrawAtoms(G2frame,data)G2plt.PlotStruct... | 3 | 15 | 1 | 105 | 0 | 4,907 | 4,921 | 4,907 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.OnAtomViewAdd) defined within the public class called public.The function start at line 4907 and ends at 4921. It contains 15 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.AtomAdd | def AtomAdd(x,y,z,El='H',Name='UNK',update=True):atomData = data['Atoms']generalData = data['General']atId = ran.randint(0,sys.maxsize)if 'Q' in El: #dummy fill spin rb pointergeneralData['SpnIds'][atId] = -1SGData = generalData['SGData']Sytsym,Mult = G2spc.SytSym([x,y,z],SGData)[:2]if generalData['Type'] == 'macromole... | 8 | 27 | 6 | 484 | 0 | 4,923 | 4,953 | 4,923 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.AtomAdd) defined within the public class called public.The function start at line 4923 and ends at 4953. It contains 27 lines of code and it has a cyclomatic complexity of 8. It takes 6 parameters, represented as [4923.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePhaseData.OnAtomInsert | def OnAtomInsert(event):'''Inserts a new atom into list immediately before every selected atom'''cx,ct,cs,ci = G2mth.getAtomPtrs(data)indx = getAtomSelections(Atoms,ct-1)for a in reversed(sorted(indx)):AtomInsert(a,0.,0.,0.)event.StopPropagation()FillAtomsGrid(Atoms)data['Drawing']['Atoms'] = []UpdateDrawAtoms(G2frame,... | 2 | 10 | 1 | 87 | 0 | 4,955 | 4,966 | 4,955 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.OnAtomInsert) defined within the public class called public.The function start at line 4955 and ends at 4966. 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 | UpdatePhaseData.OnAtomViewInsert | def OnAtomViewInsert(event):if 'Drawing' in data:drawData = data['Drawing']x,y,z = drawData['viewPoint'][0]AtomAdd(x,y,z)FillAtomsGrid(Atoms)event.StopPropagation() | 2 | 7 | 1 | 46 | 0 | 4,968 | 4,974 | 4,968 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.OnAtomViewInsert) defined within the public class called public.The function start at line 4968 and ends at 4974. 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 | UpdatePhaseData.OnHydAtomAdd | def OnHydAtomAdd(event):'''Adds H atoms to fill out coordination sphere for selected atoms'''cx,ct,cs,cia = G2mth.getAtomPtrs(data)indx = getAtomSelections(Atoms,ct-1)if not indx: returnDisAglCtls = {}generalData = data['General']if 'DisAglCtls' in generalData:DisAglCtls = generalData['DisAglCtls']dlg = G2G.DisAglDialo... | 34 | 94 | 1 | 885 | 0 | 4,976 | 5,071 | 4,976 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.OnHydAtomAdd) defined within the public class called public.The function start at line 4976 and ends at 5071. It contains 94 lines of code and it has a cyclomatic complexity of 34. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePhaseData.OnHydAtomUpdate | def OnHydAtomUpdate(event):generalData = data['General']cx,ct,cs,cia = generalData['AtomPtrs']atomData = data['Atoms']AtLookUp = G2mth.FillAtomLookUp(atomData,cia+8)HydIds = data['General']['HydIds']delList = []for HId in HydIds:hydIds = HydIds[HId]num = hydIds[0]Hxyz,HU = G2mth.AddHydrogens(AtLookUp,generalData,atomDa... | 6 | 27 | 1 | 222 | 0 | 5,073 | 5,099 | 5,073 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.OnHydAtomUpdate) defined within the public class called public.The function start at line 5073 and ends at 5099. It contains 27 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 | UpdatePhaseData.OnAtomMove | def OnAtomMove(event):cx,ct,cs,ci = G2mth.getAtomPtrs(data)indx = getAtomSelections(Atoms,ct-1)drawData = data['Drawing']atomData = data['Atoms']x,y,z = drawData['viewPoint'][0]colLabels = [Atoms.GetColLabelValue(c) for c in range(Atoms.GetNumberCols())]cx = colLabels.index('x')ci = colLabels.index('I/A')if len(indx) !... | 4 | 21 | 1 | 209 | 0 | 5,101 | 5,121 | 5,101 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.OnAtomMove) defined within the public class called public.The function start at line 5101 and ends at 5121. It contains 21 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 | UpdatePhaseData.AtomInsert | def AtomInsert(indx,x,y,z,El='H',Name='UNK'):atomData = data['Atoms']generalData = data['General']SGData = generalData['SGData']Sytsym,Mult = G2spc.SytSym([x,y,z],SGData)[:2]atId = ran.randint(0,sys.maxsize)if generalData['Type'] == 'macromolecular':atomData.insert(indx,[0,Name,'',Name,El,'',x,y,z,1.,Sytsym,Mult,'I',0.... | 6 | 24 | 6 | 478 | 0 | 5,123 | 5,146 | 5,123 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.AtomInsert) defined within the public class called public.The function start at line 5123 and ends at 5146. It contains 24 lines of code and it has a cyclomatic complexity of 6. It takes 6 parameters, represented as [5123.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePhaseData.AtomDelete | def AtomDelete(event):cx,ct,cs,ci = G2mth.getAtomPtrs(data)indx = getAtomSelections(Atoms)colLabels = [Atoms.GetColLabelValue(c) for c in range(Atoms.GetNumberCols())]delList = ''for i in indx:if delList: delList += ', 'delList += data['Atoms'][i][0]dlg = wx.MessageDialog(G2frame,'Do you want to delete atom(s): {}?'.fo... | 14 | 47 | 1 | 333 | 0 | 5,148 | 5,194 | 5,148 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.AtomDelete) defined within the public class called public.The function start at line 5148 and ends at 5194. It contains 47 lines of code and it has a cyclomatic complexity of 14. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePhaseData.AtomRefine | def AtomRefine(event):cx,ct,cs,ci = G2mth.getAtomPtrs(data)indx = getAtomSelections(Atoms,ct-1)if not indx: returncolLabels = [Atoms.GetColLabelValue(c) for c in range(Atoms.GetNumberCols())]c = colLabels.index('refine')atomData = data['Atoms']generalData = data['General']Type = generalData['Type']if Type in ['nuclear'... | 9 | 24 | 1 | 205 | 0 | 5,196 | 5,219 | 5,196 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.AtomRefine) defined within the public class called public.The function start at line 5196 and ends at 5219. It contains 24 lines of code and it has a cyclomatic complexity of 9. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePhaseData.AtomModify | def AtomModify(event):cx,ct,cs,ci = G2mth.getAtomPtrs(data)indx = getAtomSelections(Atoms,ct-1)if not indx: returnatomData = data['Atoms']generalData = data['General']ifMag = FalsecolLabels = [Atoms.GetColLabelValue(c) for c in range(Atoms.GetNumberCols())]ci = colLabels.index('I/A')choices = ['Type','Name','x','y','z'... | 43 | 132 | 1 | 1,185 | 0 | 5,221 | 5,356 | 5,221 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.AtomModify) defined within the public class called public.The function start at line 5221 and ends at 5356. It contains 132 lines of code and it has a cyclomatic complexity of 43. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePhaseData.AtomTransform | def AtomTransform(event):cx,ct,cs,ci = G2mth.getAtomPtrs(data)indx = getAtomSelections(Atoms,ct-1)if not indx: returngeneralData = data['General']SpnFlp = generalData['SGData'].get('SpnFlp',[])colLabels = [Atoms.GetColLabelValue(c) for c in range(Atoms.GetNumberCols())]cx = colLabels.index('x')cuia = colLabels.index('I... | 15 | 62 | 1 | 532 | 0 | 5,358 | 5,419 | 5,358 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.AtomTransform) defined within the public class called public.The function start at line 5358 and ends at 5419. It contains 62 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 | UpdatePhaseData.CollectAtoms | def CollectAtoms(event):cx,ct,cs,ci = G2mth.getAtomPtrs(data)Ind = getAtomSelections(Atoms,ct-1)if Ind:choice = ['x=0','y=0','z=0','origin','center']dlg = wx.SingleChoiceDialog(G2frame,'Atoms closest to:','Select',choice)if dlg.ShowModal() == wx.ID_OK:sel = dlg.GetSelection()+1dlg.Destroy()else:dlg.Destroy()returnwx.Be... | 3 | 19 | 1 | 140 | 0 | 5,421 | 5,439 | 5,421 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.CollectAtoms) defined within the public class called public.The function start at line 5421 and ends at 5439. It contains 19 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.MakeMolecule | def MakeMolecule(event):cx,ct,cs,ci = G2mth.getAtomPtrs(data)indx = getAtomSelections(Atoms,ct-1)DisAglCtls = {}if indx is not None and len(indx) == 1:generalData = data['General']if 'DisAglCtls' in generalData:DisAglCtls = generalData['DisAglCtls']dlg = G2G.DisAglDialog(G2frame,DisAglCtls,generalData)if dlg.ShowModal(... | 6 | 29 | 1 | 202 | 0 | 5,441 | 5,470 | 5,441 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.MakeMolecule) defined within the public class called public.The function start at line 5441 and ends at 5470. It contains 29 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 | UpdatePhaseData.OnDensity | def OnDensity(event):'show the density for the current phase'density,mattCoeff = G2mth.getDensity(data['General'])msg = f"Density of phase {data['General']['Name']!r} = {density:.3f} g/cc"msg += '\n\nCell contents:'for typ,num in data['General']['NoAtoms'].items():msg += f'\n{typ}: {num}'print(msg)G2G.G2MessageBox(G2fr... | 2 | 9 | 1 | 61 | 0 | 5,472 | 5,480 | 5,472 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.OnDensity) defined within the public class called public.The function start at line 5472 and ends at 5480. 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 | UpdatePhaseData.OnSetAll | def OnSetAll(event):'set all atoms in table as selected'for row in range(Atoms.GetNumberRows()):Atoms.SelectRow(row,True)G2plt.PlotStructure(G2frame,data) | 2 | 5 | 1 | 34 | 0 | 5,482 | 5,486 | 5,482 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.OnSetAll) defined within the public class called public.The function start at line 5482 and ends at 5486. 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.OnSetbyList | def OnSetbyList(event):'select atoms using a filtered listbox'choices = [atm[0] for atm in data['Atoms']]dlg = G2G.G2MultiChoiceDialog(G2frame,'Select atoms','Choose atoms to select',choices)indx = []if dlg.ShowModal() == wx.ID_OK:indx = dlg.GetSelections()dlg.Destroy()if len(indx) == 0: returnAtoms.ClearSelection()for... | 5 | 14 | 1 | 97 | 0 | 5,488 | 5,501 | 5,488 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.OnSetbyList) defined within the public class called public.The function start at line 5488 and ends at 5501. 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 | UpdatePhaseData.SetAtomsViewPoint | def SetAtomsViewPoint(event):cx,ct,cs,ci = G2mth.getAtomPtrs(data)indx = getAtomSelections(Atoms,ct-1)if not indx: returnpos = np.zeros(3)for i in indx:pos += data['Atoms'][i][cx:cx+3]data['Drawing']['viewPoint'] = [list(pos/len(indx)),[indx[0],0]]G2plt.PlotStructure(G2frame,data) | 3 | 9 | 1 | 99 | 0 | 5,503 | 5,511 | 5,503 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.SetAtomsViewPoint) defined within the public class called public.The function start at line 5503 and ends at 5511. It contains 9 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePhaseData.OnDistAnglePrt | def OnDistAnglePrt(event):'save distances and angles to a file'fp = open(os.path.abspath(os.path.splitext(G2frame.GSASprojectfile)[0]+'.disagl'),'w')OnDistAngle(event,fp=fp)fp.close() | 1 | 5 | 1 | 48 | 0 | 5,513 | 5,517 | 5,513 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.OnDistAnglePrt) defined within the public class called public.The function start at line 5513 and ends at 5517. 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 | UpdatePhaseData.OnDistAngleHist | def OnDistAngleHist(event):OnDistAngle(event,hist=True) | 1 | 2 | 1 | 13 | 0 | 5,519 | 5,520 | 5,519 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.OnDistAngleHist) defined within the public class called public.The function start at line 5519 and ends at 5520. 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 | UpdatePhaseData.OnSaveDAHist | def OnSaveDAHist(event):Bonds = data.get('Bonds',{})Angles = data.get('Angles',{})if not len(Bonds) and not len(Angles):print('No bond or angle histograms to save!')returngeneralData = data['General']pName = generalData['Name']fName = os.path.abspath(os.path.splitext(G2frame.GSASprojectfile)[0]+'_BAdist.csv')fp = open(... | 9 | 23 | 1 | 208 | 0 | 5,522 | 5,544 | 5,522 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.OnSaveDAHist) defined within the public class called public.The function start at line 5522 and ends at 5544. It contains 23 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.OnClearDAHist | def OnClearDAHist(event):data['Bonds'] = {}data['Angles'] = {}print('Bond & Angle histograms now empty') | 1 | 4 | 1 | 23 | 0 | 5,546 | 5,550 | 5,546 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.OnClearDAHist) defined within the public class called public.The function start at line 5546 and ends at 5550. 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 | UpdatePhaseData.OnDistAngle | def OnDistAngle(event,fp=None,hist=False):'''Compute distances and angles in response to a menu commandor may be called by :func:`OnDistAnglePrt` or :func:`OnDistAngleHist`.This calls :func:`GSASIIstrMain.PrintDistAngle` to computebond distances & angles (computed in:func:`GSASIIstrMain.RetDistAngle`) andthen format th... | 17 | 82 | 3 | 748 | 0 | 5,552 | 5,647 | 5,552 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.OnDistAngle) defined within the public class called public.The function start at line 5552 and ends at 5647. It contains 82 lines of code and it has a cyclomatic complexity of 17. It takes 3 parameters, represented as [5552.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePhaseData.OnFracSplit | def OnFracSplit(event):'Split atom frac accordintg to atom type & refined site fraction'cx,ct,cs,ci = G2mth.getAtomPtrs(data)indx = getAtomSelections(Atoms,ct-1)if indx:B2 = {}atomData = data['Atoms']PE = G2elemGUI.PickElement(G2frame,oneOnly=True)if PE.ShowModal() == wx.ID_OK:Atype2 = PE.Elem.strip()AtomInfo2 = G2elem... | 13 | 51 | 1 | 478 | 0 | 5,649 | 5,700 | 5,649 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.OnFracSplit) defined within the public class called public.The function start at line 5649 and ends at 5700. It contains 51 lines of code and it has a cyclomatic complexity of 13. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePhaseData.UpdatePhaseData.OnValidProtein.pickHandler | def pickHandler(resName):drawData = data['Drawing']resid = resIDs[resName]drawData['viewPoint'][0] = atomData[AtLookUp[resid]][cx:cx+3]UpdateDrawAtoms(G2frame,data)G2plt.PlotStructure(G2frame,data) | 1 | 6 | 1 | 53 | 0 | 5,704 | 5,709 | 5,704 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.UpdatePhaseData.OnValidProtein.pickHandler) defined within the public class called public.The function start at line 5704 and ends at 5709. 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 | UpdatePhaseData.OnValidProtein | def OnValidProtein(event):def pickHandler(resName):drawData = data['Drawing']resid = resIDs[resName]drawData['viewPoint'][0] = atomData[AtLookUp[resid]][cx:cx+3]UpdateDrawAtoms(G2frame,data)G2plt.PlotStructure(G2frame,data)atomData = data['Atoms']cx,ct,cs,cia = data['General']['AtomPtrs']AtLookUp = G2mth.FillAtomLookUp... | 1 | 16 | 1 | 150 | 0 | 5,702 | 5,724 | 5,702 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.OnValidProtein) defined within the public class called public.The function start at line 5702 and ends at 5724. It contains 16 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePhaseData.OnShowIsoDistortCalc | def OnShowIsoDistortCalc(event):Histograms,Phases = G2frame.GetUsedHistogramsAndPhasesfromTree()G2cnstG.ShowIsoDistortCalc(G2frame,data['General']['Name']) | 1 | 3 | 1 | 28 | 0 | 5,726 | 5,728 | 5,726 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.OnShowIsoDistortCalc) defined within the public class called public.The function start at line 5726 and ends at 5728. 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 | UpdatePhaseData.OnShowIsoModes | def OnShowIsoModes(event):Histograms,Phases = G2frame.GetUsedHistogramsAndPhasesfromTree()#import imp#imp.reload(G2cnstG)G2cnstG.ShowIsoModes(G2frame,data['General']['Name']) | 1 | 3 | 1 | 28 | 0 | 5,730 | 5,734 | 5,730 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.OnShowIsoModes) defined within the public class called public.The function start at line 5730 and ends at 5734. 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 | UpdatePhaseData.OnReplacePhase | def OnReplacePhase(event):'Called to replace the current phase with a new phase from a file'reqrdr = G2frame.dataWindow.ReplaceMenuId.get(event.GetId())rdlist = G2frame.OnImportGeneric(reqrdr,G2frame.ImportPhaseReaderlist,'phase')if len(rdlist) == 0: return# rdlist is only expected to have one entryrd = rdlist[0]# Stri... | 5 | 29 | 1 | 311 | 0 | 5,736 | 5,788 | 5,736 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.OnReplacePhase) defined within the public class called public.The function start at line 5736 and ends at 5788. It contains 29 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 | UpdatePhaseData.OnReImport | def OnReImport(event):'Called to replace the coordinates with "original" values from a file'generalData = data['General']cx,ct,cs,cia = generalData['AtomPtrs']reqrdr = G2frame.dataWindow.ReImportMenuId.get(event.GetId())rdlist = G2frame.OnImportGeneric(reqrdr,G2frame.ImportPhaseReaderlist,'phase')if len(rdlist) == 0: r... | 10 | 47 | 1 | 341 | 0 | 5,790 | 5,838 | 5,790 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.OnReImport) defined within the public class called public.The function start at line 5790 and ends at 5838. It contains 47 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 | UpdatePhaseData.OnLoadDysnomia | def OnLoadDysnomia(event):print('Load MEM - might not be implemented') | 1 | 2 | 1 | 9 | 0 | 5,842 | 5,843 | 5,842 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.OnLoadDysnomia) defined within the public class called public.The function start at line 5842 and ends at 5843. 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 | UpdatePhaseData.OnSaveDysnomia | def OnSaveDysnomia(event):print('Save MEM - might not be implemented') | 1 | 2 | 1 | 9 | 0 | 5,845 | 5,846 | 5,845 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.OnSaveDysnomia) defined within the public class called public.The function start at line 5845 and ends at 5846. 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 | UpdatePhaseData.OnRunDysnomia | def OnRunDysnomia(event):path2GSAS2 = os.path.dirname(os.path.abspath(os.path.expanduser(__file__)))DYSNOMIA = os.path.join(path2GSAS2,'Dysnomia','Dysnomia64.exe')DysData = data['Dysnomia']if not os.path.exists(DYSNOMIA):wx.MessageBox(''' Dysnomia is not installed. Please download it fromhttps://jp-minerals.org/dysnomi... | 12 | 66 | 1 | 556 | 0 | 5,848 | 5,919 | 5,848 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.OnRunDysnomia) defined within the public class called public.The function start at line 5848 and ends at 5919. It contains 66 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.OnSetupRMC | def OnSetupRMC(event):written = lambda fil: print(f' {fil} written')generalData = data['General']if not G2frame.GSASprojectfile: #force a project saveG2frame.OnFileSaveas(event)dName = G2frame.LastGPXdiros.chdir(dName)print(f'Writing input files in directory {dName!r}')if G2frame.RMCchoice == 'fullrmc':RMCPdict = data[... | 16 | 85 | 1 | 727 | 0 | 5,926 | 6,016 | 5,926 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.OnSetupRMC) defined within the public class called public.The function start at line 5926 and ends at 6016. It contains 85 lines of code and it has a cyclomatic complexity of 16. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePhaseData.RunPDFfit | def RunPDFfit(event):generalData = data['General']ISOdict = data['ISODISTORT']PDFfit_exec = G2pwd.findPDFfit()#returns location of python with PDFfit installedif not PDFfit_exec:wx.MessageBox(''' PDFfit2 is not currently installed for this platform.Please contact us for assistance''',caption='No PDFfit2',style=wx.ICON_... | 62 | 222 | 1 | 2,065 | 0 | 6,018 | 6,255 | 6,018 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.RunPDFfit) defined within the public class called public.The function start at line 6018 and ends at 6255. It contains 222 lines of code and it has a cyclomatic complexity of 62. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePhaseData.Runfullrmc | def Runfullrmc(event):fullrmc_exec = G2pwd.findfullrmc()if fullrmc_exec is None:G2G.G2MessageBox(G2frame,'fullrmc Python not found. How did we get here?')returngeneralData = data['General']pName = G2frame.GSASprojectfile.split('.')[0] + '-' + generalData['Name']pName = pName.replace(' ','_')rname = pName+'-fullrmc.py'i... | 12 | 64 | 1 | 439 | 0 | 6,257 | 6,330 | 6,257 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.Runfullrmc) defined within the public class called public.The function start at line 6257 and ends at 6330. It contains 64 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.RunRMCProfile | def RunRMCProfile(event):generalData = data['General']pName = generalData['Name'].replace(' ','_')rmcfile = G2pwd.findrmcprofile()wx.MessageBox(' For use of RMCProfile, please cite:\n\n'+G2G.GetCite("RMCProfile"),caption='RMCProfile',style=wx.ICON_INFORMATION)if os.path.isfile(pName+'.his6f'):os.remove(pName+'.his6f')i... | 13 | 76 | 1 | 561 | 0 | 6,332 | 6,413 | 6,332 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.RunRMCProfile) defined within the public class called public.The function start at line 6332 and ends at 6413. It contains 76 lines of code and it has a cyclomatic complexity of 13. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePhaseData.OnRunRMC | def OnRunRMC(event):'''Run a previously created RMCProfile/fullrmc/PDFfit2 script'''if G2frame.RMCchoice == 'fullrmc': Runfullrmc(event)elif G2frame.RMCchoice == 'RMCProfile':RunRMCProfile(event)elif G2frame.RMCchoice == 'PDFfit':RunPDFfit(event) | 4 | 7 | 1 | 39 | 0 | 6,415 | 6,423 | 6,415 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.OnRunRMC) defined within the public class called public.The function start at line 6415 and ends at 6423. It contains 7 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 | UpdatePhaseData.OnLoadRMC | def OnLoadRMC(event):'''Used to load the output from fullrmc with all atoms placed in theoriginal cell'''fullrmcLoadPhase(super=False) | 1 | 2 | 1 | 12 | 0 | 6,442 | 6,446 | 6,442 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.OnLoadRMC) defined within the public class called public.The function start at line 6442 and ends at 6446. 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 | UpdatePhaseData.OnLoadRMCsuper | def OnLoadRMCsuper(event):'''Used to load the output from fullrmc with atoms in the simulationsupercell cell'''fullrmcLoadPhase(super=True) | 1 | 2 | 1 | 12 | 0 | 6,447 | 6,451 | 6,447 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.OnLoadRMCsuper) defined within the public class called public.The function start at line 6447 and ends at 6451. 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 | UpdatePhaseData.fullrmcLoadPhase | def fullrmcLoadPhase(super):'''Used to load the output from fullrmc. Creates a new phase,reads all atoms & converts coordinates to fractional.If super is False all atoms placed in the original cell.Called from :func:`OnLoadRMC` or :func:`OnLoadRMCsuper` fromthe RMC tab Operations menu commands 'Superimpose into cell'an... | 10 | 44 | 1 | 502 | 0 | 6,452 | 6,508 | 6,452 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.fullrmcLoadPhase) defined within the public class called public.The function start at line 6452 and ends at 6508. It contains 44 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 | UpdatePhaseData.OnViewRMC | def OnViewRMC(event):if G2frame.RMCchoice == 'fullrmc':RMCPdict = data['RMC']['fullrmc']generalData = data['General']pName = G2frame.GSASprojectfile.split('.')[0] + '-' + generalData['Name']pName = pName.replace(' ','_')engineFilePath = pName+'-fullrmc.rmc'if not os.path.exists(engineFilePath):dlg = wx.FileDialog(G2fra... | 104 | 377 | 1 | 3,676 | 0 | 6,512 | 6,903 | 6,512 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.OnViewRMC) defined within the public class called public.The function start at line 6512 and ends at 6903. It contains 377 lines of code and it has a cyclomatic complexity of 104. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePhaseData.OnRunISODISTORT | def OnRunISODISTORT(event):''' this needs to setup for method #3 or #4 in ISODISTORTafter providing parent cif:#3 asks for transformation matrix & space group of child structure#4 asks for cif file of child structure'''if not G2frame.GSASprojectfile: #force a project save to establish location of output cif fileG2frame... | 5 | 16 | 1 | 152 | 0 | 6,907 | 6,929 | 6,907 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.OnRunISODISTORT) defined within the public class called public.The function start at line 6907 and ends at 6929. It contains 16 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 | UpdatePhaseData.OnNewISOPhase | def OnNewISOPhase(event):''' Make CIF file with ISODISTORT'''if 'rundata' in data['ISODISTORT'] and data['ISODISTORT']['selection'] is not None:CIFfile = ISO.GetISODISTORTcif(data)G2G.G2MessageBox(G2frame,'ISODISTORT generated cif file %s has been created.'%CIFfile)elif 'rundata' in data['ISODISTORT']:G2G.G2MessageBox(... | 4 | 8 | 1 | 69 | 0 | 6,931 | 6,940 | 6,931 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.OnNewISOPhase) defined within the public class called public.The function start at line 6931 and ends at 6940. It contains 8 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 | UpdatePhaseData.OnNewPDFfitPhase | def OnNewPDFfitPhase(event):''' Make new phase for PDFfit using ISODISTORT mode definitions as constraints'''newPhase = G2pwd.ISO2PDFfit(data)phaseName = newPhase['General']['Name']sub = G2frame.GPXtree.AppendItem(G2gd.GetGPXtreeItemId(G2frame,G2frame.root,'Phases'),text=phaseName)G2frame.GPXtree.SetItemPyData(sub,newP... | 1 | 6 | 1 | 66 | 0 | 6,942 | 6,949 | 6,942 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.OnNewPDFfitPhase) defined within the public class called public.The function start at line 6942 and ends at 6949. 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 | UpdatePhaseData.OnCopyPhase | def OnCopyPhase(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.Destro... | 4 | 20 | 1 | 152 | 0 | 6,953 | 6,972 | 6,953 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.OnCopyPhase) defined within the public class called public.The function start at line 6953 and ends at 6972. It contains 20 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 | UpdatePhaseData.OnLoadDIFFaX | def OnLoadDIFFaX(event):if len(data['Layers']['Layers']):dlg = wx.MessageDialog(G2frame,'Do you really want to replace the Layer data?','Load DIFFaX file',wx.YES_NO | wx.ICON_QUESTION)try:result = dlg.ShowModal()if result == wx.ID_NO:returnfinally:dlg.Destroy()dlg = wx.FileDialog(G2frame, 'Choose DIFFaX file name to re... | 6 | 19 | 1 | 142 | 0 | 6,974 | 6,992 | 6,974 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.OnLoadDIFFaX) defined within the public class called public.The function start at line 6974 and ends at 6992. 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 | UpdatePhaseData.OnSimulate | def OnSimulate(event):debug = False #set True to run DIFFax to compare/debug (must be in bin)idebug = 0if debug: idebug = 1wx.MessageBox(' For use of DIFFaX, please cite:\n\n'+G2G.GetCite('DIFFaX'),caption='DIFFaX',style=wx.ICON_INFORMATION)ctrls = ''dlg = DIFFaXcontrols(G2frame,ctrls)if dlg.ShowModal() == wx.ID_OK:sim... | 13 | 69 | 1 | 685 | 0 | 6,994 | 7,063 | 6,994 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.OnSimulate) defined within the public class called public.The function start at line 6994 and ends at 7063. It contains 69 lines of code and it has a cyclomatic complexity of 13. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePhaseData.OnFitLayers | def OnFitLayers(event):print (' fit stacking fault model TBD')#import scipy.optimize as optwx.BeginBusyCursor()# see pwd.SetupPDFEval() and pwd.OptimizePDF() for an example minimizationwx.EndBusyCursor()wx.CallAfter(G2phsG2.UpdateLayerData,G2frame,data)G2pwpl.PlotPatterns(G2frame,plotType='PWDR') | 1 | 6 | 1 | 41 | 0 | 7,065 | 7,072 | 7,065 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.OnFitLayers) defined within the public class called public.The function start at line 7065 and ends at 7072. 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 | UpdatePhaseData.OnSeqSimulate | def OnSeqSimulate(event):cellSel = ['cellA','cellB','cellC','cellG']transSel = ['TransP','TransX','TransY','TransZ']ctrls = ''cell = data['Layers']['Cell']data['Layers']['seqResults'] = []data['Layers']['seqCodes'] = []Parms = G2pwd.GetStackParms(data['Layers'])dlg = DIFFaXcontrols(G2frame,ctrls,Parms)if dlg.ShowModal(... | 18 | 92 | 1 | 906 | 0 | 7,074 | 7,166 | 7,074 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.OnSeqSimulate) defined within the public class called public.The function start at line 7074 and ends at 7166. It contains 92 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 | UpdatePhaseData.OnWaveVary | def OnWaveVary(event):generalData = data['General']cx,ct,cs,cia = generalData['AtomPtrs']atomData = data['Atoms']atNames = []names = ['Sfrac','Spos','Sadp','Smag']flags = dict(zip(names,[[],[],[],[]]))for atom in atomData:atNames.append(atom[ct-1])waves = atom[-1]['SS1']for name in names:if waves[name]:flags[name].appe... | 9 | 26 | 1 | 226 | 0 | 7,170 | 7,195 | 7,170 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.OnWaveVary) defined within the public class called public.The function start at line 7170 and ends at 7195. It contains 26 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.SetupDrawingData | def SetupDrawingData():generalData = data['General']Amat,Bmat = G2lat.cell2AB(generalData['Cell'][1:7])atomData = data['Atoms']defaultDrawing = {'viewPoint':[[0.5,0.5,0.5],[]],'showHydrogen':True,'backColor':[0,0,0],'depthFog':False,'Zclip':50.0,'cameraPos':50.,'Zstep':0.5,'radiusFactor':0.85,'contourLevel':1.,'bondRad... | 22 | 67 | 0 | 730 | 0 | 7,198 | 7,264 | 7,198 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.SetupDrawingData) defined within the public class called public.The function start at line 7198 and ends at 7264. It contains 67 lines of code and it has a cyclomatic complexity of 22. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePhaseData.DrawAtomAdd | def DrawAtomAdd(drawingData,atom):drawingData['Atoms'].append(G2mth.MakeDrawAtom(data,atom)) | 1 | 2 | 2 | 23 | 0 | 7,266 | 7,267 | 7,266 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.DrawAtomAdd) defined within the public class called public.The function start at line 7266 and ends at 7267. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [7266.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdatePhaseData.OnRestraint | def OnRestraint(event):cx,ct,cs,ci = G2mth.getAtomPtrs(data,draw=True)indx = getAtomSelections(G2frame.drawAtoms,ct-1)if not indx: return#indx = drawAtoms.GetSelectedRows()restData = G2frame.GPXtree.GetItemPyData(G2gd.GetGPXtreeItemId(G2frame,G2frame.root,'Restraints'))drawingData = data['Drawing']generalData = data['G... | 15 | 54 | 1 | 537 | 0 | 7,269 | 7,323 | 7,269 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.OnRestraint) defined within the public class called public.The function start at line 7269 and ends at 7323. It contains 54 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 | UpdatePhaseData.OnDefineRB | def OnDefineRB(event):cx,ct,cs,ci = G2mth.getAtomPtrs(data,draw=True)indx = getAtomSelections(G2frame.drawAtoms,ct-1)if not indx: returnindx.sort()RBData = G2frame.GPXtree.GetItemPyData(G2gd.GetGPXtreeItemId(G2frame,G2frame.root,'Rigid bodies'))drawingData = data['Drawing']generalData = data['General']Amat,Bmat = G2lat... | 5 | 36 | 1 | 367 | 0 | 7,325 | 7,360 | 7,325 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdatePhaseData.OnDefineRB) defined within the public class called public.The function start at line 7325 and ends at 7360. It contains 36 lines of code and it has a cyclomatic complexity of 5. The function does not take any parameters and does not return any value.. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.