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 | InitParameters | def InitParameters(self):'initialize the instrument parameters structure'self.Comments = ['No comments']self.Data = {'samplechangerpos':0.0,'det2theta':0.0,'Gain map':''}self.Npix = 0self.Image = Noneself.repeat = Falseself.repeatcount = 1self.sumfile = '' | 1 | 9 | 1 | 59 | 0 | 1,598 | 1,606 | 1,598 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (InitParameters) defined within the public class called public.The function start at line 1598 and ends at 1606. It contains 9 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | LoadImage | def LoadImage(self,ParentFrame,imagefile,imagetag=None):'''Optionally, call this after reading in an image to load it into the tree.This saves time by preventing a reread of the same information.'''if ParentFrame:ParentFrame.ImageZ = self.Image # store the image for plottingParentFrame.oldImagefile = imagefile # save t... | 2 | 5 | 4 | 34 | 0 | 1,608 | 1,615 | 1,608 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (LoadImage) defined within the public class called public.The function start at line 1608 and ends at 1615. It contains 5 lines of code and it has a cyclomatic complexity of 2. It takes 4 parameters, represented as [1608.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | FindFunction | def FindFunction(f):'''Find the object corresponding to function f:param str f: a function name such as 'numpy.exp':returns: (pkgdict,pkgobj) where pkgdict contains a dictthat defines the package location(s) and where pkgobjdefines the object associated with the function.If the function is not found, pkgobj is None.'''... | 7 | 31 | 1 | 206 | 4 | 1,626 | 1,675 | 1,626 | null | ['pkgdict', 'df', 'pkgnam', 'fxnobj'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (FindFunction) defined within the public class called public.The function start at line 1626 and ends at 1675. It contains 31 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 | __init__ | def __init__(self):self.expression = '''The expression as a text string'self.assgnVars = {}'''A dict where keys are label names in the expression mapping to a GSAS-IIvariable. The value a G2 variable name.Note that the G2 variable name may contain a wild-card and correspond tomultiple values.'''self.freeVars = {}'''A d... | 1 | 9 | 1 | 50 | 0 | 1,684 | 1,708 | 1,684 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 1684 and ends at 1708. It contains 9 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | LoadExpression | def LoadExpression(self,expr,exprVarLst,varSelect,varName,varValue,varRefflag):'''Load the expression and associated settings into the object. Raisesan exception if the expression is not parsed, if not all functionsare defined or if not all needed parameter labels in the expressionare defined.This will not test if the ... | 3 | 15 | 7 | 101 | 0 | 1,710 | 1,742 | 1,710 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (LoadExpression) defined within the public class called public.The function start at line 1710 and ends at 1742. It contains 15 lines of code and it has a cyclomatic complexity of 3. It takes 7 parameters, represented as [1710.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | EditExpression | def EditExpression(self,exprVarLst,varSelect,varName,varValue,varRefflag):'''Load the expression and associated settings from the object intoarrays used for editing.:param list exprVarLst: parameter labels found in the expression:param dict varSelect: this will be 0 for Free parametersand non-zero for expression labels... | 3 | 10 | 6 | 99 | 0 | 1,744 | 1,766 | 1,744 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (EditExpression) defined within the public class called public.The function start at line 1744 and ends at 1766. It contains 10 lines of code and it has a cyclomatic complexity of 3. It takes 6 parameters, represented as [1744.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | GetVaried | def GetVaried(self):'Returns the names of the free parameters that will be refined'return ["::"+self.freeVars[v][0] for v in self.freeVars if self.freeVars[v][2]] | 3 | 3 | 1 | 36 | 0 | 1,768 | 1,770 | 1,768 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (GetVaried) defined within the public class called public.The function start at line 1768 and ends at 1770. It contains 3 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 | GetVariedVarVal | def GetVariedVarVal(self):'Returns the names and values of the free parameters that will be refined'return [("::"+self.freeVars[v][0],self.freeVars[v][1]) for v in self.freeVars if self.freeVars[v][2]] | 3 | 3 | 1 | 48 | 0 | 1,772 | 1,774 | 1,772 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (GetVariedVarVal) defined within the public class called public.The function start at line 1772 and ends at 1774. It contains 3 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 | UpdateVariedVars | def UpdateVariedVars(self,varyList,values):'Updates values for the free parameters (after a refinement); only updates refined vars'for v in self.freeVars:if not self.freeVars[v][2]: continueif "::"+self.freeVars[v][0] not in varyList: continueindx = list(varyList).index("::"+self.freeVars[v][0])self.freeVars[v][1] = va... | 4 | 7 | 3 | 82 | 0 | 1,776 | 1,782 | 1,776 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateVariedVars) defined within the public class called public.The function start at line 1776 and ends at 1782. It contains 7 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [1776.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | GetIndependentVars | def GetIndependentVars(self):'Returns the names of the required independent parameters used in expression'return [self.assgnVars[v] for v in self.assgnVars] | 2 | 3 | 1 | 21 | 0 | 1,784 | 1,786 | 1,784 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (GetIndependentVars) defined within the public class called public.The function start at line 1784 and ends at 1786. It contains 3 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 | CheckVars | def CheckVars(self):'''Check that the expression can be parsed, all functions aredefined and that input loaded into the object is internallyconsistent. If not an Exception is raised.:returns: a dict with references to packages needed tofind functions referenced in the expression.'''ret = self.ParseExpression(self.expre... | 7 | 20 | 1 | 118 | 0 | 1,788 | 1,815 | 1,788 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (CheckVars) defined within the public class called public.The function start at line 1788 and ends at 1815. 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 value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | ParseExpression.ASTtransverse | def ASTtransverse(node,fxn=False):'''Transverse a AST-parsed expresson, compiling a list of variablesreferenced in the expression. This routine is used recursively.:returns: varlist,fxnlist wherevarlist is a list of referenced variable names andfxnlist is a list of used functions'''varlist = []fxnlist = []if isinstance... | 11 | 26 | 2 | 177 | 0 | 1,832 | 1,864 | 1,832 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (ParseExpression.ASTtransverse) defined within the public class called public.The function start at line 1832 and ends at 1864. It contains 26 lines of code and it has a cyclomatic complexity of 11. It takes 2 parameters, represented as [1832.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | ParseExpression | def ParseExpression(self,expr):'''Parse an expression and return a dict of called functions andthe variables used in the expression. Returns None in case an erroris encountered. If packages are referenced in functions, they are loadedand the functions are looked up into the modules globalworkspace.Note that no changes ... | 7 | 30 | 2 | 174 | 0 | 1,817 | 1,892 | 1,817 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (ParseExpression) defined within the public class called public.The function start at line 1817 and ends at 1892. It contains 30 lines of code and it has a cyclomatic complexity of 7. It takes 2 parameters, represented as [1817.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | GetDepVar | def GetDepVar(self):'return the dependent variable, or None'return self.depVar | 1 | 3 | 1 | 10 | 0 | 1,894 | 1,896 | 1,894 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (GetDepVar) defined within the public class called public.The function start at line 1894 and ends at 1896. 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 | SetDepVar | def SetDepVar(self,var):'Set the dependent variable, if used'self.depVar = var | 1 | 3 | 2 | 13 | 0 | 1,898 | 1,900 | 1,898 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (SetDepVar) defined within the public class called public.The function start at line 1898 and ends at 1900. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [1898.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | __init__ | def __init__(self,exprObj):self.eObj = exprObj'The expression and mappings; a :class:`ExpressionObj` object'self.compiledExpr = None'The expression as compiled byte-code'self.exprDict = {}'''dict that defines values for labels used in expression and packagesreferenced by functions'''self.lblLookup = {}'''Lookup table t... | 3 | 14 | 2 | 105 | 0 | 1,909 | 1,940 | 1,909 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 1909 and ends at 1940. It contains 14 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [1909.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | SetupCalc | def SetupCalc(self,parmDict):'''Do all preparations to use the expression for computation.Adds the free parameter values to the parameter dict (parmDict).'''if self.eObj.expression.startswith('Dist') or self.eObj.expression.startswith('Angle'):returnself.fxnpkgdict = self.eObj.CheckVars()# all is OK, compile the expres... | 18 | 55 | 2 | 480 | 0 | 1,942 | 2,005 | 1,942 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (SetupCalc) defined within the public class called public.The function start at line 1942 and ends at 2005. It contains 55 lines of code and it has a cyclomatic complexity of 18. It takes 2 parameters, represented as [1942.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateVars | def UpdateVars(self,varList,valList):'''Update the dict for the expression with a set of values:param list varList: a list of variable names:param list valList: a list of corresponding values'''for var,val in zip(varList,valList):self.exprDict[self.lblLookup.get(var,'undefined: '+var)] = val | 2 | 3 | 3 | 41 | 0 | 2,007 | 2,013 | 2,007 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateVars) defined within the public class called public.The function start at line 2007 and ends at 2013. It contains 3 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [2007.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | UpdateDict | def UpdateDict(self,parmDict):'''Update the dict for the expression with values in a dict:param dict parmDict: a dict of values, items not in use are ignored'''if self.eObj.expression.startswith('Dist') or self.eObj.expression.startswith('Angle'):self.parmDict = parmDictreturnfor var in parmDict:if var in self.lblLooku... | 5 | 7 | 2 | 65 | 0 | 2,015 | 2,024 | 2,015 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (UpdateDict) defined within the public class called public.The function start at line 2015 and ends at 2024. It contains 7 lines of code and it has a cyclomatic complexity of 5. It takes 2 parameters, represented as [2015.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | EvalExpression | def EvalExpression(self):'''Evaluate an expression. Note that the expressionand mapping are taken from the :class:`ExpressionObj` expression objectand the parameter values were specified in :meth:`SetupCalc`.:returns: a single value for the expression. If parametervalues are arrays (for example, from wild-carded variab... | 7 | 19 | 1 | 144 | 0 | 2,026 | 2,059 | 2,026 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (EvalExpression) defined within the public class called public.The function start at line 2026 and ends at 2059. It contains 19 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 | makeAngleObj | def makeAngleObj(Phase,Oatom,Tatoms):General = Phase['General']cx,ct = General['AtomPtrs'][:2]pId = Phase['pId']SGData = General['SGData']Atoms = Phase['Atoms']aNames = [atom[ct-1] for atom in Atoms]tIds = []symNos = []cellNos = []oId = aNames.index(Oatom)for Tatom in Tatoms.split(';'):sB = Tatom.find('(')+1symNo = 0if... | 5 | 30 | 3 | 254 | 16 | 2,061 | 2,091 | 2,061 | null | ['cF', 'tIds', 'pId', 'obj', 'cellNo', 'symNo', 'Atoms', 'cellNos', 'aNames', 'symNos', 'cB', 'General', 'oId', 'sB', 'SGData', 'sF'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (makeAngleObj) defined within the public class called public.The function start at line 2061 and ends at 2091. It contains 30 lines of code and it has a cyclomatic complexity of 5. It takes 3 parameters, represented as [2061.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | __init__ | def __init__(self,msg):self.msg = msg | 1 | 2 | 2 | 12 | 0 | 2,095 | 2,096 | 2,095 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 2095 and ends at 2096. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [2095.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | __str__ | def __str__(self):return repr(self.msg) | 1 | 2 | 1 | 12 | 0 | 2,097 | 2,098 | 2,097 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__str__) defined within the public class called public.The function start at line 2097 and ends at 2098. 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 | __init__ | def __init__(self,msg):self.msg = msg | 1 | 2 | 2 | 12 | 0 | 2,102 | 2,103 | 2,095 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 2102 and ends at 2103. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [2095.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | __str__ | def __str__(self):return repr(self.msg) | 1 | 2 | 1 | 12 | 0 | 2,104 | 2,105 | 2,097 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__str__) defined within the public class called public.The function start at line 2104 and ends at 2105. 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 | HowDidIgetHere | def HowDidIgetHere(wherecalledonly=False):'''Show a traceback with calls that brought us to the current location.Used for debugging.:param bool wherecalledonly: When True, the entire calling stack isshown. When False (default), only the 2nd to last stack entry (theroutine that called the calling routine is shown.'''imp... | 3 | 9 | 1 | 91 | 1 | 2,107 | 2,122 | 2,107 | null | ['i'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (HowDidIgetHere) defined within the public class called public.The function start at line 2107 and ends at 2122. 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 | CreatePDFitems | def CreatePDFitems(G2frame,PWDRtree,ElList,Qlimits,numAtm=1,FltBkg=0,PDFnames=[]):'''Create and initialize a new set of PDF tree entries:param Frame G2frame: main GSAS-II tree frame object:param str PWDRtree: name of PWDR to be used to create PDF item:param dict ElList: data structure with composition:param list Qlimit... | 2 | 20 | 7 | 361 | 3 | 2,125 | 2,158 | 2,125 | null | ['Id', 'PDFname', 'Data'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (CreatePDFitems) defined within the public class called public.The function start at line 2125 and ends at 2158. It contains 20 lines of code and it has a cyclomatic complexity of 2. It takes 7 parameters, represented as [2125.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | __init__ | def __init__(self):self.timeSum =[]self.timeStart = []self.label = []self.prev = None | 1 | 5 | 1 | 28 | 0 | 2,180 | 2,184 | 2,180 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 2180 and ends at 2184. 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 | start | def start(self,label):import timeif label in self.label:i = self.label.index(label)self.timeStart[i] = time.time()else:i = len(self.label)self.timeSum.append(0.0)self.timeStart.append(time.time())self.label.append(label)if self.prev is not None:self.timeSum[self.prev] += self.timeStart[i] - self.timeStart[self.prev]sel... | 3 | 13 | 2 | 115 | 0 | 2,185 | 2,197 | 2,185 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (start) defined within the public class called public.The function start at line 2185 and ends at 2197. It contains 13 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [2185.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | end | def end(self):import timeif self.prev is not None:self.timeSum[self.prev] += time.time() - self.timeStart[self.prev]self.prev = None | 2 | 5 | 1 | 43 | 0 | 2,198 | 2,202 | 2,198 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (end) defined within the public class called public.The function start at line 2198 and ends at 2202. 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 | show | def show(self):sumT = sum(self.timeSum)print('Timing results (total={:.2f} sec)'.format(sumT))for i,(lbl,val) in enumerate(zip(self.label,self.timeSum)):print('{} {:20} {:8.2f} ms {:5.2f}%'.format(i,lbl,1000.*val,100*val/sumT)) | 2 | 5 | 1 | 67 | 0 | 2,203 | 2,207 | 2,203 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (show) defined within the public class called public.The function start at line 2203 and ends at 2207. 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 | validateAtomDrawType | def validateAtomDrawType(typ,generalData={}):'''Confirm that the selected Atom drawing type is valid for the currentphase. If not, use 'vdW balls'. This is currently used only for setting adefault when atoms are added to the atoms draw list.'''if typ in ('lines','vdW balls','sticks','balls & sticks','ellipsoids'):retur... | 2 | 4 | 2 | 30 | 0 | 2,209 | 2,219 | 2,209 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (validateAtomDrawType) defined within the public class called public.The function start at line 2209 and ends at 2219. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [2209.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | patchControls | def patchControls(Controls):'''patch routine to convert variable names used in parameter limitsto G2VarObj objects(See :ref:`Parameter Limits<ParameterLimits>` description.)'''from . import GSASIIfiles as G2fil#patch (added Oct 2020) convert variable names for parm limits to G2VarObjfor d in 'parmMaxDict','parmMinDict'... | 13 | 20 | 1 | 178 | 1 | 2,221 | 2,245 | 2,221 | null | ['conv'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (patchControls) defined within the public class called public.The function start at line 2221 and ends at 2245. It contains 20 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 | showEQ | def showEQ(calcobj):print (50*'=')print (calcobj.eObj.expression+'='+calcobj.EvalExpression())for v in sorted(calcobj.varLookup):print (""+v+'='+calcobj.exprDict[v]+'='+calcobj.varLookup[v]) | 2 | 5 | 1 | 61 | 0 | 2,256 | 2,260 | 2,256 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (showEQ) defined within the public class called public.The function start at line 2256 and ends at 2260. 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 | GetConfigValue | def GetConfigValue(key,default=None,getDefault=False):'''Return the configuration file value for key or a default valueif not specified.:param str key: a value to be found in the configuration settings:param any default: a value to be supplied if a value for key isnot specified in the config file or the config file is ... | 4 | 9 | 3 | 50 | 1 | 38 | 58 | 38 | null | ['default'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (GetConfigValue) defined within the public class called public.The function start at line 38 and ends at 58. It contains 9 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [38.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | SetConfigValue | def SetConfigValue(parmdict):'''Set configuration variables. Note that parmdict is a dictionaryfrom :func:`GSASIIctrlGUI.GetConfigValsDocs` where each element is alist. The first item in list is the default value, the second isthe value to use for that configuration variable. Most of theinformation gathered in GetConfi... | 7 | 12 | 1 | 99 | 0 | 60 | 77 | 60 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (SetConfigValue) defined within the public class called public.The function start at line 60 and ends at 77. It contains 12 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 | AddConfigValue | def AddConfigValue(valsdict):'''Set configuration variables. :param dict valsdict: a dictionary of values that are addeddirectly to configDict.'''global configDictconfigDict.update(valsdict) | 1 | 3 | 1 | 14 | 0 | 79 | 86 | 79 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (AddConfigValue) defined within the public class called public.The function start at line 79 and ends at 86. 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 | GetConfigDefault | def GetConfigDefault(key):'''Return the default value for a config value:param str key: a value to be found in the configuration (config_example.py) file:returns: the default value or None'''try:from . import config_exampleexcept:return Nonereturn config_example.__dict__.get(key) | 2 | 6 | 1 | 25 | 0 | 88 | 98 | 88 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (GetConfigDefault) defined within the public class called public.The function start at line 88 and ends at 98. It contains 6 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | addPrevGPX | def addPrevGPX(fil,cDict):'''Add a GPX file to the list of previous files.Move previous names to start of list. Keep most recent five files'''global configDictfil = os.path.abspath(os.path.expanduser(fil))if 'previous_GPX_files' not in cDict:cDict['previous_GPX_files'] = [[],[],[],'Previous .gpx files'] # unexpectedtry... | 5 | 17 | 2 | 146 | 3 | 100 | 119 | 100 | null | ['fil', 'pos', 'files'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (addPrevGPX) defined within the public class called public.The function start at line 100 and ends at 119. It contains 17 lines of code and it has a cyclomatic complexity of 5. It takes 2 parameters, represented as [100.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | LoadConfigFile | def LoadConfigFile(filename):'''Read a GSAS-II configuration file.Comments (starting with "%") are removed, as are empty lines:param str filename: base file name (such as 'file.dat'). Files with this nameare located from the path and the contents of each are concatenated.:returns: a list containing each non-empty (afte... | 7 | 19 | 1 | 131 | 5 | 121 | 147 | 121 | null | ['fil', 'fp', 'i', 'info', 'expr'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (LoadConfigFile) defined within the public class called public.The function start at line 121 and ends at 147. It contains 19 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 | GetBinaryPrefix | def GetBinaryPrefix(pyver=None):'''Creates the first part of the binary directory namesuch as linux_64_p3.9 (where the full name will belinux_64_p3.9_n1.21).Note that any change made here is also needed in GetBinaryDir infsource/SConstruct or GSASII-buildtools/compile/nameTar.py'''if sys.platform == "win32":prefix = 'w... | 11 | 25 | 1 | 169 | 3 | 149 | 183 | 149 | null | ['prefix', 'bits', 'pyver'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (GetBinaryPrefix) defined within the public class called public.The function start at line 149 and ends at 183. It contains 25 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 | HowIsG2Installed | def HowIsG2Installed():'''Determines if GSAS-II was installed with git.Result is cached to avoid time needed for multiple calls of this.:returns:* a string starting with 'git' from git,if installed from the GSAS-II GitHub repository (defined in g2URL),the string is 'github', if the post-3/2024 directory structure isin ... | 6 | 20 | 0 | 104 | 3 | 188 | 217 | 188 | null | ['g2repo', 'G2_installed_result', 'rev'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (HowIsG2Installed) defined within the public class called public.The function start at line 188 and ends at 217. It contains 20 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 | getSavedVersionInfo | def getSavedVersionInfo():'''Get version number information from a file written by installroutines. This is faster than getting the information from git. Also,when GSAS-II is installed into Python, files are no longer in a git repository, so querying git is not possible.The git_verinfo.py file is written by install/inc... | 2 | 7 | 0 | 20 | 0 | 219 | 243 | 219 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (getSavedVersionInfo) defined within the public class called public.The function start at line 219 and ends at 243. 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 | GetVersionNumber | def GetVersionNumber():'''Obtain a numeric (sequential) version number for GSAS-II from versionfiles, or directly from git if no other choice.:returns: an int value normally, but unexpected error conditions could result in a value of 'unknown' or '?'.'''# look for a previously recorded tag -- this is quickgv = getSaved... | 7 | 15 | 0 | 103 | 2 | 245 | 272 | 245 | null | ['gv', 'g2repo'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (GetVersionNumber) defined within the public class called public.The function start at line 245 and ends at 272. It contains 15 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 | GetVersionTag | def GetVersionTag():'''Obtain a release (X.Y.Z) version number for GSAS-II from versionfiles, or directly from git if no other choice.:returns: a string of form <Major>.<Minor>.<mini> normally, but unexpected error conditions could result in a value of '?.?.?' or '?'.'''# look for a previously recorded tag -- this is q... | 5 | 13 | 0 | 78 | 2 | 274 | 299 | 274 | null | ['gv', 'g2repo'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (GetVersionTag) defined within the public class called public.The function start at line 274 and ends at 299. It contains 13 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 | getG2Branch | def getG2Branch():'''Get name of current branch, as named on local computer'''if HowIsG2Installed().startswith('git'):g2repo = openGitRepo(path2GSAS2)try:return g2repo.active_branch.nameexcept TypeError: # likely on a detached headreturn '?' | 3 | 7 | 0 | 34 | 1 | 301 | 309 | 301 | null | ['g2repo'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (getG2Branch) defined within the public class called public.The function start at line 301 and ends at 309. It contains 7 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 | getG2VersionInfo | def getG2VersionInfo():'''Get the git version information. This can be a bit slow, so reading.../GSASII/saved_version.py may be faster'''gv = getSavedVersionInfo()if HowIsG2Installed().startswith('git'):g2repo = openGitRepo(path2GSAS2)commit = g2repo.head.commitctim = commit.committed_datetime.strftime('%d-%b-%y %H:%M'... | 20 | 55 | 0 | 302 | 13 | 311 | 373 | 311 | null | ['commit', 'age', 'vt', 'ctim', 'now', 'tags', 'delta', 'rc', 'gversion', 'cvt', 'gv', 'g2repo', 'msg'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (getG2VersionInfo) defined within the public class called public.The function start at line 311 and ends at 373. It contains 55 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 | saveGitHubVersion | def saveGitHubVersion():'''Get the latest GSAS-II version tags from the GitHub siteand place them into the config.ini file. This is always done in background so that app startup time is minimally delayed. :returns: Returns a Popen object (see subprocess).'''try:import requestsrequestsexcept:print('Unable to use request... | 3 | 9 | 0 | 42 | 0 | 378 | 392 | 378 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (saveGitHubVersion) defined within the public class called public.The function start at line 378 and ends at 392. 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 | getGitHubVersion | def getGitHubVersion():'''Get the latest git version info when not accessible from gitas saved by saveGitHubVersion'''import configparsercfgfile = os.path.expanduser(os.path.normpath('~/.GSASII/config.ini'))if not os.path.exists(cfgfile):if GetConfigValue('debug'): print(f"{cfgfile} not found")return None,Nonetry:cfg =... | 7 | 16 | 0 | 128 | 2 | 394 | 413 | 394 | null | ['cfg', 'cfgfile'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (getGitHubVersion) defined within the public class called public.The function start at line 394 and ends at 413. It contains 16 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 | openGitRepo | def openGitRepo(repo_path):try:import gitexcept:return Nonetry:# patch 3/2024 for svn dir organizationreturn git.Repo(path2GSAS2)except git.InvalidGitRepositoryError:passreturn git.Repo(os.path.dirname(path2GSAS2)) | 3 | 10 | 1 | 42 | 0 | 419 | 428 | 419 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (openGitRepo) defined within the public class called public.The function start at line 419 and ends at 428. It contains 10 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | gitLookup | def gitLookup(repo_path,gittag=None,githash=None):'''Return information on a particular checked-in versionof GSAS-II.:param str repo_path: location where GSAS-II has been installed:param str gittag: a tag value.:param str githash: hex hash code (abbreviated to as few characters as needed to keep it unique). If None (de... | 10 | 22 | 3 | 132 | 3 | 430 | 467 | 430 | null | ['tags', 'g2repo', 'commit'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (gitLookup) defined within the public class called public.The function start at line 430 and ends at 467. It contains 22 lines of code and it has a cyclomatic complexity of 10. It takes 3 parameters, represented as [430.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | gitHash2Tags | def gitHash2Tags(githash=None,g2repo=None):'''Find tags associated with a particular git commit.Note that if `githash` cannot be located because it does notexist or is not unique, a `git.BadName` exception is raised.:param str githash: hex hash code (abbreviated to as few characters as needed to keep it unique). If Non... | 3 | 8 | 2 | 61 | 2 | 469 | 487 | 469 | null | ['g2repo', 'commit'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (gitHash2Tags) defined within the public class called public.The function start at line 469 and ends at 487. It contains 8 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [469.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | gitTag2Hash | def gitTag2Hash(gittag,g2repo=None):'''Provides the hash number for a git tag.Note that if `gittag` cannot be located because it does notexist or is too old and is beyond the `depth` of the localrepository, a `ValueError` exception is raised.:param str repo_path: location where GSAS-II has been installed.:param str git... | 2 | 4 | 2 | 32 | 1 | 489 | 503 | 489 | null | ['g2repo'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (gitTag2Hash) defined within the public class called public.The function start at line 489 and ends at 503. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [489.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | gitTestGSASII | def gitTestGSASII(verbose=True,g2repo=None):'''Test a the status of a GSAS-II installation:param bool verbose: if True (default), status messages are printed:param str g2repo: git.Rwpo connecton to GSAS-II installation. If None (default) it will be opened.:returns: istat, with the status of the repository, with one of ... | 13 | 27 | 2 | 183 | 3 | 505 | 553 | 505 | null | ['code', 'path2repo', 'g2repo'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (gitTestGSASII) defined within the public class called public.The function start at line 505 and ends at 553. It contains 27 lines of code and it has a cyclomatic complexity of 13. It takes 2 parameters, represented as [505.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | gitCheckForUpdates | def gitCheckForUpdates(fetch=True,g2repo=None):'''Provides a list of the commits made locally and those in thelocal copy of the repo that have not been applied. Does notprovide useful information in the case of a detached Head (see:func:`countDetachedCommits` for that.):param bool fetch: if True (default), updates are ... | 15 | 34 | 2 | 238 | 7 | 555 | 610 | 555 | null | ['fetched', 'remotecommits', 'localcommits', 'prevremotecommits', 'tracking', 'head', 'g2repo'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (gitCheckForUpdates) defined within the public class called public.The function start at line 555 and ends at 610. It contains 34 lines of code and it has a cyclomatic complexity of 15. It takes 2 parameters, represented as [555.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | countDetachedCommits | def countDetachedCommits(g2repo=None):'''Count the number of commits that have been made sincea commit that is containined in the main branchreturns the count and the commit object for theparent commit that connects the current strandedbranch to the main branch.None is returned if no connection is found'''if g2repo is ... | 6 | 13 | 1 | 103 | 2 | 612 | 635 | 612 | null | ['g2repo', 'masterList'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (countDetachedCommits) defined within the public class called public.The function start at line 612 and ends at 635. It contains 13 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 | gitCountRegressions | def gitCountRegressions(g2repo=None):'''Count the number of new check ins on the main branch sincethe head was detached as well as any checkins made on the detachedhead.:returns: maincount,detachedcount, where* maincount is the number of check ins made on the main branchremote repository since the reverted check in was... | 5 | 11 | 1 | 65 | 2 | 637 | 664 | 637 | null | ['g2repo', 'maincount'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (gitCountRegressions) defined within the public class called public.The function start at line 637 and ends at 664. 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 | gitGetUpdate | def gitGetUpdate(mode='Background'):'''Download the latest updates into the local copy of the GSAS-IIrepository from the remote main, but don't actually update theGSAS-II files being used. This can be done immediately or in background.In 'Background' mode, a background process is launched. The resultsfrom the process a... | 3 | 7 | 1 | 55 | 1 | 666 | 687 | 666 | null | ['g2repo'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (gitGetUpdate) defined within the public class called public.The function start at line 666 and ends at 687. It contains 7 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 | gitHistory | def gitHistory(values='tag',g2repo=None,maxdepth=100):'''Provides the history of commits to the main, either as tagsor hash values:param str values: specifies what type of values are returned.If values=='hash', then hash values or for values=='tag', alist of list of tag(s).:param str g2repo: git.Rwpo connecton to GSAS-... | 12 | 17 | 3 | 197 | 4 | 689 | 728 | 689 | null | ['r1', 'history', 'g2repo', 'tagmap'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (gitHistory) defined within the public class called public.The function start at line 689 and ends at 728. It contains 17 lines of code and it has a cyclomatic complexity of 12. It takes 3 parameters, represented as [689.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | getGitBinaryReleases | def getGitBinaryReleases(cache=False):'''Retrieves the binaries and download urls of the latest release:param bool cache: when cache is True and the binaries file names are retrieved (does not always succeed when done via GitHub Actions), the results are saved in a file for reuse should the retrieval fail. Default is F... | 11 | 44 | 1 | 278 | 7 | 730 | 798 | 730 | null | ['tries', 'res', 'releases', 'count', 'fp', 'versions', 'URLs'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (getGitBinaryReleases) defined within the public class called public.The function start at line 730 and ends at 798. It contains 44 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 | getGitBinaryLoc | def getGitBinaryLoc(npver=None,pyver=None,verbose=True,debug=False):'''Identify the best GSAS-II binary download location from thedistributions in the latest release section of the github repositoryon the CPU platform, and Python & numpy versions. The CPU & Pythonversions must match, but the numpy version may only be c... | 17 | 48 | 4 | 262 | 8 | 800 | 860 | 800 | null | ['intVersionsList', 'v', 'vsel', 'URLdict', 'versions', 'npver', 'bindir', 'inpver'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (getGitBinaryLoc) defined within the public class called public.The function start at line 800 and ends at 860. It contains 48 lines of code and it has a cyclomatic complexity of 17. It takes 4 parameters, represented as [800.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | InstallGitBinary | def InstallGitBinary(tarURL, instDir, nameByVersion=False, verbose=True):'''Install the GSAS-II binary files into the locationspecified.:param str tarURL: a URL for the tar file.:param str instDir: location directory to install files. This directorymay not exist and will be created if needed.:param bool nameByVersion: ... | 16 | 44 | 4 | 336 | 6 | 862 | 926 | 862 | null | ['r', 'binnam', 'tarobj', 'install2dir', 'newfil', 'tar'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (InstallGitBinary) defined within the public class called public.The function start at line 862 and ends at 926. It contains 44 lines of code and it has a cyclomatic complexity of 16. It takes 4 parameters, represented as [862.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | GetRepoUpdatesInBackground | def GetRepoUpdatesInBackground():'''Get the latest GSAS-II version info.This serves to make sure that :func:`gitGetUpdate` is called onlyif git has been used to install GSAS-II.:returns: returns a Popen object (see subprocess)'''if HowIsG2Installed().startswith('git'):return gitGetUpdate(mode='Background')else:return s... | 2 | 5 | 0 | 28 | 0 | 928 | 938 | 928 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (GetRepoUpdatesInBackground) defined within the public class called public.The function start at line 928 and ends at 938. 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 | gitStartUpdate | def gitStartUpdate(cmdopts):'''Update GSAS-II in a separate process, by running this script with theoptions supplied in the call to this function and then exiting GSAS-II.'''cmd = [sys.executable, __file__] + cmdoptsif GetConfigValue('debug'): print('Starting updates with command\n\t'+f'{" ".join(cmd)}')proc = subproce... | 3 | 7 | 1 | 55 | 2 | 940 | 952 | 940 | null | ['proc', 'cmd'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (gitStartUpdate) defined within the public class called public.The function start at line 940 and ends at 952. It contains 7 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 | dirGitHub | def dirGitHub(dirlist,orgName=gitTutorialOwn, repoName=gitTutorialRepo):'''Obtain a the contents of a GitHub repository directory usingthe GitHub REST API.:param str dirlist: a list of sub-directories `['parent','child',sub']`for `parent/child/sub` or `[]` for a file in the top-level directory.:param str orgName: the n... | 5 | 15 | 3 | 75 | 3 | 954 | 989 | 954 | null | ['URL', 'dirname', 'r'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (dirGitHub) defined within the public class called public.The function start at line 954 and ends at 989. It contains 15 lines of code and it has a cyclomatic complexity of 5. It takes 3 parameters, represented as [954.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | rawGitHubURL | def rawGitHubURL(dirlist,filename,orgName=gitTutorialOwn, repoName=gitTutorialRepo, branchname="main"):'''Create a URL that can be used to view/downlaod the raw version offile in a GitHub repository.:param str dirlist: a list of sub-directories `['parent','child',sub']`for `parent/child/sub` or `[]` for a file in the t... | 2 | 7 | 5 | 47 | 1 | 991 | 1,012 | 991 | null | ['dirname'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (rawGitHubURL) defined within the public class called public.The function start at line 991 and ends at 1012. It contains 7 lines of code and it has a cyclomatic complexity of 2. It takes 5 parameters, represented as [991.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | downloadDirContents | def downloadDirContents(dirlist,targetDir,orgName=gitTutorialOwn, repoName=gitTutorialRepo):'''Download the entire contents of a directory from a repositoryon GitHub. Used to download data for a tutorial.'''try:import requestsexcept:print('Unable to download Tutorial data in downloadDirContents():\n requests module not... | 7 | 24 | 4 | 158 | 4 | 1,014 | 1,040 | 1,014 | null | ['URL', 'filList', 'outfil', 'r'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (downloadDirContents) defined within the public class called public.The function start at line 1014 and ends at 1040. It contains 24 lines of code and it has a cyclomatic complexity of 7. It takes 4 parameters, represented as [1014.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | runScript | def runScript(cmds=[], wait=False, G2frame=None):'''run a shell script of commands in an external process:param list cmds: a list of str's, each ietm containing a shell (cmd.exeor bash) command:param bool wait: if True indicates the commands should be run and thenthe script should return. If False, then the currently r... | 12 | 36 | 3 | 256 | 7 | 1,044 | 1,095 | 1,044 | null | ['proc', 'ex', 'fp', 'suffix', 'projectfile', 'main', 'shellname'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (runScript) defined within the public class called public.The function start at line 1044 and ends at 1095. It contains 36 lines of code and it has a cyclomatic complexity of 12. It takes 3 parameters, represented as [1044.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | IPyBreak_base | def IPyBreak_base(userMsg=None):'''A routine that invokes an IPython session at the calling locationThis routine is only used when debug=True is set in the configurationsettings'''savehook = sys.excepthook # save the exception hooktry:from IPython.terminal.embed import InteractiveShellEmbedexcept ImportError:try:# try ... | 5 | 21 | 1 | 113 | 4 | 1,097 | 1,126 | 1,097 | null | ['savehook', 'ipshell', 'msg', 'frame'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (IPyBreak_base) defined within the public class called public.The function start at line 1097 and ends at 1126. 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 | exceptHook | def exceptHook(*args):'''A routine to be called when an exception occurs. It prints the tracebackwith fancy formatting and then calls an IPython shell with the environmentof the exception location.This routine is only used when debug=True is set in the configuration settings'''import IPython.coresavehook = sys.exceptho... | 3 | 18 | 1 | 132 | 5 | 1,128 | 1,154 | 1,128 | null | ['ipshell', 'frame', 'savehook', 'tb_formatter', 'msg'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (exceptHook) defined within the public class called public.The function start at line 1128 and ends at 1154. It contains 18 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 | DoNothing | def DoNothing():'''A routine that does nothing. This is called in place of IPyBreak and pdbBreakexcept when the debug option is set True in the configuration settings'''pass | 1 | 2 | 0 | 6 | 0 | 1,156 | 1,160 | 1,156 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (DoNothing) defined within the public class called public.The function start at line 1156 and ends at 1160. 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 | InvokeDebugOpts | def InvokeDebugOpts():'Called to set up debug options'if any('SPYDER' in name for name in os.environ):print('Running from Spyder, keeping breakpoint() active & skipping exception trapping')elif GetConfigValue('debug'):try:import pdbglobal pdbBreakpdbBreak = pdb.set_traceimport IPythonIPythonglobal IPyBreakIPyBreak = IP... | 5 | 20 | 0 | 81 | 2 | 1,162 | 1,181 | 1,162 | null | ['pdbBreak', 'IPyBreak'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (InvokeDebugOpts) defined within the public class called public.The function start at line 1162 and ends at 1181. 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 | TestSPG.showVersion | def showVersion():try:f = os.path.join(os.path.dirname(pyspg.__file__),'GSASIIversion.txt')with open(f,'r') as fp:version = fp.readline().strip()vnum = fp.readline().strip()print(f'Binary ver: {vnum}, {version}')except:if GetConfigValue('debug'): print('Binaries: undated') | 3 | 10 | 0 | 76 | 0 | 1,187 | 1,196 | 1,187 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (TestSPG.showVersion) defined within the public class called public.The function start at line 1187 and ends at 1196. It contains 10 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | TestSPG | def TestSPG():'''Test if pyspg.[so,.pyd] can be run from a location in the existing pathDo not modify the path if not.'''def showVersion():try:f = os.path.join(os.path.dirname(pyspg.__file__),'GSASIIversion.txt')with open(f,'r') as fp:version = fp.readline().strip()vnum = fp.readline().strip()print(f'Binary ver: {vnum}... | 4 | 23 | 0 | 70 | 3 | 1,183 | 1,217 | 1,183 | null | ['vnum', 'version', 'f'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (TestSPG) defined within the public class called public.The function start at line 1183 and ends at 1217. It contains 23 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 | pathhack_TestSPG | def pathhack_TestSPG(fpth):'''Test if pyspg.[so,.pyd] can be run from a specified location. If so modify the path to include it.'''try:if not os.path.exists(fpth): return Falseif not glob.glob(os.path.join(fpth,'pyspg.*')): return Falseexcept:return Falsesavpath = sys.path[:]sys.path = [fpth]# test to see if a shared l... | 8 | 38 | 1 | 195 | 1 | 1,219 | 1,260 | 1,219 | null | ['savpath'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (pathhack_TestSPG) defined within the public class called public.The function start at line 1219 and ends at 1260. It contains 38 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 | SetBinaryPath | def SetBinaryPath(showConfigMsg=False):'''Add location of GSAS-II shared libraries (binaries: .so or.pyd files) to path (when needed). When GSAS-II is installed bypixi, no change in the path is needed.This routine must be executed after GSASIIpath is importedand before any other GSAS-II imports are done, sincethey may ... | 7 | 26 | 1 | 95 | 3 | 1,262 | 1,302 | 1,262 | null | ['BinaryPathFailed', 'binaryPath', 'BinaryPathLoaded'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (SetBinaryPath) defined within the public class called public.The function start at line 1262 and ends at 1302. It contains 26 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 | WriteConfig | def WriteConfig(configDict):'''Write the configDict information to the GSAS-II ini settingsinto file ~/.GSASII/config.ini. Called from:func:`GSASIIctrlGUI.SaveConfigVars`.'''import configparserlocaldir = os.path.expanduser(os.path.normpath('~/.GSASII'))if not os.path.exists(localdir):try:os.mkdir(localdir)print(f'Creat... | 4 | 18 | 1 | 123 | 3 | 1,304 | 1,328 | 1,304 | null | ['cfgP', 'cfgfile', 'localdir'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (WriteConfig) defined within the public class called public.The function start at line 1304 and ends at 1328. 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 | LoadConfig.XferConfigIni | def XferConfigIni():'''copy the contents of the config.py file to file ~/.GSASII/config.ini.This "patch code" used for master->main transition and can eventuallybe removed.'''import typesconfigDict = {}try:import config#import config_example as configfor i in config.__dict__:if i.startswith('__') and i.endswith('__'): ... | 7 | 17 | 0 | 101 | 0 | 1,337 | 1,358 | 1,337 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (LoadConfig.XferConfigIni) defined within the public class called public.The function start at line 1337 and ends at 1358. It contains 17 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 | LoadConfig | def LoadConfig(printInfo=True):'''Read configuration settings from ~/.GSASII/config.ini, if present.Place the values into global dict configDict.:param bool printInfo: if printInfo is True (default) then a messageis shown with the number of settings read (upon startup).'''def XferConfigIni():'''copy the contents of the... | 28 | 68 | 1 | 505 | 9 | 1,330 | 1,434 | 1,330 | null | ['res', 'capsDict', 'key', 'capKey', 'cfgG', 'cfg', 'cfgfile', 'configDict', 's'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (LoadConfig) defined within the public class called public.The function start at line 1330 and ends at 1434. It contains 68 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 | MacRunScript | def MacRunScript(script):'''Start a bash script in a new terminal window.Used on Mac OS X only.:param str script: file name for a bash script'''script = os.path.abspath(script)osascript = '''set bash to "/bin/bash"set filename to "{}"tell application "Terminal" activate do script bash & " " & filename & "; exit"end tel... | 1 | 12 | 1 | 36 | 2 | 1,436 | 1,452 | 1,436 | null | ['script', 'osascript'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (MacRunScript) defined within the public class called public.The function start at line 1436 and ends at 1452. 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 | findConda | def findConda():'''Determines if GSAS-II has been installed as g2conda or gsas2fullwith conda located relative to this file.We could also look for conda relative to the python (sys.executable)image, but I don't want to muck around with python that someone elseinstalled.'''parent = os.path.split(path2GSAS2)[0]if sys.pla... | 4 | 12 | 0 | 110 | 3 | 1,457 | 1,474 | 1,457 | null | ['parent', 'conda', 'activate'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (findConda) defined within the public class called public.The function start at line 1457 and ends at 1474. 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 | condaTest | def condaTest(requireAPI=False):'''Returns True if it appears that Python is being run under Anaconda Python with conda present. Tests for conda environment vars and that the conda package is installed in the current environment.:returns: True, if running under Conda'''if not all([(i in os.environ) for i in ('CONDA_DEF... | 9 | 22 | 1 | 161 | 2 | 1,476 | 1,513 | 1,476 | null | ['dir1', 'dir2'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (condaTest) defined within the public class called public.The function start at line 1476 and ends at 1513. It contains 22 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 | condaInstall | def condaInstall(packageList):'''Installs one or more packages using the anaconda conda packagemanager. Can be used to install multiple packages and optionallyuse channels.:param list packageList: a list of strings with name(s) of packagesand optionally conda options.Examples:: packageList=['gsl'] packageList=['-c','co... | 4 | 20 | 1 | 111 | 0 | 1,515 | 1,556 | 1,515 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (condaInstall) defined within the public class called public.The function start at line 1515 and ends at 1556. 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 | fullsplit | def fullsplit(fil,prev=None):'''recursive routine to split all levels of directory names'''if prev is None: # first call: normalize and drop file namefil = os.path.normcase(os.path.abspath(os.path.dirname(fil)))prev = []i,j = os.path.split(fil)if j:prev.insert(0,j)out = fullsplit(i,prev)else:return [i]+prevreturn out | 3 | 11 | 2 | 84 | 3 | 1,558 | 1,570 | 1,558 | null | ['out', 'fil', 'prev'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (fullsplit) defined within the public class called public.The function start at line 1558 and ends at 1570. It contains 11 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [1558.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | commonPath | def commonPath(dir1,dir2):'''Check if two directories share a path. Note that pathsare considered the same if either directory is a subdirectoryof the other, but not if they are in different subdirectories/a/b/c shares a path with /a/b/c/d but /a/b/c/d and /a/b/c/e do not.:returns: True if the paths are common'''for i,... | 3 | 4 | 2 | 35 | 0 | 1,572 | 1,583 | 1,572 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (commonPath) defined within the public class called public.The function start at line 1572 and ends at 1583. It contains 4 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [1572.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | pipInstall | def pipInstall(packageList):'''Installs one or more packages using the pip package installer.Use of this should be avoided if conda can be used (see :func:`condaTest`to test for conda). Can be used to install multiple packages together.One can use pip options, but this is probably not needed.:param list packageList: a ... | 5 | 9 | 1 | 71 | 0 | 1,585 | 1,611 | 1,585 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (pipInstall) defined within the public class called public.The function start at line 1585 and ends at 1611. It contains 9 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 | condaEnvCreate | def condaEnvCreate(envname, packageList, force=False):'''Create a Python interpreter in a new conda environment. Use thiswhen there is a potential conflict between packages and it wouldbe better to keep the packages separate (which is one of the reasonsconda supports environments). Note that conda should be run from th... | 11 | 40 | 3 | 310 | 5 | 1,613 | 1,677 | 1,613 | null | ['pathList', 'newpython', 'p', 'newenv', 'msg'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (condaEnvCreate) defined within the public class called public.The function start at line 1613 and ends at 1677. It contains 40 lines of code and it has a cyclomatic complexity of 11. It takes 3 parameters, represented as [1613.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | addCondaPkg | def addCondaPkg():'''Install the conda API into the current conda environment using thecommand line, so that the API can be used in the current Python interpreterAttempts to do this without a shell failed on the Mac because it seems thatthe environment was inherited; seems to work w/o shell on Windows.'''if not all([(i... | 9 | 25 | 0 | 213 | 3 | 1,679 | 1,713 | 1,679 | null | ['script', 'currenv', 'cmd'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (addCondaPkg) defined within the public class called public.The function start at line 1679 and ends at 1713. It contains 25 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 | getIconFile | def getIconFile(imgfile):'''Looks in either the main GSAS-II install location (old) or subdirectoryicons (after reorg) for an icon:returns: the full path for the icon file'''if os.path.exists(os.path.join(path2GSAS2,'icons',imgfile)):return os.path.join(path2GSAS2,'icons',imgfile)if os.path.exists(os.path.join(path2GSA... | 3 | 7 | 1 | 77 | 0 | 1,717 | 1,728 | 1,717 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (getIconFile) defined within the public class called public.The function start at line 1717 and ends at 1728. It contains 7 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 | makeScriptShortcut | def makeScriptShortcut():'''Creates a shortcut to GSAS-II in the current Python installationso that "import G2script" (or "import G2script as GSASIIscripting")can be used without having to add GSASII to the path.The new shortcut is then tested.:returns: returns the name of the created file if successful. Noneindicates ... | 5 | 24 | 0 | 129 | 1 | 1,732 | 1,782 | 1,732 | null | ['newfil'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (makeScriptShortcut) defined within the public class called public.The function start at line 1732 and ends at 1782. It contains 24 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 | postURL | def postURL(URL,postdict,getcookie=None,usecookie=None,timeout=None,retry=2,mode='get'):'''Posts a set of values as from a web form using the "get" or "post"protocols.If access fails to an https site, the access is retried with http.:param str URL: the URL to post; typically something like 'http://www.../dir/page?':par... | 33 | 72 | 7 | 440 | 6 | 1,808 | 1,908 | 1,808 | null | ['r', 'count', 'URL', 'repeat', 'reqopt', 'page'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (postURL) defined within the public class called public.The function start at line 1808 and ends at 1908. It contains 72 lines of code and it has a cyclomatic complexity of 33. It takes 7 parameters, represented as [1808.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | openInNewTerm | def openInNewTerm(project=None,g2script=None,pythonapp=sys.executable):'''Open a new and independent GSAS-II session in separate terminalor console window and as a separate process that will continueeven if the calling process exits.Intended to work on all platforms.This could be used to run other scripts inside python... | 18 | 65 | 3 | 383 | 6 | 1,914 | 2,024 | 1,914 | null | ['fil', 'script', 'cmds', 'fp', 'found', 'g2script'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (openInNewTerm) defined within the public class called public.The function start at line 1914 and ends at 2024. It contains 65 lines of code and it has a cyclomatic complexity of 18. It takes 3 parameters, represented as [1914.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | __init__ | def __init__(self,parent,SGData,New=True,ForceUnit=False):wx.Dialog.__init__(self,parent,-1,'Select symmetry operator',pos=wx.DefaultPosition,style=wx.DEFAULT_DIALOG_STYLE)panel = wx.Panel(self)self.SGData = SGDataself.New = Newself.Force = ForceUnitself.OpSelected = [0,0,0,[0,0,0],False,False]mainSizer = wx.BoxSizer(w... | 7 | 64 | 5 | 735 | 0 | 106 | 172 | 106 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 106 and ends at 172. It contains 64 lines of code and it has a cyclomatic complexity of 7. It takes 5 parameters, represented as [106.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | OnOpSelect | def OnOpSelect(self,event):self.OpSelected[0] = self.inv.GetSelection()if self.SGData['SGLatt'] != 'P':self.OpSelected[1] = self.latt.GetSelection()self.OpSelected[2] = self.oprs.GetSelection()for i in range(3):self.OpSelected[3][i] = float(self.cell[i].GetValue())if self.New:self.OpSelected[4] = self.new.GetSelection(... | 5 | 11 | 2 | 128 | 0 | 174 | 184 | 174 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (OnOpSelect) defined within the public class called public.The function start at line 174 and ends at 184. It contains 11 lines of code and it has a cyclomatic complexity of 5. It takes 2 parameters, represented as [174.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | GetSelection | def GetSelection(self):return self.OpSelected | 1 | 2 | 1 | 9 | 0 | 186 | 187 | 186 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (GetSelection) defined within the public class called public.The function start at line 186 and ends at 187. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | OnOk | def OnOk(self,event):parent = self.GetParent()parent.Raise()self.EndModal(wx.ID_OK) | 1 | 4 | 2 | 27 | 0 | 189 | 192 | 189 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (OnOk) defined within the public class called public.The function start at line 189 and ends at 192. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [189.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | OnCancel | def OnCancel(self,event):parent = self.GetParent()parent.Raise()self.EndModal(wx.ID_CANCEL) | 1 | 4 | 2 | 27 | 0 | 194 | 197 | 194 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (OnCancel) defined within the public class called public.The function start at line 194 and ends at 197. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [194.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | __init__ | def __init__(self,parent,general,drawing,indx):wx.Dialog.__init__(self,parent,wx.ID_ANY,'Supply sphere info',pos=wx.DefaultPosition,style=wx.DEFAULT_DIALOG_STYLE)self.panel = wx.Panel(self) #just a dummy - gets destroyed in Draw!self.General = generalself.Drawing = drawingself.indx = indxself.Sphere = [3.0,]self.center... | 2 | 12 | 5 | 112 | 0 | 208 | 219 | 208 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 208 and ends at 219. It contains 12 lines of code and it has a cyclomatic complexity of 2. It takes 5 parameters, represented as [208.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | Draw.OnAtomType | def OnAtomType(event):Obj = event.GetEventObject()Id = Ind[Obj.GetId()]self.atomTypes[Id][1] = Obj.GetValue() | 1 | 4 | 1 | 37 | 0 | 223 | 226 | 223 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (Draw.OnAtomType) defined within the public class called public.The function start at line 223 and ends at 226. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | Draw | def Draw(self):def OnAtomType(event):Obj = event.GetEventObject()Id = Ind[Obj.GetId()]self.atomTypes[Id][1] = Obj.GetValue()self.panel.Destroy()self.panel = wx.Panel(self)mainSizer = wx.BoxSizer(wx.VERTICAL)mainSizer.Add(wx.StaticText(self.panel,label=' Sphere of enclosure controls:'),0)topSizer = wx.BoxSizer(wx.HORIZO... | 6 | 56 | 1 | 644 | 0 | 221 | 283 | 221 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (Draw) defined within the public class called public.The function start at line 221 and ends at 283. It contains 56 lines of code and it has a cyclomatic complexity of 6. 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.