Mercurial > repos > tyty > structurefold
view reactivity_cal/read_file.py @ 67:96a827962750 draft
Uploaded updated scripts, removed *.pyc and .DS_Store
author | devteam |
---|---|
date | Fri, 21 Nov 2014 11:28:59 -0500 |
parents | 7a8ddf1819b1 |
children |
line wrap: on
line source
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys def read_t_file(in_file): f = open(in_file); result = []; for aline in f.readlines(): temp = []; tline = aline.strip(); tl = tline.split('\t'); for i in range(0, len(tl)): temp.append(tl[i].strip()); result.append(temp); f.close(); return result;