mailr9414 - /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 August 31, 2009 - 17:52:
Author: bugman
Date: Mon Aug 31 17:52:41 2009
New Revision: 9414

URL: http://svn.gna.org/viewcvs/relax?rev=9414&view=rev
Log:
Bug fix for the ref_domain() method.

This method now works if no domain names have been associated with the 
tensors.


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=9414&r1=9413&r2=9414&view=diff
==============================================================================
--- 1.3/specific_fns/frame_order.py (original)
+++ 1.3/specific_fns/frame_order.py Mon Aug 31 17:52:41 2009
@@ -757,7 +757,7 @@
         # Test if the reference domain exists.
         exists = False
         for tensor_cont in cdp.align_tensors:
-            if tensor_cont.domain == ref:
+            if hasattr(tensor_cont, 'domain') and tensor_cont.domain == ref:
                 exists = True
         if not exists:
             raise RelaxError("The reference domain cannot be found within 
any of the loaded tensors.")




Related Messages


Powered by MHonArc, Updated Wed Sep 02 21:20:10 2009