mailr8998 - /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 March 25, 2009 - 22:26:
Author: bugman
Date: Wed Mar 25 22:26:06 2009
New Revision: 8998

URL: http://svn.gna.org/viewcvs/relax?rev=8998&view=rev
Log:
Clean up of the model_loop() checking.


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=8998&r1=8997&r2=8998&view=diff
==============================================================================
--- 1.3/generic_fns/model_selection.py (original)
+++ 1.3/generic_fns/model_selection.py Wed Mar 25 22:26:06 2009
@@ -196,10 +196,9 @@
             model_statistics[pipes[i]] = get_specific_fn('model_stats', 
get_type(pipes[i]))
             skip_function[pipes[i]] = get_specific_fn('skip_function', 
get_type(pipes[i]))
 
-        # The model loop should be the same for all data pipes!
-        for j in xrange(len(pipes)):
-            if model_loop[pipes[0]] != model_loop[pipes[j]]:
-                raise RelaxError, "The models for each data pipes should be 
the same."
+            # The model loop should be the same for all data pipes!
+            if model_loop[pipes[0]] != model_loop[pipes[i]]:
+                raise RelaxError, "Bug:  The model loop for each data pipes 
should be the same!"
         model_loop = model_loop[pipes[0]]
 
         # The model description.




Related Messages


Powered by MHonArc, Updated Wed Mar 25 23:00:06 2009