Author: bugman Date: Mon Jun 4 16:10:31 2012 New Revision: 16634 URL: http://svn.gna.org/viewcvs/relax?rev=16634&view=rev Log: Implemented the generic_fns.pipes.has_bundle() function for determining if a bundle exists. Modified: branches/uf_redesign/generic_fns/pipes.py Modified: branches/uf_redesign/generic_fns/pipes.py URL: http://svn.gna.org/viewcvs/relax/branches/uf_redesign/generic_fns/pipes.py?rev=16634&r1=16633&r2=16634&view=diff ============================================================================== --- branches/uf_redesign/generic_fns/pipes.py (original) +++ branches/uf_redesign/generic_fns/pipes.py Mon Jun 4 16:10:31 2012 @@ -310,6 +310,22 @@ return pipe.pipe_type +def has_bundle(bundle=None): + """Determine if the relax data store contains the data pipe bundle. + + @keyword bundle: The name of the data pipe bundle. + @type bundle: str + @return: The answer to the question. + @rtype: bool + """ + + # Is the bundle in the keys. + if bundle in ds.pipe_bundles.keys(): + return True + else: + return False + + def has_pipe(name): """Determine if the relax data store contains the data pipe.