Author: bugman Date: Tue Sep 1 16:38:26 2009 New Revision: 9423 URL: http://svn.gna.org/viewcvs/relax?rev=9423&view=rev Log: The frame order minimisation now first checks if the tensor reductions have been specified. 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=9423&r1=9422&r2=9423&view=diff ============================================================================== --- 1.3/specific_fns/frame_order.py (original) +++ 1.3/specific_fns/frame_order.py Tue Sep 1 16:38:26 2009 @@ -66,6 +66,8 @@ # Checks. if not hasattr(cdp, 'ref_domain'): 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.") # Initialise. n = len(cdp.align_tensors.reduction)