Author: bugman Date: Fri Sep 11 17:55:23 2009 New Revision: 9523 URL: http://svn.gna.org/viewcvs/relax?rev=9523&view=rev Log: Added a check for the setting of the domain the tensor corresponds to. Modified: 1.3/specific_fns/frame_order.py Modified: 1.3/specific_fns/frame_order.py URL: http://svn.gna.org/viewcvs/relax/1.3/specific_fns/frame_order.py?rev=9523&r1=9522&r2=9523&view=diff ============================================================================== --- 1.3/specific_fns/frame_order.py (original) +++ 1.3/specific_fns/frame_order.py Fri Sep 11 17:55:23 2009 @@ -68,6 +68,9 @@ raise RelaxError("The reference domain has not been set up.") if not hasattr(cdp.align_tensors, 'reduction'): raise RelaxError("The tensor reductions have not been specified.") + for i, tensor in self.__tensor_loop(): + if not hasattr(tensor, 'domain'): + raise RelaxError("The domain that the '%s' tensor is attached to has not been set" % tensor.name) # Initialise. n = len(cdp.align_tensors.reduction)