Author: bugman Date: Thu Jul 3 22:24:40 2008 New Revision: 6630 URL: http://svn.gna.org/viewcvs/relax?rev=6630&view=rev Log: Rearranged the pipe switching before data duplication. 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=6630&r1=6629&r2=6630&view=diff ============================================================================== --- 1.3/generic_fns/model_selection.py (original) +++ 1.3/generic_fns/model_selection.py Thu Jul 3 22:24:40 2008 @@ -298,11 +298,12 @@ # Print out of selected model. print "\nThe model from the data pipe " + `best_model` + " has been selected." - # Switch to the selected data pipe. - switch(best_model) - # Duplicate the data from the 'best_model' to the model selection data pipe. if best_model != None: + # Switch to the selected data pipe. + switch(best_model) + + # Duplicate. duplicate_data[best_model](pipe_from=best_model, pipe_to=modsel_pipe, model_index=i, global_stats=global_stats) # Switch to the model selection pipe.