mailr13779 - /branches/gui_testing/generic_fns/state.py


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

Header


Content

Posted by edward on July 20, 2011 - 15:49:
Author: bugman
Date: Wed Jul 20 15:49:29 2011
New Revision: 13779

URL: http://svn.gna.org/viewcvs/relax?rev=13779&view=rev
Log:
The loading of a relax state now signals that there has been a current data 
pipe change.

This is via the status.observers.pipe_switch object.


Modified:
    branches/gui_testing/generic_fns/state.py

Modified: branches/gui_testing/generic_fns/state.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/generic_fns/state.py?rev=13779&r1=13778&r2=13779&view=diff
==============================================================================
--- branches/gui_testing/generic_fns/state.py (original)
+++ branches/gui_testing/generic_fns/state.py Wed Jul 20 15:49:29 2011
@@ -32,6 +32,7 @@
 from generic_fns.reset import reset
 from relax_errors import RelaxError
 from relax_io import open_read_file, open_write_file
+from status import Status; status = Status()
 
 
 def determine_format(file):
@@ -138,6 +139,9 @@
     else:
         raise RelaxError("The saved state " + repr(state) + " is not 
compatible with this version of relax.")
 
+    # Signal a change in the current data pipe.
+    status.observers.pipe_switch.notify()
+
 
 def save_state(state=None, dir=None, compress_type=1, verbosity=1, 
force=False, pickle=False):
     """Function for saving the program state.




Related Messages


Powered by MHonArc, Updated Wed Jul 20 16:00:02 2011