def _readFile(self, fname, sldir):
if sldir.endswith('<STR_LIT:/>'):<EOL><INDENT>fname = str(sldir)+str(fname)<EOL><DEDENT>else:<EOL><INDENT>fname = str(sldir)+'<STR_LIT:/>'+str(fname)<EOL><DEDENT>f=open(fname,'<STR_LIT:r>')<EOL>line=f.readline()<EOL>cols  = []<EOL>ispec = <NUM_LIT:0><EOL>for i in range(<NUM_LIT:1>,len(line.split('<STR_LIT:|>'))):<EOL><INDENT>col = line.split('<STR_LIT:|>')[i].strip()<EOL>if '<STR_LIT:->' in col:<EOL><INDENT>ispec += <NUM_LIT:1><EOL>col   = col.split('<STR_LIT:->')[<NUM_LIT:1>]<EOL><DEDENT>cols.append(col)<EOL>col_num={}<EOL><DEDENT>col_tot = len(cols)<EOL>print('<STR_LIT>', str(ispec))<EOL>print('<STR_LIT>', str(col_tot))<EOL>col_num={}<EOL>for a,b in zip(cols,list(range(col_tot))):<EOL><INDENT>col_num[a]=b<EOL><DEDENT>lines=f.readlines()<EOL>data=[]<EOL>for i in range(len(lines)):<EOL><INDENT>v=lines[i].split()<EOL>vv=array(v,dtype='<STR_LIT:float>')<EOL>data.append(vv)<EOL><DEDENT>ilines=i<EOL>print("<STR_LIT>"+str(ilines)+"<STR_LIT>")<EOL>return data,col_num,cols,col_tot,ilines<EOL>
Private method that reads in the data file and organizes it
within this object.