mailr19408 - /trunk/specific_analyses/api_common.py


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

Header


Content

Posted by edward on April 09, 2013 - 18:54:
Author: bugman
Date: Tue Apr  9 18:54:26 2013
New Revision: 19408

URL: http://svn.gna.org/viewcvs/relax?rev=19408&view=rev
Log:
Fix for the analysis specific API common _return_value_general() method.

The value of None is now handled properly when a simulation value is asked 
for.


Modified:
    trunk/specific_analyses/api_common.py

Modified: trunk/specific_analyses/api_common.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/specific_analyses/api_common.py?rev=19408&r1=19407&r2=19408&view=diff
==============================================================================
--- trunk/specific_analyses/api_common.py (original)
+++ trunk/specific_analyses/api_common.py Tue Apr  9 18:54:26 2013
@@ -400,6 +400,8 @@
         # Return the data.
         if sim == None:
             return value, error
+        elif value == None:
+            return value, error
         else:
             return value[sim], error
 




Related Messages


Powered by MHonArc, Updated Tue Apr 09 22:00:01 2013