mailr18539 - /trunk/generic_fns/structure/pdb_write.py


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

Header


Content

Posted by edward on February 20, 2013 - 16:43:
Author: bugman
Date: Wed Feb 20 16:43:29 2013
New Revision: 18539

URL: http://svn.gna.org/viewcvs/relax?rev=18539&view=rev
Log:
Fixes for many of the generic_fns.structure.pdb_write functions.

The PDB records are now all filled with whitespace up to the 80th character.


Modified:
    trunk/generic_fns/structure/pdb_write.py

Modified: trunk/generic_fns/structure/pdb_write.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/generic_fns/structure/pdb_write.py?rev=18539&r1=18538&r2=18539&view=diff
==============================================================================
--- trunk/generic_fns/structure/pdb_write.py (original)
+++ trunk/generic_fns/structure/pdb_write.py Wed Feb 20 16:43:29 2013
@@ -362,13 +362,14 @@
     """
 
     # The formatted record.
-    text = "%-6s%5s%5s%5s%5s%5s                              \n" % (
+    text = "%-6s%5s%5s%5s%5s%5s%49s" % (
         'CONECT',
         _handle_none(serial),
         _handle_none(bonded1),
         _handle_none(bonded2),
         _handle_none(bonded3),
-        _handle_none(bonded4)
+        _handle_none(bonded4),
+        ''
     )
 
     # Validate.
@@ -611,13 +612,14 @@
     """
 
     # The formatted record.
-    text = "%-6s  %2s  %3s %2s%1s%-51s\n" % (
+    text = "%-6s  %2s  %3s %2s%1s%-51s%10s" % (
         'FORMUL',
         _handle_none(comp_num),
         _handle_none(het_id),
         _handle_none(continuation),
         _handle_none(asterisk),
-        _handle_none(text)
+        _handle_none(text),
+        ''
     )
 
     # Validate.
@@ -1098,11 +1100,12 @@
     """
 
     # The formatted record.
-    text = "%-6s  %2s %3s %-55s\n" % (
+    text = "%-6s  %2s %3s %-55s%10s" % (
         'HETNAM',
         _handle_none(continuation),
         _handle_none(het_id),
-        _handle_text(text)
+        _handle_text(text),
+        ''
     )
 
     # Validate.
@@ -1203,7 +1206,7 @@
     """
 
     # The formatted record.
-    text = "%-6s    %5s%5s%5s%5s%5s%5s%5s%5s%5s%5s%5s%5s" % (
+    text = "%-6s    %5s%5s%5s%5s%5s%5s%5s%5s%5s%5s%5s%5s%10s" % (
         'MASTER',
         _handle_none(num_remark),
         0,
@@ -1216,7 +1219,8 @@
         _handle_none(num_coord),
         _handle_none(num_ter),
         _handle_none(num_conect),
-        _handle_none(num_seq)
+        _handle_none(num_seq),
+        ''
     )
 
     # Validate.




Related Messages


Powered by MHonArc, Updated Wed Feb 20 17:00:01 2013