def getCycleData(self, attri, fname, numtype='<STR_LIT>'):
fname=self.findFile(fname,numtype)<EOL>if self.inputdir == '<STR_LIT>':<EOL><INDENT>self.inputdir = self.sldir      <EOL><DEDENT>os.chdir(self.inputdir)                           <EOL>self.sldir=os.getcwd() + '<STR_LIT:/>'              <EOL>f=open(fname,'<STR_LIT:r>')<EOL>lines=f.readlines()<EOL>if self.inputdir != '<STR_LIT>':                               <EOL><INDENT>os.chdir(self.startdir)<EOL>self.sldir = self.inputdir<EOL><DEDENT>for i in range(len(lines)):<EOL><INDENT>lines[i]=lines[i].strip()<EOL><DEDENT>for i in range(len(lines)):<EOL><INDENT>if lines[i].startswith('<STR_LIT:#>'):<EOL><INDENT>lines[i]=lines[i].strip('<STR_LIT:#>')<EOL>tmp=lines[i].split()<EOL>tmp1=[]<EOL>for j in range(len(tmp)):<EOL><INDENT>if tmp[j] != '<STR_LIT:=>' or '<STR_LIT>':<EOL><INDENT>tmp1.append(tmp[j])<EOL><DEDENT><DEDENT>tmp=tmp1<EOL>for j in range(len(tmp)):<EOL><INDENT>if tmp[j]== attri:<EOL><INDENT>try:<EOL><INDENT>if '<STR_LIT:.>' in tmp[j+<NUM_LIT:1>]:<EOL><INDENT>return float(tmp[j+<NUM_LIT:1>])<EOL><DEDENT>else:<EOL><INDENT>return int(tmp[j+<NUM_LIT:1>])<EOL><DEDENT><DEDENT>except ValueError:<EOL><INDENT>return str(tmp[j+<NUM_LIT:1>])<EOL><DEDENT><DEDENT><DEDENT><DEDENT>elif lines[i].startswith('<STR_LIT:H>'):<EOL><INDENT>continue<EOL><DEDENT>else:<EOL><INDENT>print('<STR_LIT>')<EOL>print('<STR_LIT>')<EOL>return None<EOL><DEDENT><DEDENT>
In this method a column of data for the associated cycle
attribute is returned.

Parameters
----------
attri : string
    The name of the attribute we are looking for.
fname : string
    The name of the file we are getting the data from or the
    cycle number found in the filename.
numtype : string, optional
    Determines whether fname is the name of a file or, the
    cycle number.  If it is 'file' it will then  interpret it as
    a file, if it is 'cycNum' it will then  interpret it as a
    cycle number.  The default is "cycNum".