Author: bugman Date: Mon Dec 5 15:55:30 2011 New Revision: 15029 URL: http://svn.gna.org/viewcvs/relax?rev=15029&view=rev Log: The align_tensor.init user function now checks that the domain has been defined. Modified: branches/frame_order_testing/generic_fns/align_tensor.py Modified: branches/frame_order_testing/generic_fns/align_tensor.py URL: http://svn.gna.org/viewcvs/relax/branches/frame_order_testing/generic_fns/align_tensor.py?rev=15029&r1=15028&r2=15029&view=diff ============================================================================== --- branches/frame_order_testing/generic_fns/align_tensor.py (original) +++ branches/frame_order_testing/generic_fns/align_tensor.py Mon Dec 5 15:55:30 2011 @@ -1798,6 +1798,10 @@ @type domain: str """ + # Check that the domain is defined. + if not hasattr(cdp, 'domain') or domain not in cdp.domain.keys(): + raise RelaxError("The domain '%s' has not been defined. Please use the domain user function." % domain) + # Loop over the tensors. match = False for tensor_cont in cdp.align_tensors: