Re: [PyMOL] loading StringIO

2016-10-26 Thread Albert Solernou
That's lovely, David. Thanks, Albert On 10/26/2016 11:56 AM, David Hall wrote: > https://pymolwiki.org/index.php/Read_Pdbstr > > -David > > On Oct 26, 2016, at 3:55 AM, Albert Solernou > wrote: > >> Dear All, >> I was wondering if there

Re: [PyMOL] loading StringIO

2016-10-26 Thread David Hall
https://pymolwiki.org/index.php/Read_Pdbstr -David > On Oct 26, 2016, at 3:55 AM, Albert Solernou wrote: > > Dear All, > I was wondering if there was a way to load a PDB file stored in memory > instead of disk, i. e., a memory file, defined through StringIO or >

Re: [PyMOL] loading StringIO

2016-10-26 Thread Albert Solernou
Hi Jordan, I still don't figure out how to do that with "load_object". What is the "type" for a file handler? Would be "object" the file handler itself? Albert On 10/26/2016 10:58 AM, Jordan Willis wrote: > Probably could use load_object instead. > > >def

Re: [PyMOL] loading StringIO

2016-10-26 Thread Jordan Willis
Probably could use load_object instead. def load_object(type,object,name,state=0,finish=1,discrete=0, quiet=1,zoom=-1,_self=cmd): ''' DESCRIPTION "load_object" is a general developer function for loading Python objects into PyMOL. > On Oct 26, 2016,