mailr6622 - /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 - 21:31:
Author: bugman
Date: Thu Jul  3 21:31:01 2008
New Revision: 6622

URL: http://svn.gna.org/viewcvs/relax?rev=6622&view=rev
Log:
Added a test to make sure that the model selection data pipe doesn't exist.


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=6622&r1=6621&r2=6622&view=diff
==============================================================================
--- 1.3/generic_fns/model_selection.py (original)
+++ 1.3/generic_fns/model_selection.py Thu Jul  3 21:31:01 2008
@@ -114,7 +114,11 @@
     @type pipes:            list of str
     """
 
-    # Use all pipes (but the current).
+    # Test if the pipe already exists.
+    if ds.has_key(modsel_pipe):
+        raise RelaxPipeError, modsel_pipe
+
+    # Use all pipes.
     if pipes == None:
         # Get all data pipe names from the relax data store.
         pipes = ds.keys()




Related Messages


Powered by MHonArc, Updated Thu Jul 03 21:40:11 2008