mailRe: r2721 - /branches/tensor_pdb/generic_fns/pymol.py


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

Header


Content

Posted by Chris MacRaild on October 31, 2006 - 18:21:
On Wed, 2006-11-01 at 04:07 +1100, Edward d'Auvergne wrote:
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.

Opps...

Fixed


Edward


On 11/1/06, c.a.macraild@xxxxxxxxxxx <c.a.macraild@xxxxxxxxxxx> 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
relax-commits@xxxxxxx

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






Related Messages


Powered by MHonArc, Updated Tue Oct 31 18:22:14 2006