Is the '[:-4]' in 'self.relax.data.pdb[self.run].file_name[:-4]' still needed? This just chops off the text '.pdb' from the file name.
Edward On 11/1/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Author: macraild Date: Tue Oct 31 18:05:24 2006 New Revision: 2721 URL: http://svn.gna.org/viewcvs/relax?rev=2721&view=rev Log: Fixed the pymol.cartoons() bug Reported at: https://mail.gna.org/public/relax-devel/2006-10/msg00204.html Modified: branches/tensor_pdb/generic_fns/pymol.py Modified: branches/tensor_pdb/generic_fns/pymol.py URL: http://svn.gna.org/viewcvs/relax/branches/tensor_pdb/generic_fns/pymol.py?rev=2721&r1=2720&r2=2721&view=diff ============================================================================== --- branches/tensor_pdb/generic_fns/pymol.py (original) +++ branches/tensor_pdb/generic_fns/pymol.py Tue Oct 31 18:05:24 2006 @@ -45,7 +45,8 @@ raise RelaxNoRunError, self.run # Identifier. - id = self.relax.data.pdb[self.run].file_name[:-4] + pdb_file = self.relax.data.pdb[self.run].file_name[:-4] + id = io.file_root(pdb_file) # Hide everything. self.pipe_write("cmd.hide('everything'," + `id` + ")") _______________________________________________ relax (http://nmr-relax.com) This is the relax-commits mailing list [email protected] To unsubscribe from this list, get a password reminder, or change your subscription options, visit the list information page at https://mail.gna.org/listinfo/relax-commits
_______________________________________________ relax (http://nmr-relax.com) This is the relax-devel mailing list [email protected] To unsubscribe from this list, get a password reminder, or change your subscription options, visit the list information page at https://mail.gna.org/listinfo/relax-devel

