mailr2661 - /1.3/specific_fns/jw_mapping.py


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

Header


Content

Posted by edward on October 23, 2006 - 10:28:
Author: bugman
Date: Mon Oct 23 10:28:26 2006
New Revision: 2661

URL: http://svn.gna.org/viewcvs/relax?rev=2661&view=rev
Log:
Ported r2660 from the 1.2 line.

The command used was:
$ svn merge -r2659:2660 svn+ssh://bugman@xxxxxxxxxxx/svn/relax/1.2

This fixes an error when trying to plot the MC simulation data in reduced 
spectral density mapping
using the 'grace.write()' user function.


Modified:
    1.3/specific_fns/jw_mapping.py

Modified: 1.3/specific_fns/jw_mapping.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/specific_fns/jw_mapping.py?rev=2661&r1=2660&r2=2661&view=diff
==============================================================================
--- 1.3/specific_fns/jw_mapping.py (original)
+++ 1.3/specific_fns/jw_mapping.py Mon Oct 23 10:28:26 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




Related Messages


Powered by MHonArc, Updated Mon Oct 23 11:20:06 2006