Author: bugman Date: Wed Oct 1 13:53:28 2008 New Revision: 7477 URL: http://svn.gna.org/viewcvs/relax?rev=7477&view=rev Log: Added the switch flag to pipes.create() so that the new pipe doesn't have to be switched to. Modified: branches/pipe_refs/generic_fns/pipes.py Modified: branches/pipe_refs/generic_fns/pipes.py URL: http://svn.gna.org/viewcvs/relax/branches/pipe_refs/generic_fns/pipes.py?rev=7477&r1=7476&r2=7477&view=diff ============================================================================== --- branches/pipe_refs/generic_fns/pipes.py (original) +++ branches/pipe_refs/generic_fns/pipes.py Wed Oct 1 13:53:28 2008 @@ -60,15 +60,15 @@ ds[pipe_to] = ds[pipe_from].__clone__() -def create(pipe_name=None, pipe_type=None): +def create(pipe_name=None, pipe_type=None, switch=True): """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: + @keyword pipe_name: The name of the new data pipe. + @type pipe_name: str + @keyword pipe_type: The new data pipe type which can be one of the following: 'ct': Consistency testing, 'jw': Reduced spectral density mapping, 'mf': Model-free analysis, @@ -77,6 +77,9 @@ 'relax_fit': Relaxation curve fitting, 'srls': SRLS analysis. @type pipe_type: str + @keyword switch: If True, this new pipe will be switched to, otherwise the current data pipe + will remain as is. + @type switch: bool """ # List of valid data pipe types.