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 | UpdateRestraints.UpdateRestraints.UpdateChiralRestr.OnChangeEsd | def OnChangeEsd(event):rows = GetSelectedRows(Volumes)if not rows:returnVolumes.ClearSelection()val = volumeList[rows[0]][3]dlg = G2G.SingleFloatDialog(G2frame,'New value','Enter new esd for chiral volume',val,[0.,5.],'%.2f')if dlg.ShowModal() == wx.ID_OK:parm = dlg.GetValue()for r in rows:chiralRestData['Volumes'][r][... | 4 | 13 | 1 | 101 | 0 | 1,398 | 1,410 | 1,398 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRestraints.UpdateRestraints.UpdateChiralRestr.OnChangeEsd) defined within the public class called public.The function start at line 1398 and ends at 1410. 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 | UpdateRestraints.UpdateChiralRestr | def UpdateChiralRestr(chiralRestData):def OnCellChange(event):r,c =event.GetRow(),event.GetCol()try:new = float(volumeTable.GetValue(r,c))if new <= 0.:raise ValueErrorchiralRestData['Volumes'][r][c] = newexcept ValueError:passwx.CallAfter(UpdateChiralRestr,chiralRestData)def OnDeleteRestraint(event):rows = GetSelectedR... | 19 | 90 | 1 | 906 | 0 | 1,359 | 1,498 | 1,359 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRestraints.UpdateChiralRestr) defined within the public class called public.The function start at line 1359 and ends at 1498. It contains 90 lines of code and it has a cyclomatic complexity of 19. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateRestraints.UpdateRestraints.UpdateTorsionRestr.OnCellChange | def OnCellChange(event):r,c =event.GetRow(),event.GetCol()try:new = float(torsionTable.GetValue(r,c))if new <= 0. or new > 5.:raise ValueErrortorsionRestData['Torsions'][r][3] = new #only esd is editableexcept ValueError:passwx.CallAfter(UpdateTorsionRestr,torsionRestData) | 4 | 10 | 1 | 72 | 0 | 1,502 | 1,511 | 1,502 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRestraints.UpdateRestraints.UpdateTorsionRestr.OnCellChange) defined within the public class called public.The function start at line 1502 and ends at 1511. It contains 10 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 | UpdateRestraints.UpdateRestraints.UpdateTorsionRestr.OnDeleteRestraint | def OnDeleteRestraint(event):rows = GetSelectedRows(TorsionRestr.Torsions,'delete',G2frame)G2frame.GetStatusBar().SetStatusText('',1)if not rows:G2frame.GetStatusBar().SetStatusText('First select restraints to be deleted',1)returnrows.sort()rows.reverse()for row in rows:torsionList.remove(torsionList[row])wx.CallAfter(... | 3 | 11 | 1 | 78 | 0 | 1,513 | 1,523 | 1,513 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRestraints.UpdateRestraints.UpdateTorsionRestr.OnDeleteRestraint) defined within the public class called public.The function start at line 1513 and ends at 1523. 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 va... |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateRestraints.UpdateRestraints.UpdateTorsionRestr.OnChangeEsd | def OnChangeEsd(event):rows = GetSelectedRows(TorsionRestr.Torsions)if not rows:returnTorsionRestr.Torsions.ClearSelection()val = torsionList[rows[0]][4]dlg = G2G.SingleFloatDialog(G2frame,'New value','Enter new esd for torsion restraints',val,[0.,5.],'%.2f')if dlg.ShowModal() == wx.ID_OK:parm = dlg.GetValue()for r in ... | 4 | 13 | 1 | 109 | 0 | 1,525 | 1,537 | 1,525 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRestraints.UpdateRestraints.UpdateTorsionRestr.OnChangeEsd) defined within the public class called public.The function start at line 1525 and ends at 1537. 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 | UpdateRestraints.UpdateRestraints.UpdateTorsionRestr.coeffSizer | def coeffSizer(): table = []rowLabels = []Types = 9*[wg.GRID_VALUE_FLOAT+':10,4',]colLabels = ['Mag A','Pos A','Width A','Mag B','Pos B','Width B','Mag C','Pos C','Width C']for item in coeffDict:rowLabels.append(item)table.append(coeffDict[item])coeffTable = G2G.Table(table,rowLabels=rowLabels,colLabels=colLabels,types... | 4 | 19 | 0 | 169 | 0 | 1,539 | 1,557 | 1,539 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRestraints.UpdateRestraints.UpdateTorsionRestr.coeffSizer) defined within the public class called public.The function start at line 1539 and ends at 1557. 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 | UpdateRestraints.UpdateTorsionRestr | def UpdateTorsionRestr(torsionRestData):def OnCellChange(event):r,c =event.GetRow(),event.GetCol()try:new = float(torsionTable.GetValue(r,c))if new <= 0. or new > 5.:raise ValueErrortorsionRestData['Torsions'][r][3] = new #only esd is editableexcept ValueError:passwx.CallAfter(UpdateTorsionRestr,torsionRestData)def OnD... | 17 | 77 | 1 | 756 | 0 | 1,500 | 1,634 | 1,500 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRestraints.UpdateTorsionRestr) defined within the public class called public.The function start at line 1500 and ends at 1634. It contains 77 lines of code and it has a cyclomatic complexity of 17. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateRestraints.UpdateRestraints.UpdateRamaRestr.OnCellChange | def OnCellChange(event):r,c =event.GetRow(),event.GetCol()try:new = float(ramaTable.GetValue(r,c))if new <= 0. or new > 5.:raise ValueErrorramaRestData['Ramas'][r][4] = new #only esd is editableexcept ValueError:passwx.CallAfter(UpdateRamaRestr,ramaRestData) | 4 | 10 | 1 | 72 | 0 | 1,638 | 1,647 | 1,638 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRestraints.UpdateRestraints.UpdateRamaRestr.OnCellChange) defined within the public class called public.The function start at line 1638 and ends at 1647. It contains 10 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 | UpdateRestraints.UpdateRestraints.UpdateRamaRestr.OnDeleteRestraint | def OnDeleteRestraint(event):rows = GetSelectedRows(RamaRestr.Ramas,'delete',G2frame)G2frame.GetStatusBar().SetStatusText('',1)if not rows:G2frame.GetStatusBar().SetStatusText('First select restraints to be deleted',1)returnrows.sort()rows.reverse()for row in rows:ramaList.remove(ramaList[row])UpdateRamaRestr(ramaRestD... | 3 | 11 | 1 | 74 | 0 | 1,649 | 1,659 | 1,649 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRestraints.UpdateRestraints.UpdateRamaRestr.OnDeleteRestraint) defined within the public class called public.The function start at line 1649 and ends at 1659. 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 | UpdateRestraints.UpdateRestraints.UpdateRamaRestr.OnChangeEsd | def OnChangeEsd(event):rows = GetSelectedRows(RamaRestr.Ramas)if not rows:returnRamaRestr.Ramas.ClearSelection()val = ramaList[rows[0]][4]dlg = G2G.SingleFloatDialog(G2frame,'New value','Enter new esd for energy',val,[0.,5.],'%.2f')if dlg.ShowModal() == wx.ID_OK:parm = dlg.GetValue()for r in rows:ramaRestData['Ramas'][... | 4 | 13 | 1 | 105 | 0 | 1,661 | 1,673 | 1,661 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRestraints.UpdateRestraints.UpdateRamaRestr.OnChangeEsd) defined within the public class called public.The function start at line 1661 and ends at 1673. 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 | UpdateRestraints.UpdateRestraints.UpdateRamaRestr.coeffSizer | def coeffSizer():table = []rowLabels = []Types = 6*[wg.GRID_VALUE_FLOAT+':10,4',]colLabels = ['Mag','Pos phi','Pos psi','sig(phi)','sig(psi)','sig(cov)']for item in coeffDict:for i,term in enumerate(coeffDict[item]):rowLabels.append(item+' term:'+str(i))table.append(term)coeffTable = G2G.Table(table,rowLabels=rowLabels... | 5 | 20 | 0 | 181 | 0 | 1,675 | 1,694 | 1,675 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRestraints.UpdateRestraints.UpdateRamaRestr.coeffSizer) defined within the public class called public.The function start at line 1675 and ends at 1694. It contains 20 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 | UpdateRestraints.UpdateRamaRestr | def UpdateRamaRestr(ramaRestData):def OnCellChange(event):r,c =event.GetRow(),event.GetCol()try:new = float(ramaTable.GetValue(r,c))if new <= 0. or new > 5.:raise ValueErrorramaRestData['Ramas'][r][4] = new #only esd is editableexcept ValueError:passwx.CallAfter(UpdateRamaRestr,ramaRestData)def OnDeleteRestraint(event)... | 18 | 77 | 1 | 760 | 0 | 1,636 | 1,769 | 1,636 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRestraints.UpdateRamaRestr) defined within the public class called public.The function start at line 1636 and ends at 1769. It contains 77 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 | UpdateRestraints.UpdateRestraints.UpdateChemcompRestr.OnCellChange | def OnCellChange(event):r,c =event.GetRow(),event.GetCol()rowLabl = ChemComps.GetRowLabelValue(r)row = int(rowLabl.split(':')[1])if 'Restr' in rowLabl:try:new = float(chemcompTable.GetValue(r,c))chemcompRestData['Sites'][row][c-2] = new #obsd or esdexcept ValueError:passelse:try:new = float(chemcompTable.GetValue(r,c))... | 4 | 18 | 1 | 138 | 0 | 1,773 | 1,790 | 1,773 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRestraints.UpdateRestraints.UpdateChemcompRestr.OnCellChange) defined within the public class called public.The function start at line 1773 and ends at 1790. It contains 18 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 | UpdateRestraints.UpdateRestraints.UpdateChemcompRestr.OnDeleteRestraint | def OnDeleteRestraint(event):rows = GetSelectedRows(ChemComps,'delete',G2frame)#rows = ChemComps.GetSelectedRows()G2frame.GetStatusBar().SetStatusText('',1)if not rows:G2frame.GetStatusBar().SetStatusText('First select restraints to be deleted',1)returnterms = []restrs = []for r in sorted(rows,reverse=True):rowLabl = C... | 7 | 20 | 1 | 163 | 0 | 1,792 | 1,813 | 1,792 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRestraints.UpdateRestraints.UpdateChemcompRestr.OnDeleteRestraint) defined within the public class called public.The function start at line 1792 and ends at 1813. It contains 20 lines of code and it has a cyclomatic complexity of 7. The function does not take any parameters and does not return any v... |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateRestraints.UpdateChemcompRestr | def UpdateChemcompRestr(chemcompRestData):def OnCellChange(event):r,c =event.GetRow(),event.GetCol()rowLabl = ChemComps.GetRowLabelValue(r)row = int(rowLabl.split(':')[1])if 'Restr' in rowLabl:try:new = float(chemcompTable.GetValue(r,c))chemcompRestData['Sites'][row][c-2] = new #obsd or esdexcept ValueError:passelse:tr... | 19 | 83 | 1 | 805 | 0 | 1,771 | 1,915 | 1,771 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRestraints.UpdateChemcompRestr) defined within the public class called public.The function start at line 1771 and ends at 1915. It contains 83 lines of code and it has a cyclomatic complexity of 19. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateRestraints.UpdateRestraints.UpdateMomentRestr.OnChangeEsd | def OnChangeEsd(event):rows = GetSelectedRows(Moments)if not rows:returnMoments.ClearSelection()val = momentList[rows[0]][-1]dlg = G2G.SingleFloatDialog(G2frame,'New value','Enter new esd for moments',val,[0.,5.],'%.3f')if dlg.ShowModal() == wx.ID_OK:parm = dlg.GetValue()for r in rows:momentRestData['Moments'][r][-1] =... | 4 | 13 | 1 | 103 | 0 | 1,919 | 1,931 | 1,919 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRestraints.UpdateRestraints.UpdateMomentRestr.OnChangeEsd) defined within the public class called public.The function start at line 1919 and ends at 1931. 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 | UpdateRestraints.UpdateRestraints.UpdateMomentRestr.OnDeleteRestraint | def OnDeleteRestraint(event):rows = GetSelectedRows(Moments,'delete',G2frame)G2frame.GetStatusBar().SetStatusText('',1)if not rows:G2frame.GetStatusBar().SetStatusText('First select restraints to be deleted',1)returnrows.sort()rows.reverse()for row in rows:momentList.remove(momentList[row])UpdateMomentRestr(momentRestD... | 3 | 11 | 1 | 72 | 0 | 1,933 | 1,943 | 1,933 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRestraints.UpdateRestraints.UpdateMomentRestr.OnDeleteRestraint) defined within the public class called public.The function start at line 1933 and ends at 1943. 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 val... |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateRestraints.UpdateMomentRestr | def UpdateMomentRestr(momentRestData):def OnChangeEsd(event):rows = GetSelectedRows(Moments)if not rows:returnMoments.ClearSelection()val = momentList[rows[0]][-1]dlg = G2G.SingleFloatDialog(G2frame,'New value','Enter new esd for moments',val,[0.,5.],'%.3f')if dlg.ShowModal() == wx.ID_OK:parm = dlg.GetValue()for r in r... | 16 | 72 | 1 | 676 | 0 | 1,917 | 2,015 | 1,917 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRestraints.UpdateMomentRestr) defined within the public class called public.The function start at line 1917 and ends at 2015. It contains 72 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 | UpdateRestraints.UpdateRestraints.UpdateTextureRestr.OnDeleteRestraint | def OnDeleteRestraint(event):rows = GetSelectedRows(Textures,'delete',G2frame)G2frame.GetStatusBar().SetStatusText('',1)if not rows:G2frame.GetStatusBar().SetStatusText('First select restraints to be deleted',1)returnrows.sort()rows.reverse()for row in rows:textureList.remove(textureList[row])wx.CallAfter(UpdateTexture... | 3 | 11 | 1 | 76 | 0 | 2,019 | 2,029 | 2,019 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRestraints.UpdateRestraints.UpdateTextureRestr.OnDeleteRestraint) defined within the public class called public.The function start at line 2019 and ends at 2029. 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 va... |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateRestraints.UpdateRestraints.UpdateTextureRestr.OnCellChange | def OnCellChange(event):r,c = event.GetRow(),event.GetCol()try:if c == 1:#grid sizenew = int(textureTable.GetValue(r,c))if new < 6 or new > 24:raise ValueErrorelif c in [2,4]: #esdsnew = float(textureTable.GetValue(r,c))if new < -1. or new > 2.:raise ValueErrorelse:new = textureTable.GetValue(r,c)textureRestData['HKLs'... | 8 | 17 | 1 | 123 | 0 | 2,031 | 2,047 | 2,031 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRestraints.UpdateRestraints.UpdateTextureRestr.OnCellChange) defined within the public class called public.The function start at line 2031 and ends at 2047. It contains 17 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 | UpdateRestraints.UpdateTextureRestr | def UpdateTextureRestr(textureRestData):def OnDeleteRestraint(event):rows = GetSelectedRows(Textures,'delete',G2frame)G2frame.GetStatusBar().SetStatusText('',1)if not rows:G2frame.GetStatusBar().SetStatusText('First select restraints to be deleted',1)returnrows.sort()rows.reverse()for row in rows:textureList.remove(tex... | 9 | 48 | 1 | 487 | 0 | 2,017 | 2,094 | 2,017 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRestraints.UpdateTextureRestr) defined within the public class called public.The function start at line 2017 and ends at 2094. It contains 48 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 | UpdateRestraints.UpdateRestraints.UpdateGeneralRestr.OnEditGenRestraint | def OnEditGenRestraint(event):'''Edit a restraint expression'''n = event.GetEventObject().indexparmDict = SetupParmDict(G2frame)dlg = G2exG.ExpressionDialog(G2frame,parmDict,exprObj=generalRestData['General'][n][0],header="Edit a restraint expression",fit=False,wildCard=G2frame.testSeqRefineMode())restobj = dlg.Show(Tr... | 2 | 11 | 1 | 94 | 0 | 2,100 | 2,111 | 2,100 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRestraints.UpdateRestraints.UpdateGeneralRestr.OnEditGenRestraint) defined within the public class called public.The function start at line 2100 and ends at 2111. 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 v... |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateRestraints.UpdateRestraints.UpdateGeneralRestr.OnDelGenRestraint | def OnDelGenRestraint(event):#does this work??'''Delete a restraint expression'''n = event.GetEventObject().indexdel restrData['General']['General'][n]wx.CallAfter(UpdateGeneralRestr,restrData['General']) | 1 | 4 | 1 | 37 | 0 | 2,113 | 2,117 | 2,113 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRestraints.UpdateRestraints.UpdateGeneralRestr.OnDelGenRestraint) defined within the public class called public.The function start at line 2113 and ends at 2117. 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 val... |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateRestraints.UpdateGeneralRestr | def UpdateGeneralRestr(generalRestData):'''Display any generalized restraint expressions'''def OnEditGenRestraint(event):'''Edit a restraint expression'''n = event.GetEventObject().indexparmDict = SetupParmDict(G2frame)dlg = G2exG.ExpressionDialog(G2frame,parmDict,exprObj=generalRestData['General'][n][0],header="Edit a... | 12 | 81 | 1 | 799 | 0 | 2,097 | 2,198 | 2,097 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRestraints.UpdateGeneralRestr) defined within the public class called public.The function start at line 2097 and ends at 2198. It contains 81 lines of code and it has a cyclomatic complexity of 12. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateRestraints.OnPageChanged | def OnPageChanged(event):page = event.GetSelection()#G2frame.restrBook.SetSize(G2frame.dataWindow.GetClientSize())#TODO -almost righttext = G2frame.restrBook.GetPageText(page)G2frame.dataWindow.RestraintEdit.SetLabel(G2G.wxID_RESRCHANGEVAL,'Change target value')G2frame.dataWindow.RestraintEdit.Enable(G2G.wxID_USEMOGUL,... | 11 | 73 | 1 | 716 | 0 | 2,201 | 2,274 | 2,201 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRestraints.OnPageChanged) defined within the public class called public.The function start at line 2201 and ends at 2274. It contains 73 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 | UpdateRestraints.OnSelectPage | def OnSelectPage(event):'Called when an item is selected from the Select page menu'# lookup the menu item that called us and get its texttabname = TabSelectionIdDict.get(event.GetId())if not tabname:print ('Warning: menu item not in dict! id= %d'%event.GetId())return# find the matching tabfor PageNum in range(G2frame.r... | 4 | 12 | 1 | 78 | 0 | 2,289 | 2,302 | 2,289 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRestraints.OnSelectPage) defined within the public class called public.The function start at line 2289 and ends at 2302. It contains 12 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 | UpdateRestraints | def UpdateRestraints(G2frame,data,phaseName):'''Respond to selection of the Restraints item on thedata tree'''#global Pagesdef getMacroFile(macName):defDir = os.path.join(GSASIIpath.path2GSAS2,'inputs','GSASIImacros')if not os.path.exists(defDir): # patch 3/2024 for svn dir organizationdefDir = os.path.join(GSASIIpath.... | 30 | 172 | 3 | 1,412 | 208 | 70 | 2,461 | 70 | null | ['comp', 'chiralRestData', 'ramaRestData', 'XYZ', 'oDis', 'Value', 'esd', 'restobj', 'msg', 'page', 'macfile', 'Ids', 'hkl', 'Units', 'unit', 'ids', 'ChiralRestr', 'BsumR', 'Atms', 'txtC', 'terms', 'allType', 'phasedata', 'head', 'defDir', 'menu', 'torName', 'SGData', 'chemcompTable', 'Radii', 'Bonds', 'mul', 'rowLabl'... | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRestraints) defined within the public class called public.The function start at line 70 and ends at 2461. It contains 172 lines of code and it has a cyclomatic complexity of 30. It takes 3 parameters, represented as [70.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateRMC.OnRMCselect | def OnRMCselect(event):G2frame.RMCchoice = RMCsel.GetStringSelection()wx.CallLater(200,UpdateRMC,G2frame,data) | 1 | 3 | 1 | 26 | 0 | 82 | 84 | 82 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRMC.OnRMCselect) defined within the public class called public.The function start at line 82 and ends at 84. 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 | UpdateRMC.UpdateRMC.GetAtmChoice.OnAtSel | def OnAtSel(event):Obj = event.GetEventObject()itype = Indx[Obj.GetId()]tid = RMCPdict['atSeq'].index(Obj.GetStringSelection())if itype < nTypes:if itype == tid:tid += 1RMCPdict['atSeq'] = G2lat.SwapItems(RMCPdict['atSeq'],itype,tid)Pairs= []atSeq = RMCPdict['atSeq']lenA = len(atSeq)for pair in [[' %s-%s'%(atSeq[i],atS... | 12 | 20 | 1 | 242 | 0 | 89 | 109 | 89 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRMC.UpdateRMC.GetAtmChoice.OnAtSel) defined within the public class called public.The function start at line 89 and ends at 109. It contains 20 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 | UpdateRMC.UpdateRMC.GetAtmChoice.OnValSel | def OnValSel(event):Obj = event.GetEventObject()itype = Indx[Obj.GetId()]RMCPdict['Oxid'][itype][0] = Obj.GetStringSelection()wx.CallAfter(UpdateRMC,G2frame,data) | 1 | 5 | 1 | 48 | 0 | 111 | 115 | 111 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRMC.UpdateRMC.GetAtmChoice.OnValSel) defined within the public class called public.The function start at line 111 and ends at 115. 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 | UpdateRMC.GetAtmChoice | def GetAtmChoice(pnl,RMCPdict):Indx = {}def OnAtSel(event):Obj = event.GetEventObject()itype = Indx[Obj.GetId()]tid = RMCPdict['atSeq'].index(Obj.GetStringSelection())if itype < nTypes:if itype == tid:tid += 1RMCPdict['atSeq'] = G2lat.SwapItems(RMCPdict['atSeq'],itype,tid)Pairs= []atSeq = RMCPdict['atSeq']lenA = len(at... | 10 | 43 | 2 | 484 | 0 | 86 | 155 | 86 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRMC.GetAtmChoice) defined within the public class called public.The function start at line 86 and ends at 155. It contains 43 lines of code and it has a cyclomatic complexity of 10. It takes 2 parameters, represented as [86.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateRMC.UpdateRMC.GetSwapSizer.OnDelSwap | def OnDelSwap(event):Obj = event.GetEventObject()swap = Indx[Obj.GetId()]del RMCPdict['Swaps'][swap]wx.CallAfter(UpdateRMC,G2frame,data) | 1 | 5 | 1 | 40 | 0 | 159 | 163 | 159 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRMC.UpdateRMC.GetSwapSizer.OnDelSwap) defined within the public class called public.The function start at line 159 and ends at 163. 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 | UpdateRMC.GetSwapSizer | def GetSwapSizer(RMCPdict):def OnDelSwap(event):Obj = event.GetEventObject()swap = Indx[Obj.GetId()]del RMCPdict['Swaps'][swap]wx.CallAfter(UpdateRMC,G2frame,data)Indx = {}atChoice = RMCPdict['atSeq']# if G2frame.RMCchoice == 'fullrmc':# atChoice = atNamesswapSizer = wx.FlexGridSizer(6,5,5)swapLabels = [' ','Atom-A','A... | 5 | 21 | 1 | 251 | 0 | 157 | 185 | 157 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRMC.GetSwapSizer) defined within the public class called public.The function start at line 157 and ends at 185. It contains 21 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 | UpdateRMC.GetPairSizer | def GetPairSizer(pnl,RMCPdict):pairSizer = wx.FlexGridSizer(len(RMCPdict['Pairs'])+1,5,5)pairSizer.Add((5,5),0)for pair in RMCPdict['Pairs']:pairSizer.Add(wx.StaticText(pnl,label=pair),0,WACV)if G2frame.RMCchoice == 'RMCProfile':pairSizer.Add(wx.StaticText(pnl,label='%14s'%' Hard min: '),0,WACV)for pair in RMCPdict['Pa... | 7 | 19 | 2 | 319 | 0 | 187 | 205 | 187 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRMC.GetPairSizer) defined within the public class called public.The function start at line 187 and ends at 205. It contains 19 lines of code and it has a cyclomatic complexity of 7. It takes 2 parameters, represented as [187.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateRMC.GetMetaSizer | def GetMetaSizer(RMCPdict,metalist):metaSizer = wx.FlexGridSizer(0,2,5,5)for item in metalist:metaSizer.Add(wx.StaticText(G2frame.FRMC,label=' Metadata item: '+item+' '),0,WACV)metaSizer.Add(G2G.ValidatedTxtCtrl(G2frame.FRMC,RMCPdict['metadata'],item),0,WACV)return metaSizer | 2 | 6 | 2 | 77 | 0 | 207 | 212 | 207 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRMC.GetMetaSizer) defined within the public class called public.The function start at line 207 and ends at 212. It contains 6 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [207.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateRMC.SetRestart | def SetRestart(invalid,value,tc):RMCPdict['ReStart'] = [True,True] | 1 | 2 | 3 | 19 | 0 | 214 | 215 | 214 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRMC.SetRestart) defined within the public class called public.The function start at line 214 and ends at 215. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [214.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateRMC.GetSuperSizer | def GetSuperSizer(RMCPdict,Xmax): superSizer = wx.BoxSizer(wx.HORIZONTAL) axes = ['X','Y','Z'] for i,ax in enumerate(axes): superSizer.Add(wx.StaticText(G2frame.FRMC,label=' %s-axis: '%ax),0,WACV) superSizer.Add(G2G.ValidatedTxtCtrl(G2frame.FRMC,RMCPdict['SuperCell'], i,xmin=1,xmax=Xmax,size=(50,25),OnLeave=SetRestart)... | 2 | 8 | 2 | 105 | 0 | 217 | 224 | 217 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRMC.GetSuperSizer) defined within the public class called public.The function start at line 217 and ends at 224. It contains 8 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [217.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateRMC.UpdateRMC.FileSizer.OnFileSel | def OnFileSel(event):Obj = event.GetEventObject()fil = Indx[Obj.GetId()]G2frame.OnFileSave(event)dlg = wx.FileDialog(G2frame.FRMC, 'Choose '+fil,G2G.GetImportPath(G2frame),style=wx.FD_OPEN ,wildcard=fil+'(*.*)|*.*')if dlg.ShowModal() == wx.ID_OK:fpath,fName = os.path.split(dlg.GetPath())if os.path.exists(fName): # is t... | 8 | 35 | 1 | 317 | 0 | 228 | 265 | 228 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRMC.UpdateRMC.FileSizer.OnFileSel) defined within the public class called public.The function start at line 228 and ends at 265. It contains 35 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 | UpdateRMC.UpdateRMC.FileSizer.OnFileFormat | def OnFileFormat(event):Obj = event.GetEventObject()fil = Indx[Obj.GetId()]RMCPdict['files'][fil][3] = Obj.GetStringSelection() | 1 | 4 | 1 | 38 | 0 | 267 | 270 | 267 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRMC.UpdateRMC.FileSizer.OnFileFormat) defined within the public class called public.The function start at line 267 and ends at 270. 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 | UpdateRMC.UpdateRMC.FileSizer.OnPlotBtn | def OnPlotBtn(event):Obj = event.GetEventObject()fil = Indx[Obj.GetId()]fileItem = RMCPdict['files'][fil]start = 0XY = np.empty((1,2))while XY.shape[0] == 1:try:XY = np.loadtxt(fileItem[0],skiprows=start)except ValueError:start += 1if start > 500: #absurd number of header lines!wx.MessageBox('WARNING: %s has bad data a... | 5 | 21 | 1 | 163 | 0 | 272 | 292 | 272 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRMC.UpdateRMC.FileSizer.OnPlotBtn) defined within the public class called public.The function start at line 272 and ends at 292. It contains 21 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 | UpdateRMC.UpdateRMC.FileSizer.OnCorrChk | def OnCorrChk(event):Obj = event.GetEventObject()fil = Indx[Obj.GetId()]RMCPdict['files'][fil][3] = not RMCPdict['files'][fil][3] | 1 | 4 | 1 | 44 | 0 | 294 | 297 | 294 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRMC.UpdateRMC.FileSizer.OnCorrChk) defined within the public class called public.The function start at line 294 and ends at 297. 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 | UpdateRMC.UpdateRMC.FileSizer.OnDelBtn | def OnDelBtn(event):Obj = event.GetEventObject()fil = Indx[Obj.GetId()]RMCPdict['files'][fil][0] = 'Select'RMCPdict['ReStart'][0] = Truewx.CallAfter(UpdateRMC,G2frame,data) | 1 | 6 | 1 | 53 | 0 | 299 | 304 | 299 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRMC.UpdateRMC.FileSizer.OnDelBtn) defined within the public class called public.The function start at line 299 and ends at 304. 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 | UpdateRMC.UpdateRMC.FileSizer.OnRef | def OnRef(event):Obj = event.GetEventObject()name,item = Indx[Obj.GetId()]RMCPdict[name][item][1] = not RMCPdict[name][item][1] | 1 | 4 | 1 | 46 | 0 | 306 | 309 | 306 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRMC.UpdateRMC.FileSizer.OnRef) defined within the public class called public.The function start at line 306 and ends at 309. 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 | UpdateRMC.UpdateRMC.FileSizer.OnRefSel | def OnRefSel(event):RMCPdict['refinement'] = reftype.GetStringSelection()wx.CallLater(100,UpdateRMC,G2frame,data) | 1 | 3 | 1 | 27 | 0 | 311 | 313 | 311 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRMC.UpdateRMC.FileSizer.OnRefSel) defined within the public class called public.The function start at line 311 and ends at 313. 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 | UpdateRMC.UpdateRMC.FileSizer.OnDataSel | def OnDataSel(event):RMCPdict['SeqDataType'] = dataType.GetStringSelection() | 1 | 2 | 1 | 15 | 0 | 315 | 316 | 315 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRMC.UpdateRMC.FileSizer.OnDataSel) defined within the public class called public.The function start at line 315 and ends at 316. 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 | UpdateRMC.UpdateRMC.FileSizer.OnSeqCopy | def OnSeqCopy(event):RMCPdict['SeqCopy'] = not RMCPdict['SeqCopy'] | 1 | 2 | 1 | 15 | 0 | 318 | 319 | 318 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRMC.UpdateRMC.FileSizer.OnSeqCopy) defined within the public class called public.The function start at line 318 and ends at 319. 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 | UpdateRMC.UpdateRMC.FileSizer.OnSeqReverse | def OnSeqReverse(event):RMCPdict['SeqReverse'] = not RMCPdict['SeqReverse'] | 1 | 2 | 1 | 15 | 0 | 321 | 322 | 321 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRMC.UpdateRMC.FileSizer.OnSeqReverse) defined within the public class called public.The function start at line 321 and ends at 322. 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 | UpdateRMC.UpdateRMC.FileSizer.OnAddPDF | def OnAddPDF(event):''' Add PDF G(r)s while maintanining original sequence'''usedList = RMCPdict['seqfiles']PDFlist = [item[1:][0] for item in G2frame.GetFileList('PDF')]PDFdict = dict([item[1:] for item in G2frame.GetFileList('PDF')])PDFnames = [item for item in PDFdict if item not in [itm[0] for itm in usedList]]dlg ... | 9 | 19 | 1 | 221 | 0 | 420 | 440 | 420 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRMC.UpdateRMC.FileSizer.OnAddPDF) defined within the public class called public.The function start at line 420 and ends at 440. It contains 19 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 | UpdateRMC.UpdateRMC.FileSizer.OnDelPDF | def OnDelPDF(event):usedList = [item[0] for item in RMCPdict['seqfiles']]dlg = G2G.G2MultiChoiceDialog(G2frame.FRMC,'Delete PDF dataset','Select G(r) data to delete frpm seq. PDFfit',usedList)if dlg.ShowModal() == wx.ID_OK:PDFdel = dlg.GetSelections()PDFdel.reverse()for item in PDFdel:del RMCPdict['seqfiles'][item]dlg.... | 4 | 11 | 1 | 87 | 0 | 442 | 452 | 442 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRMC.UpdateRMC.FileSizer.OnDelPDF) defined within the public class called public.The function start at line 442 and ends at 452. 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 | UpdateRMC.UpdateRMC.FileSizer.OnSetColVal | def OnSetColVal(event):parms = {'Rmin':[0.01,5.0],'Rmax':[5.,30.],'dscale':[0.5,2.0],'qdamp':[0.0,0.5],'qbroad':[0.0,0.1],'Temp':300}c =event.GetCol()if c >= 0:if c in [3,5,7]:seqGrid.ClearSelection()seqGrid.SelectCol(c,True)if seqGrid.GetColLabelValue(c) != 'refine': returnchoice = ['Y - vary all','N - vary none',]dlg... | 15 | 34 | 1 | 438 | 0 | 454 | 487 | 454 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRMC.UpdateRMC.FileSizer.OnSetColVal) defined within the public class called public.The function start at line 454 and ends at 487. It contains 34 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 | UpdateRMC.UpdateRMC.FileSizer.OnSetVal | def OnSetVal(event):r,c= event.GetRow(),event.GetCol()if c >= 0:if c in [3,5,7]:varib = colLabels[c-1]RMCPdict['seqfiles'][r][1][varib][1] = bool(seqGrid.GetCellValue(r,c))elif c in [0,1,2,4,6,8]:parm = colLabels[c]if c in [2,4,6]:RMCPdict['seqfiles'][r][1][parm][0] = float(seqGrid.GetCellValue(r,c))elif c == 8:RMCPdic... | 6 | 14 | 1 | 194 | 0 | 489 | 502 | 489 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRMC.UpdateRMC.FileSizer.OnSetVal) defined within the public class called public.The function start at line 489 and ends at 502. It contains 14 lines of code and it has a cyclomatic complexity of 6. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateRMC.FileSizer | def FileSizer(RMCPdict):def OnFileSel(event):Obj = event.GetEventObject()fil = Indx[Obj.GetId()]G2frame.OnFileSave(event)dlg = wx.FileDialog(G2frame.FRMC, 'Choose '+fil,G2G.GetImportPath(G2frame),style=wx.FD_OPEN ,wildcard=fil+'(*.*)|*.*')if dlg.ShowModal() == wx.ID_OK:fpath,fName = os.path.split(dlg.GetPath())if os.pa... | 29 | 205 | 1 | 2,479 | 0 | 226 | 610 | 226 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRMC.FileSizer) defined within the public class called public.The function start at line 226 and ends at 610. It contains 205 lines of code and it has a cyclomatic complexity of 29. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateRMC.fullrmcSizer | def fullrmcSizer(RMCPdict):mainSizer = wx.BoxSizer(wx.VERTICAL)mainSizer.Add(wx.StaticText(G2frame.FRMC,label= | 1 | 3 | 1 | 29 | 0 | 612 | 614 | 612 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRMC.fullrmcSizer) defined within the public class called public.The function start at line 612 and ends at 614. 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 | UpdateRMC | def UpdateRMC(G2frame,data):''' Present the controls for running fullrmc, RMCProfile or PDFfit'''global runFiledef OnRMCselect(event):G2frame.RMCchoice = RMCsel.GetStringSelection()wx.CallLater(200,UpdateRMC,G2frame,data)def GetAtmChoice(pnl,RMCPdict):Indx = {}def OnAtSel(event):Obj = event.GetEventObject()itype = Indx... | 1 | 11 | 2 | 28 | 0 | 78 | 614 | 78 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateRMC) defined within the public class called public.The function start at line 78 and ends at 614. It contains 11 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [78.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | GetSuperSizer.ShowRmax | def ShowRmax(*args,**kwargs):cell = data['General']['Cell'][1:7]bigcell = np.array(cell)*np.array(RMCPdict['SuperCell']+[1,1,1])bigG = G2lat.cell2Gmat(bigcell)[0]rmax = min([0.5/np.sqrt(G2lat.calc_rDsq2(H,bigG)) for H in np.eye(3)])rmaxlbl.SetLabel('Rmax = {:.1f}'.format(rmax)) | 2 | 6 | 2 | 104 | 0 | 662 | 667 | 662 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (GetSuperSizer.ShowRmax) defined within the public class called public.The function start at line 662 and ends at 667. It contains 6 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [662.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | GetSuperSizer | def GetSuperSizer():def ShowRmax(*args,**kwargs):cell = data['General']['Cell'][1:7]bigcell = np.array(cell)*np.array(RMCPdict['SuperCell']+[1,1,1])bigG = G2lat.cell2Gmat(bigcell)[0]rmax = min([0.5/np.sqrt(G2lat.calc_rDsq2(H,bigG)) for H in np.eye(3)])rmaxlbl.SetLabel('Rmax = {:.1f}'.format(rmax))superSizer = wx.BoxSiz... | 2 | 12 | 0 | 131 | 0 | 661 | 677 | 661 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (GetSuperSizer) defined within the public class called public.The function start at line 661 and ends at 677. It contains 12 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | GetBoxSizer | def GetBoxSizer():boxSizer = wx.BoxSizer(wx.HORIZONTAL)axes = ['X','Y','Z']for i,ax in enumerate(axes):boxSizer.Add(wx.StaticText(G2frame.FRMC,label=' %s-axis: '%ax),0,WACV)boxSizer.Add(G2G.ValidatedTxtCtrl(G2frame.FRMC,RMCPdict['Box'],i,xmin=10.,xmax=50.,size=(50,25)),0,WACV)return boxSizer | 2 | 8 | 0 | 100 | 0 | 679 | 686 | 679 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (GetBoxSizer) defined within the public class called public.The function start at line 679 and ends at 686. 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 | OnReStart | def OnReStart(event):RMCPdict['ReStart'][0] = not RMCPdict['ReStart'][0] | 1 | 2 | 1 | 21 | 0 | 688 | 689 | 688 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (OnReStart) defined within the public class called public.The function start at line 688 and ends at 689. 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 | OnAddSwap | def OnAddSwap(event):RMCPdict['Swaps'].append(['','',0.0,])wx.CallAfter(UpdateRMC,G2frame,data) | 1 | 3 | 1 | 33 | 0 | 691 | 693 | 691 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (OnAddSwap) defined within the public class called public.The function start at line 691 and ends at 693. 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 | OnPdbButton | def OnPdbButton(event):dlg = wx.FileDialog(G2frame.FRMC, 'Choose molecule pdb file',G2frame.LastGPXdir,style=wx.FD_OPEN ,wildcard='PDB file(*.pdb)|*.pdb')if dlg.ShowModal() == wx.ID_OK:fpath,fName = os.path.split(dlg.GetPath())RMCPdict['moleculePdb'] = fNamepdbButton.SetLabel(fName) | 2 | 7 | 1 | 70 | 0 | 695 | 701 | 695 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (OnPdbButton) defined within the public class called public.The function start at line 695 and ends at 701. 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 | OnAddAngle | def OnAddAngle(event):RMCPdict['Angles'].append(['','','',0.,0.,0.,0.])wx.CallAfter(UpdateRMC,G2frame,data) | 1 | 3 | 1 | 42 | 0 | 703 | 705 | 703 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (OnAddAngle) defined within the public class called public.The function start at line 703 and ends at 705. 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 | GetAngleSizer.OnDelAngle | def OnDelAngle(event):Obj = event.GetEventObject()angle = Indx[Obj.GetId()]del RMCPdict['Angles'][angle]wx.CallAfter(UpdateRMC,G2frame,data) | 1 | 5 | 1 | 40 | 0 | 713 | 717 | 713 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (GetAngleSizer.OnDelAngle) defined within the public class called public.The function start at line 713 and ends at 717. 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 | GetAngleSizer.SetRestart1 | def SetRestart1(invalid,value,tc):RMCPdict['ReStart'][1] = True | 1 | 2 | 3 | 18 | 0 | 724 | 725 | 724 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (GetAngleSizer.SetRestart1) defined within the public class called public.The function start at line 724 and ends at 725. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [724.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | GetAngleSizer | def GetAngleSizer():def OnDelAngle(event):Obj = event.GetEventObject()angle = Indx[Obj.GetId()]del RMCPdict['Angles'][angle]wx.CallAfter(UpdateRMC,G2frame,data)# def OnAngleAtSel(event):# Obj = event.GetEventObject()# angle,i = Indx[Obj.GetId()]# RMCPdict['Angles'][angle][i] = Obj.GetStringSelection()def SetRestart1(in... | 13 | 41 | 0 | 419 | 0 | 711 | 764 | 711 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (GetAngleSizer) defined within the public class called public.The function start at line 711 and ends at 764. It contains 41 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 | OnAddGroup | def OnAddGroup(event):index = len(RMCPdict['Groups'])RMCPdict['Groups'].append([])GroupEditor(index) | 1 | 4 | 1 | 28 | 0 | 904 | 907 | 904 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (OnAddGroup) defined within the public class called public.The function start at line 904 and ends at 907. 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 | OnDelGroup | def OnDelGroup(event):index = event.EventObject.indexdel RMCPdict['Groups'][index]wx.CallAfter(UpdateRMC,G2frame,data) | 1 | 4 | 1 | 30 | 0 | 908 | 911 | 908 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (OnDelGroup) defined within the public class called public.The function start at line 908 and ends at 911. 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 | OnEdtGroup | def OnEdtGroup(event):index = event.EventObject.indexGroupEditor(index) | 1 | 3 | 1 | 16 | 0 | 912 | 914 | 912 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (OnEdtGroup) defined within the public class called public.The function start at line 912 and ends at 914. 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 | GroupEditor | def GroupEditor(index):cx,ct,cs,cia = data['General']['AtomPtrs']atomlbs = [a[ct-1] for a in data['Atoms']]dlg = G2G.G2MultiChoiceDialog(G2frame.FRMC,'Atom Selector','Select atoms to include in group',atomlbs,selected=RMCPdict['Groups'][index])if dlg.ShowModal() == wx.ID_OK:RMCPdict['Groups'][index] = dlg.GetSelections... | 4 | 11 | 1 | 124 | 0 | 915 | 925 | 915 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (GroupEditor) defined within the public class called public.The function start at line 915 and ends at 925. 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 | RMCProfileSizer.CheckAtms | def CheckAtms(Atypes):newAtm = Falsefor atm in Atypes:if atm not in data['RMC']['RMCProfile'].get('aTypes',{}):newAtm = Truebreakfor atm in data['RMC']['RMCProfile'].get('aTypes',{}):if atm not in Atypes:newAtm = Truebreakreturn newAtm | 5 | 11 | 1 | 68 | 0 | 1,002 | 1,012 | 1,002 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (RMCProfileSizer.CheckAtms) defined within the public class called public.The function start at line 1002 and ends at 1012. 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 | RMCProfileSizer.OnHisto | def OnHisto(event):RMCPdict['histogram'][0] = histo.GetStringSelection() | 1 | 2 | 1 | 18 | 0 | 1,082 | 1,083 | 1,082 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (RMCProfileSizer.OnHisto) defined within the public class called public.The function start at line 1082 and ends at 1083. 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 | RMCProfileSizer.OnSize | def OnSize(event):RMCPdict['UseSampBrd'][0] = samSize.GetValue() | 1 | 2 | 1 | 18 | 0 | 1,085 | 1,086 | 1,085 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (RMCProfileSizer.OnSize) defined within the public class called public.The function start at line 1085 and ends at 1086. 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 | RMCProfileSizer.OnStrain | def OnStrain(event):RMCPdict['UseSampBrd'][1] = strain.GetValue() | 1 | 2 | 1 | 18 | 0 | 1,088 | 1,089 | 1,088 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (RMCProfileSizer.OnStrain) defined within the public class called public.The function start at line 1088 and ends at 1089. 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 | RMCProfileSizer.OnFitScale | def OnFitScale(event):RMCPdict['FitScale'] = not RMCPdict['FitScale'] | 1 | 2 | 1 | 15 | 0 | 1,091 | 1,092 | 1,091 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (RMCProfileSizer.OnFitScale) defined within the public class called public.The function start at line 1091 and ends at 1092. 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 | RMCProfileSizer.SetRestart | def SetRestart(invalid,value,tc):RMCPdict['ReStart'] = [True,True] | 1 | 2 | 3 | 19 | 0 | 1,094 | 1,095 | 1,094 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (RMCProfileSizer.SetRestart) defined within the public class called public.The function start at line 1094 and ends at 1095. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [1094.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | RMCProfileSizer.OnUseBVS | def OnUseBVS(event):RMCPdict['useBVS'] = not RMCPdict['useBVS']wx.CallAfter(UpdateRMC,G2frame,data) | 1 | 3 | 1 | 25 | 0 | 1,097 | 1,099 | 1,097 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (RMCProfileSizer.OnUseBVS) defined within the public class called public.The function start at line 1097 and ends at 1099. 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 | RMCProfileSizer.OnAddSwap | def OnAddSwap(event):RMCPdict['Swaps'].append(['','',0.0,])wx.CallAfter(UpdateRMC,G2frame,data) | 1 | 3 | 1 | 33 | 0 | 1,101 | 1,103 | 1,101 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (RMCProfileSizer.OnAddSwap) defined within the public class called public.The function start at line 1101 and ends at 1103. 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 | RMCProfileSizer.OnAddFxCN | def OnAddFxCN(event):RMCPdict['FxCN'].append(['','',0.5,2.0,6,1.0,0.00001])wx.CallAfter(UpdateRMC,G2frame,data) | 1 | 3 | 1 | 46 | 0 | 1,105 | 1,107 | 1,105 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (RMCProfileSizer.OnAddFxCN) defined within the public class called public.The function start at line 1105 and ends at 1107. 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 | RMCProfileSizer.OnAddAveCN | def OnAddAveCN(event):RMCPdict['AveCN'].append(['','',0.5,2.0,6.,0.00001])wx.CallAfter(UpdateRMC,G2frame,data) | 1 | 3 | 1 | 43 | 0 | 1,109 | 1,111 | 1,109 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (RMCProfileSizer.OnAddAveCN) defined within the public class called public.The function start at line 1109 and ends at 1111. 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 | RMCProfileSizer.OnAddAnglePot | def OnAddAnglePot(event):RMCPdict['Potentials']['Angles'].append(['','','',0.,0.,0.,0.])wx.CallAfter(UpdateRMC,G2frame,data) | 1 | 3 | 1 | 45 | 0 | 1,113 | 1,115 | 1,113 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (RMCProfileSizer.OnAddAnglePot) defined within the public class called public.The function start at line 1113 and ends at 1115. 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 | RMCProfileSizer.OnAddBondPot | def OnAddBondPot(event):RMCPdict['Potentials']['Stretch'].append(['','',0.,0.])wx.CallAfter(UpdateRMC,G2frame,data) | 1 | 3 | 1 | 37 | 0 | 1,117 | 1,119 | 1,117 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (RMCProfileSizer.OnAddBondPot) 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 | RMCProfileSizer.RMCProfileSizer.GetTimeSizer.OnUseGPU | def OnUseGPU(event):RMCPdict['useGPU'] = not RMCPdict['useGPU'] | 1 | 2 | 1 | 15 | 0 | 1,123 | 1,124 | 1,123 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (RMCProfileSizer.RMCProfileSizer.GetTimeSizer.OnUseGPU) defined within the public class called public.The function start at line 1123 and ends at 1124. 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 | RMCProfileSizer.GetTimeSizer | def GetTimeSizer():def OnUseGPU(event):RMCPdict['useGPU'] = not RMCPdict['useGPU']timeSizer = wx.BoxSizer(wx.HORIZONTAL)timeSizer.Add(wx.StaticText(G2frame.FRMC,label=' Total running time (min): '),0,WACV)timeSizer.Add(G2G.ValidatedTxtCtrl(G2frame.FRMC,RMCPdict['runTimes'],0,xmin=0.,size=(70,25)),0,WACV)timeSizer.Add(w... | 1 | 12 | 0 | 183 | 0 | 1,121 | 1,135 | 1,121 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (RMCProfileSizer.GetTimeSizer) defined within the public class called public.The function start at line 1121 and ends at 1135. It contains 12 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | RMCProfileSizer.RMCProfileSizer.GetBvsSizer.OnResetBVS | def OnResetBVS(event):Obj = event.GetEventObject()pair = Indx[Obj.GetId()]pId = [key for key in RMCPdict['BVS']].index(pair)+1nId = len(RMCPdict['BVS'])+1dist = G2elem.GetBVS(pair,RMCPdict['atSeq'],RMCPdict['Oxid'])if dist:RMCPdict['BVS'][pair] = [dist,0.37,3.0]bvsCh = bvsSizer.GetChildren()addr = 2*nId+pIdbvsCh[addr].... | 3 | 13 | 1 | 147 | 0 | 1,148 | 1,160 | 1,148 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (RMCProfileSizer.RMCProfileSizer.GetBvsSizer.OnResetBVS) defined within the public class called public.The function start at line 1148 and ends at 1160. It contains 13 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | RMCProfileSizer.GetBvsSizer | def GetBvsSizer(pnl):def OnResetBVS(event):Obj = event.GetEventObject()pair = Indx[Obj.GetId()]pId = [key for key in RMCPdict['BVS']].index(pair)+1nId = len(RMCPdict['BVS'])+1dist = G2elem.GetBVS(pair,RMCPdict['atSeq'],RMCPdict['Oxid'])if dist:RMCPdict['BVS'][pair] = [dist,0.37,3.0]bvsCh = bvsSizer.GetChildren()addr = ... | 6 | 22 | 1 | 347 | 0 | 1,146 | 1,181 | 1,146 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (RMCProfileSizer.GetBvsSizer) defined within the public class called public.The function start at line 1146 and ends at 1181. It contains 22 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 | RMCProfileSizer.RMCProfileSizer.GetFxcnSizer.OnDelFxCN | def OnDelFxCN(event):Obj = event.GetEventObject()fxCN = Indx[Obj.GetId()]del RMCPdict['FxCN'][fxCN]wx.CallAfter(UpdateRMC,G2frame,data) | 1 | 5 | 1 | 40 | 0 | 1,185 | 1,189 | 1,185 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (RMCProfileSizer.RMCProfileSizer.GetFxcnSizer.OnDelFxCN) defined within the public class called public.The function start at line 1185 and ends at 1189. 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 | RMCProfileSizer.RMCProfileSizer.GetFxcnSizer.OnFxcnAtSel | def OnFxcnAtSel(event):Obj = event.GetEventObject()ifxCN,i = Indx[Obj.GetId()]RMCPdict['FxCN'][ifxCN][i] = Obj.GetStringSelection() | 1 | 4 | 1 | 40 | 0 | 1,191 | 1,194 | 1,191 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (RMCProfileSizer.RMCProfileSizer.GetFxcnSizer.OnFxcnAtSel) defined within the public class called public.The function start at line 1191 and ends at 1194. 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 | RMCProfileSizer.GetFxcnSizer | def GetFxcnSizer():def OnDelFxCN(event):Obj = event.GetEventObject()fxCN = Indx[Obj.GetId()]del RMCPdict['FxCN'][fxCN]wx.CallAfter(UpdateRMC,G2frame,data)def OnFxcnAtSel(event):Obj = event.GetEventObject()ifxCN,i = Indx[Obj.GetId()]RMCPdict['FxCN'][ifxCN][i] = Obj.GetStringSelection()fxcnSizer = wx.FlexGridSizer(8,5,5)... | 6 | 25 | 0 | 405 | 0 | 1,183 | 1,217 | 1,183 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (RMCProfileSizer.GetFxcnSizer) defined within the public class called public.The function start at line 1183 and ends at 1217. 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 | RMCProfileSizer.RMCProfileSizer.GetAvcnSizer.OnDelAvCN | def OnDelAvCN(event):Obj = event.GetEventObject()fxCN = Indx[Obj.GetId()]del RMCPdict['AveCN'][fxCN]wx.CallAfter(UpdateRMC,G2frame,data) | 1 | 5 | 1 | 40 | 0 | 1,221 | 1,225 | 1,221 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (RMCProfileSizer.RMCProfileSizer.GetAvcnSizer.OnDelAvCN) defined within the public class called public.The function start at line 1221 and ends at 1225. 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 | RMCProfileSizer.RMCProfileSizer.GetAvcnSizer.OnAvcnAtSel | def OnAvcnAtSel(event):Obj = event.GetEventObject()ifxCN,i = Indx[Obj.GetId()]RMCPdict['AveCN'][ifxCN][i] = Obj.GetStringSelection() | 1 | 4 | 1 | 40 | 0 | 1,227 | 1,230 | 1,227 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (RMCProfileSizer.RMCProfileSizer.GetAvcnSizer.OnAvcnAtSel) defined within the public class called public.The function start at line 1227 and ends at 1230. 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 | RMCProfileSizer.GetAvcnSizer | def GetAvcnSizer():def OnDelAvCN(event):Obj = event.GetEventObject()fxCN = Indx[Obj.GetId()]del RMCPdict['AveCN'][fxCN]wx.CallAfter(UpdateRMC,G2frame,data)def OnAvcnAtSel(event):Obj = event.GetEventObject()ifxCN,i = Indx[Obj.GetId()]RMCPdict['AveCN'][ifxCN][i] = Obj.GetStringSelection()avcnSizer = wx.FlexGridSizer(7,5,... | 6 | 24 | 0 | 366 | 0 | 1,219 | 1,252 | 1,219 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (RMCProfileSizer.GetAvcnSizer) defined within the public class called public.The function start at line 1219 and ends at 1252. It contains 24 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 | RMCProfileSizer.RMCProfileSizer.GetAngleSizer.OnDelAngle | def OnDelAngle(event):Obj = event.GetEventObject()angle = Indx[Obj.GetId()]del RMCPdict['Potentials']['Angles'][angle]wx.CallAfter(UpdateRMC,G2frame,data) | 1 | 5 | 1 | 43 | 0 | 1,256 | 1,260 | 1,256 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (RMCProfileSizer.RMCProfileSizer.GetAngleSizer.OnDelAngle) defined within the public class called public.The function start at line 1256 and ends at 1260. 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 | RMCProfileSizer.RMCProfileSizer.GetAngleSizer.OnAngleAtSel | def OnAngleAtSel(event):Obj = event.GetEventObject()angle,i = Indx[Obj.GetId()]RMCPdict['Potentials']['Angles'][angle][i] = Obj.GetStringSelection() | 1 | 4 | 1 | 43 | 0 | 1,262 | 1,265 | 1,262 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (RMCProfileSizer.RMCProfileSizer.GetAngleSizer.OnAngleAtSel) defined within the public class called public.The function start at line 1262 and ends at 1265. 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 | RMCProfileSizer.RMCProfileSizer.GetAngleSizer.SetRestart1 | def SetRestart1(invalid,value,tc):RMCPdict['ReStart'][1] = True | 1 | 2 | 3 | 18 | 0 | 1,267 | 1,268 | 1,267 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (RMCProfileSizer.RMCProfileSizer.GetAngleSizer.SetRestart1) defined within the public class called public.The function start at line 1267 and ends at 1268. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [1267.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | RMCProfileSizer.GetAngleSizer | def GetAngleSizer():def OnDelAngle(event):Obj = event.GetEventObject()angle = Indx[Obj.GetId()]del RMCPdict['Potentials']['Angles'][angle]wx.CallAfter(UpdateRMC,G2frame,data)def OnAngleAtSel(event):Obj = event.GetEventObject()angle,i = Indx[Obj.GetId()]RMCPdict['Potentials']['Angles'][angle][i] = Obj.GetStringSelection... | 6 | 25 | 0 | 393 | 0 | 1,254 | 1,290 | 1,254 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (RMCProfileSizer.GetAngleSizer) defined within the public class called public.The function start at line 1254 and ends at 1290. 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 | RMCProfileSizer.RMCProfileSizer.GetBondSizer.OnDelBond | def OnDelBond(event):Obj = event.GetEventObject()bond = Indx[Obj.GetId()]del RMCPdict['Potentials']['Stretch'][bond]wx.CallAfter(UpdateRMC,G2frame,data) | 1 | 5 | 1 | 43 | 0 | 1,294 | 1,298 | 1,294 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (RMCProfileSizer.RMCProfileSizer.GetBondSizer.OnDelBond) defined within the public class called public.The function start at line 1294 and ends at 1298. 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 | RMCProfileSizer.RMCProfileSizer.GetBondSizer.OnBondAtSel | def OnBondAtSel(event):Obj = event.GetEventObject()bond,i = Indx[Obj.GetId()]RMCPdict['Potentials']['Stretch'][bond][i] = Obj.GetStringSelection() | 1 | 4 | 1 | 43 | 0 | 1,300 | 1,303 | 1,300 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (RMCProfileSizer.RMCProfileSizer.GetBondSizer.OnBondAtSel) defined within the public class called public.The function start at line 1300 and ends at 1303. 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 | RMCProfileSizer.RMCProfileSizer.GetBondSizer.SetRestart1 | def SetRestart1(invalid,value,tc):RMCPdict['ReStart'][1] = True | 1 | 2 | 3 | 18 | 0 | 1,305 | 1,306 | 1,305 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (RMCProfileSizer.RMCProfileSizer.GetBondSizer.SetRestart1) defined within the public class called public.The function start at line 1305 and ends at 1306. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [1305.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | RMCProfileSizer.GetBondSizer | def GetBondSizer():def OnDelBond(event):Obj = event.GetEventObject()bond = Indx[Obj.GetId()]del RMCPdict['Potentials']['Stretch'][bond]wx.CallAfter(UpdateRMC,G2frame,data)def OnBondAtSel(event):Obj = event.GetEventObject()bond,i = Indx[Obj.GetId()]RMCPdict['Potentials']['Stretch'][bond][i] = Obj.GetStringSelection()def... | 6 | 23 | 0 | 293 | 0 | 1,292 | 1,326 | 1,292 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (RMCProfileSizer.GetBondSizer) defined within the public class called public.The function start at line 1292 and ends at 1326. It contains 23 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 | RMCProfileSizer | def RMCProfileSizer(RMCPdict):def CheckAtms(Atypes):newAtm = Falsefor atm in Atypes:if atm not in data['RMC']['RMCProfile'].get('aTypes',{}):newAtm = Truebreakfor atm in data['RMC']['RMCProfile'].get('aTypes',{}):if atm not in Atypes:newAtm = Truebreakreturn newAtmmainSizer = wx.BoxSizer(wx.VERTICAL)subSizer = wx.BoxSi... | 29 | 184 | 1 | 2,296 | 0 | 1,000 | 1,451 | 1,000 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (RMCProfileSizer) defined within the public class called public.The function start at line 1000 and ends at 1451. It contains 184 lines of code and it has a cyclomatic complexity of 29. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | PDFfitSizer.PDFfitSizer.PDFParmSizer.OnShape | def OnShape(event):RMCPdict['shape'] = shape.GetValue()wx.CallAfter(UpdateRMC,G2frame,data) | 1 | 3 | 1 | 25 | 0 | 1,459 | 1,461 | 1,459 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (PDFfitSizer.PDFfitSizer.PDFParmSizer.OnShape) defined within the public class called public.The function start at line 1459 and ends at 1461. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.