mailr8645 - /branches/ave_noe/generic_fns/noesy.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on January 26, 2009 - 13:44:
Author: bugman
Date: Mon Jan 26 13:44:06 2009
New Revision: 8645

URL: http://svn.gna.org/viewcvs/relax?rev=8645&view=rev
Log:
Reverted to calling file.readlines() rather than file.read().


Modified:
    branches/ave_noe/generic_fns/noesy.py

Modified: branches/ave_noe/generic_fns/noesy.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/ave_noe/generic_fns/noesy.py?rev=8645&r1=8644&r2=8645&view=diff
==============================================================================
--- branches/ave_noe/generic_fns/noesy.py (original)
+++ branches/ave_noe/generic_fns/noesy.py Mon Jan 26 13:44:06 2009
@@ -91,11 +91,8 @@
 
     # Open the file.
     file = open_read_file(file_name=file, dir=dir)
-    data = file.read()
+    lines = file.readlines()
     file.close()
-
-    # The lines of the file.
-    lines = split(data, '\n')
 
     # Determine the file type.
     format = __file_format(lines)
@@ -114,4 +111,4 @@
 
     # Parse and extract the NOE restraints.
     if format == 'xplor':
-        restraints = parse_noe_restraints(data)
+        restraints = parse_noe_restraints(lines)




Related Messages


Powered by MHonArc, Updated Mon Jan 26 15:20:04 2009