mailRe: PyMOL is now supported.


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

Header


Content

Posted by Edward d'Auvergne on October 31, 2006 - 18:19:
> > 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



Related Messages


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