Author: bugman Date: Tue Mar 13 04:41:19 2007 New Revision: 3162 URL: http://svn.gna.org/viewcvs/relax?rev=3162&view=rev Log: Fixed the setting of the current data pipe so that the 'test_deletion()' unit test passes. The current data pipe was not being set to None by the 'generic_fns.pipes.delete()' if the deleted pipe is the current pipe. 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=3162&r1=3161&r2=3162&view=diff ============================================================================== --- 1.3/generic_fns/pipes.py (original) +++ 1.3/generic_fns/pipes.py Tue Mar 13 04:41:19 2007 @@ -93,6 +93,10 @@ # Delete the data pipe. del relax_data_store[pipe_name] + # Set the current data pipe to None if it is the deleted data pipe. + if relax_data_store.current_pipe == pipe_name: + relax_data_store.current_pipe = None + def eliminate_unused_pipes(): """Function for eliminating any data pipes for which there is no data."""