Author: bugman Date: Mon Oct 23 10:24:31 2006 New Revision: 2660 URL: http://svn.gna.org/viewcvs/relax?rev=2660&view=rev Log: A fix for the error when trying to plot MC sim data with reduced spectral density mapping. This problem was reported by Daniel Perez (daniel dot perez at mol dot biol dot ethz dot ch) in the post at https://mail.gna.org/public/relax-users/2006-10/msg00043.html (Message-id: <453C7154.4040603@xxxxxxxxxxxxxxxx>). In case this fix isn't for the same problem (no traceback was provided), the error message that this solves is reproduced at https://mail.gna.org/public/relax-users/2006-10/msg00045.html (Message-id: <7f080ed10610230104w3a873225hd5481581886efacf@xxxxxxxxxxxxxx>). The problem was the the function 'return_values' in the file 'specific_fns/jw_mapping.py' was a copy of an ancient function which did not support MC simulation data. All other types of analysis were using the function from their common base class. By deleting this ancient code, the base class function is utilised and the grace.write() user function now works with simulation data. Modified: 1.2/specific_fns/jw_mapping.py Modified: 1.2/specific_fns/jw_mapping.py URL: http://svn.gna.org/viewcvs/relax/1.2/specific_fns/jw_mapping.py?rev=2660&r1=2659&r2=2660&view=diff ============================================================================== --- 1.2/specific_fns/jw_mapping.py (original) +++ 1.2/specific_fns/jw_mapping.py Mon Oct 23 10:24:31 2006 @@ -355,35 +355,6 @@ return 'ppm' - def return_value(self, run, i, data_type): - """Function for returning the value and error corresponding to 'data_type'.""" - - # Arguments. - self.run = run - - # Remap the data structure 'self.relax.data.res[run][i]'. - data = self.relax.data.res[run][i] - - # Get the object. - object_name = self.return_data_name(data_type) - if not object_name: - raise RelaxError, "The reduced spectral density mapping data type " + `data_type` + " does not exist." - object_error = object_name + "_err" - - # Get the value. - value = None - if hasattr(data, object_name): - value = getattr(data, object_name) - - # Get the error. - error = None - if hasattr(data, object_error): - error = getattr(data, object_error) - - # Return the data. - return value, error - - def set(self, run=None, value=None, error=None, param=None, index=None): """ Reduced spectral density mapping set details