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()