mailr6629 - /1.3/generic_fns/model_selection.py


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

Header


Content

Posted by edward on July 03, 2008 - 22:19:
Author: bugman
Date: Thu Jul  3 22:19:40 2008
New Revision: 6629

URL: http://svn.gna.org/viewcvs/relax?rev=6629&view=rev
Log:
Changed the pipe switching behaviour of the model_selection function.

Rather than finishing on the original current data pipe, as the function 
creates a model selection
pipe then the function finishes by switching to that pipe.


Modified:
    1.3/generic_fns/model_selection.py

Modified: 1.3/generic_fns/model_selection.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/generic_fns/model_selection.py?rev=6629&r1=6628&r2=6629&view=diff
==============================================================================
--- 1.3/generic_fns/model_selection.py (original)
+++ 1.3/generic_fns/model_selection.py Thu Jul  3 22:19:40 2008
@@ -120,9 +120,6 @@
     if pipes == None:
         # Get all data pipe names from the relax data store.
         pipes = ds.keys()
-
-    # Store the current data pipe (for restoration at the end).
-    current_pipe = ds.current_pipe
 
     # Select the model selection technique.
     if method == 'AIC':
@@ -308,6 +305,6 @@
         if best_model != None:
             duplicate_data[best_model](pipe_from=best_model, 
pipe_to=modsel_pipe, model_index=i, global_stats=global_stats)
 
-    # Restore the current data pipe.
-    ds.current_pipe = current_pipe
-
+    # Switch to the model selection pipe.
+    switch(modsel_pipe)
+




Related Messages


Powered by MHonArc, Updated Thu Jul 03 22:40:15 2008