Author: bugman Date: Wed Mar 2 18:32:12 2011 New Revision: 12740 URL: http://svn.gna.org/viewcvs/relax?rev=12740&view=rev Log: Updated the _return_data_relax_data() and _return_error_relax_data() common API methods for the new design. Modified: branches/relax_data/specific_fns/api_common.py Modified: branches/relax_data/specific_fns/api_common.py URL: http://svn.gna.org/viewcvs/relax/branches/relax_data/specific_fns/api_common.py?rev=12740&r1=12739&r2=12740&view=diff ============================================================================== --- branches/relax_data/specific_fns/api_common.py (original) +++ branches/relax_data/specific_fns/api_common.py Wed Mar 2 18:32:12 2011 @@ -228,7 +228,13 @@ @rtype: list of float """ - return spin.relax_data + # Convert to a list. + data = [] + for ri_id in cdp.ri_ids: + data.append(spin.ri_data[ri_id]) + + # Return the list. + return data def _return_error_relax_data(self, data_id): @@ -243,8 +249,13 @@ # Get the spin container. spin = return_spin(data_id) - # Return the data. - return spin.relax_error + # Convert to a list. + error = [] + for ri_id in cdp.ri_ids: + error.append(spin.ri_data_err[ri_id]) + + # Return the list. + return error def _return_value_general(self, spin, param, sim=None):