mailr22925 - /trunk/specific_analyses/api.py


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

Header


Content

Posted by edward on May 02, 2014 - 14:16:
Author: bugman
Date: Fri May  2 14:16:11 2014
New Revision: 22925

URL: http://svn.gna.org/viewcvs/relax?rev=22925&view=rev
Log:
Added a check for the existence of data pipes to the return_api() specific 
analysis function.


Modified:
    trunk/specific_analyses/api.py

Modified: trunk/specific_analyses/api.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/specific_analyses/api.py?rev=22925&r1=22924&r2=22925&view=diff
==============================================================================
--- trunk/specific_analyses/api.py      (original)
+++ trunk/specific_analyses/api.py      Fri May  2 14:16:11 2014
@@ -28,6 +28,7 @@
 # relax module imports.
 from data_store import Relax_data_store; ds = Relax_data_store()
 from lib.errors import RelaxError
+from pipe_control import pipes
 
 
 def get_string(function_type):
@@ -83,6 +84,9 @@
 
     # The analysis type, if not given.
     if analysis_type is None:
+        # Check if a data pipe exists.
+        pipes.test()
+
         # Use a custom data pipe name.
         if pipe_name:
             analysis_type = ds[pipe_name].pipe_type




Related Messages


Powered by MHonArc, Updated Fri May 02 14:20:02 2014