> > This is all good so far... but: > > > > relax> pymol.cartoon('test') > > relax> PyMOL>cmd.hide('everything','../abp_600MHz_tensorFrame') > > PyMOL>cmd.show('cartoon','../abp_600MHz_tensorFrame') > > PyMOL>util.cbss('../abp_600MHz_tensorFrame', 'red', 'yellow', 'green') > > > > fails because there is no such object (in pymol) > > as ../abp_600MHz_tensorFrame. It should be > > > > cmd.hide('everything','abp_600MHz_tensorFrame') > > etc. > > Ah. I think we need a new function within the IO file 'io.py'. Maybe > something called 'self.file_root()'. It should be pretty simple to > implement. Maybe split by the path separator 'path.sep', take the > last element, split by '.', then return the first element of the new > array. Would you like to have a go at adding it Chris? I won't have > commit access for a while. A complementary function 'self.file_ext()' > could be added for future use as well.I've added the io.file_root() function to both the 1.3 line and tensor_pdb branch, and made the fix to pymol.cartoon().
Thanks.
I deemed file_ext() a bit trivial to demand its own function, the desired functionality being available as: file_ext = os.path.splitext(file)[1]
Fair enough, the function already exists. Edward _______________________________________________ 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

