diff reactivity_cal/Iterative_mapping/Iterative_mapping/read_s_file.py @ 15:f3639b8430d7 draft

Deleted selected files
author tyty
date Mon, 20 Oct 2014 02:00:25 -0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/reactivity_cal/Iterative_mapping/Iterative_mapping/read_s_file.py	Mon Oct 20 02:00:25 2014 -0400
@@ -0,0 +1,22 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+import sys
+
+
+
+def read_sp_file(in_file):
+    f = open(in_file);
+    result = [];
+    for aline in f.readlines():
+        temp = [];
+        tline = aline.strip();
+        tl = tline.split(' ');
+        for i in range(0, len(tl)):
+            if len(tl[i].strip())>0:
+                temp.append(tl[i].strip());
+        result.append(temp);
+    f.close();
+    return result;
+
+