def _getattr(self, attri, fname=None, numtype='<STR_LIT>'):
if str(fname.__class__)=="<STR_LIT>":<EOL><INDENT>isList=True<EOL><DEDENT>else:<EOL><INDENT>isList=False<EOL><DEDENT>data=[]<EOL>if fname==None:<EOL><INDENT>fname=self.files<EOL>numtype='<STR_LIT:file>'<EOL>isList=True<EOL><DEDENT>if isList:<EOL><INDENT>for i in range(len(fname)):<EOL><INDENT>if attri in self.cattrs:<EOL><INDENT>data.append(self.getCycleData(attri,fname[i],numtype))<EOL><DEDENT>elif attri in self.dcols:<EOL><INDENT>data.append(self.getColData(attri,fname[i],numtype))<EOL><DEDENT>elif attri in self.get('<STR_LIT>',fname,numtype):<EOL><INDENT>data.append(self.getElement(attri,fname[i],numtype))<EOL><DEDENT>else:<EOL><INDENT>print('<STR_LIT>'+attri+ '<STR_LIT>')<EOL>print('<STR_LIT>')<EOL>return None<EOL><DEDENT><DEDENT><DEDENT>else:<EOL><INDENT>if attri in self.cattrs:<EOL><INDENT>return self.getCycleData(attri,fname,numtype)<EOL><DEDENT>elif attri in self.dcols:<EOL><INDENT>return self.getColData(attri,fname,numtype)<EOL><DEDENT>elif attri in self.get('<STR_LIT>',fname,numtype):<EOL><INDENT>return self.getElement(attri,fname,numtype)<EOL><DEDENT>else:<EOL><INDENT>print('<STR_LIT>'+attri+ '<STR_LIT>')<EOL>print('<STR_LIT>')<EOL>return None<EOL><DEDENT><DEDENT>return data<EOL>
Private method for getting an attribute, called from get.