> > 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().