[Chimera-users] restoring sessions with python & triggers

Dougherty, Matthew T matthewd at bcm.edu
Sun Jun 14 18:40:31 PDT 2015


Normally a save session by a python extension is invoked by a trigger SAVE_SESSION.


For restoring a session, several related chimera APIs are available that are typically not used.

1) post model restore: SimpleSession.registerAfterModelsCB(afterModelsRestoredCB, arg)

2) BEGIN_RESTORE_SESSION and END_RESTORE_SESSION triggers.


I need to reset extension gui values based on midas positions.

I presume a normal restore in the session file does not guarantee that these midas positions will be loaded at that time, so I need to delay the gui updates until the restore process has ended or possibly when the models are loaded loaded.


What is the distinction between END_RESTORE_SESSION and registerAfterModelsCB?


Matthew Dougherty
National Center for Macromolecular Imaging
Baylor College of Medicine
===========================================================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-users/attachments/20150615/b62f47bd/attachment.html>


More information about the Chimera-users mailing list