mailr6735 - /branches/rdc_analysis/generic_fns/structure/api_base.py


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

Header


Content

Posted by edward on July 05, 2008 - 12:21:
Author: bugman
Date: Sat Jul  5 12:20:58 2008
New Revision: 6735

URL: http://svn.gna.org/viewcvs/relax?rev=6735&view=rev
Log:
Added the struct_index keyword arg to the structural object API write_pdb() 
method.


Modified:
    branches/rdc_analysis/generic_fns/structure/api_base.py

Modified: branches/rdc_analysis/generic_fns/structure/api_base.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/rdc_analysis/generic_fns/structure/api_base.py?rev=6735&r1=6734&r2=6735&view=diff
==============================================================================
--- branches/rdc_analysis/generic_fns/structure/api_base.py (original)
+++ branches/rdc_analysis/generic_fns/structure/api_base.py Sat Jul  5 
12:20:58 2008
@@ -233,7 +233,7 @@
         return len(self.structural_data)
 
 
-    def write_pdb(self, file):
+    def write_pdb(self, file, struct_index=None):
         """Prototype method stub for the creation of a PDB file from the 
structural data.
 
         The PDB records
@@ -473,9 +473,12 @@
          
|_________|______________|______________|________________________________________________|
 
 
-        @param file:        The PDB file object.  This object must be 
writable.
-        @type file:         file object
-        """
-
-        # Raise the error.
-        raise RelaxImplementError
+        @param file:            The PDB file object.  This object must be 
writable.
+        @type file:             file object
+        @param struct_index:    The index of the structural container to 
write.  If None, all
+                                structures will be written.
+        @type struct_index:     int
+        """
+
+        # Raise the error.
+        raise RelaxImplementError




Related Messages


Powered by MHonArc, Updated Sat Jul 05 12:40:18 2008