mailr15030 - /branches/frame_order_testing/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 December 05, 2011 - 15:58:
Author: bugman
Date: Mon Dec  5 15:58:20 2011
New Revision: 15030

URL: http://svn.gna.org/viewcvs/relax?rev=15030&view=rev
Log:
The frame_order.ref_domain user function now also checks that the domain is 
defined.


Modified:
    branches/frame_order_testing/specific_fns/frame_order.py

Modified: branches/frame_order_testing/specific_fns/frame_order.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/frame_order_testing/specific_fns/frame_order.py?rev=15030&r1=15029&r2=15030&view=diff
==============================================================================
--- branches/frame_order_testing/specific_fns/frame_order.py (original)
+++ branches/frame_order_testing/specific_fns/frame_order.py Mon Dec  5 
15:58:20 2011
@@ -942,6 +942,10 @@
 
         # Test if the current data pipe exists.
         pipes.test()
+
+        # 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)
 
         # Test if the reference domain exists.
         exists = False




Related Messages


Powered by MHonArc, Updated Mon Dec 05 16:20:02 2011