Author: bugman Date: Sat Jul 5 00:25:55 2008 New Revision: 6701 URL: http://svn.gna.org/viewcvs/relax?rev=6701&view=rev Log: The struct_index is now passed into the write_pdb() method. Modified: branches/rdc_analysis/generic_fns/structure/internal.py Modified: branches/rdc_analysis/generic_fns/structure/internal.py URL: http://svn.gna.org/viewcvs/relax/branches/rdc_analysis/generic_fns/structure/internal.py?rev=6701&r1=6700&r2=6701&view=diff ============================================================================== --- branches/rdc_analysis/generic_fns/structure/internal.py (original) +++ branches/rdc_analysis/generic_fns/structure/internal.py Sat Jul 5 00:25:55 2008 @@ -664,7 +664,7 @@ self.atom_add(pdb_record='TER', res_name=res_name, res_num=res_num, model=i) - def write_pdb(self, file): + def write_pdb(self, file, struct_index=None): """Method for the creation of a PDB file from the structural data. A number of PDB records including HET, HETNAM, FORMUL, HETATM, TER, CONECT, MASTER, and END @@ -680,8 +680,11 @@ 5. Number of C atoms in the residue. - @param file: The PDB file object. This object must be writable. - @type file: file object + @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 """ # Check the validity of the data.