mailr9523 - /1.3/specific_fns/frame_order.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on September 11, 2009 - 17:55:
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)




Related Messages


Powered by MHonArc, Updated Mon Sep 14 14:00:02 2009