Author: bugman Date: Thu Jul 29 17:58:54 2010 New Revision: 11385 URL: http://svn.gna.org/viewcvs/relax?rev=11385&view=rev Log: pipe.display() now places quotation marks around the pipe names and shows which is the current data 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=11385&r1=11384&r2=11385&view=diff ============================================================================== --- 1.3/generic_fns/pipes.py (original) +++ 1.3/generic_fns/pipes.py Thu Jul 29 17:58:54 2010 @@ -138,11 +138,17 @@ """Print the details of all the data pipes.""" # Heading. - print(("%-20s%-20s" % ("Data pipe name", "Data pipe type"))) + print(("%-20s%-20s%-20s" % ("Data pipe name", "Data pipe type", "Current"))) # Loop over the data pipes. for pipe_name in ds: - print(("%-20s%-20s" % (pipe_name, get_type(pipe_name)))) + # The current data pipe. + current = '' + if pipe_name == cdp_name(): + current = '*' + + # Print out. + print("%-20s%-20s%-20s" % ("'"+pipe_name+"'", get_type(pipe_name), current)) def get_pipe(name=None):