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 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, at 1:55 AM, Albert Solernou <a.soler...@leeds.ac.uk >> <mailto:a.soler...@leeds.ac.uk>> 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 >> tempfile.SpooledTemporaryFile. Is there a variant of cmd.load that could >> handle an open file instead of a file? >> >> Thanks, >> Albert >> >> >> -- >> --------------------------------- >> Dr Albert Solernou >> EPSRC Research Fellow, >> Department of Physics and Astronomy, >> University of Leeds >> Tel: +44 (0)1133 431451 >> >> ------------------------------------------------------------------------------ >> The Command Line: Reinvented for Modern Developers >> Did the resurgence of CLI tooling catch you by surprise? >> Reconnect with the command line and become more productive. >> Learn the new .NET and ASP.NET <http://ASP.NET> CLI. Get your free copy! >> http://sdm.link/telerik >> _______________________________________________ >> PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net) >> Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users >> Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net > -- --------------------------------- Dr Albert Solernou EPSRC Research Fellow, Department of Physics and Astronomy, University of Leeds Tel: +44 (0)1133 431451 ------------------------------------------------------------------------------ The Command Line: Reinvented for Modern Developers Did the resurgence of CLI tooling catch you by surprise? Reconnect with the command line and become more productive. Learn the new .NET and ASP.NET CLI. Get your free copy! http://sdm.link/telerik _______________________________________________ PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net) Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net