[chimera-dev] session files

Tom Goddard goddard at sonic.net
Tue Apr 11 10:25:19 PDT 2017


The Chimera session saving code is in the SimpleSession Python module

	chimera/share/SimpleSession

which has a saveSession(filename) function.  The written session files are Python code.  To put that into an HDF5 file as a string you probably would write it to a temporary file then read that file and put it into your HDF5.  Restoring the session is done by running that Python code within Chimera using the Python execfile() function.

	Tom

> On Apr 10, 2017, at 3:38 PM, Dougherty, Matthew T <matthewd at bcm.edu> wrote:
> 
> I was interested in writing/reading sessions as hdf datasets. 
> 
> Can you direct me into the code  that does the IO?
> 
> Matthew Dougherty
> National Center for Macromolecular Imaging
> Baylor College of Medicine
> =================================================
> =================================================
> _______________________________________________
> Chimera-dev mailing list
> Chimera-dev at cgl.ucsf.edu <mailto:Chimera-dev at cgl.ucsf.edu>
> http://www.rbvi.ucsf.edu/mailman/listinfo/chimera-dev <http://www.rbvi.ucsf.edu/mailman/listinfo/chimera-dev>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-dev/attachments/20170411/df6737d2/attachment.html>


More information about the Chimera-dev mailing list