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