Author: bugman Date: Tue Mar 13 04:40:20 2007 New Revision: 3161 URL: http://svn.gna.org/viewcvs/relax?rev=3161&view=rev Log: Fixed the setting of the current data pipe so that the 'test_creation()' unit test passes. The current data pipe was not being set to the new data pipe created by the function 'generic_fns.pipes.create()'. Modified: 1.3/generic_fns/pipes.py Modified: 1.3/generic_fns/pipes.py URL: http://svn.gna.org/viewcvs/relax/1.3/generic_fns/pipes.py?rev=3161&r1=3160&r2=3161&view=diff ============================================================================== --- 1.3/generic_fns/pipes.py (original) +++ 1.3/generic_fns/pipes.py Tue Mar 13 04:40:20 2007 @@ -40,6 +40,9 @@ def create(pipe_name=None, pipe_type=None): """Create a new data pipe. + The current data pipe will be changed to this new data pipe. + + @param pipe_name: The name of the new data pipe. @type pipe_name: str @param pipe_type: The new data pipe type which can be one of the following: @@ -71,6 +74,9 @@ # Add the data pipe type string to the container. relax_data_store[pipe_name].pipe_type = pipe_type + + # Change the current data pipe. + relax_data_store.current_pipe = pipe_name def delete(pipe_name=None):