mailr7576 - /1.3/specific_fns/noe.py


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

Header


Content

Posted by edward on October 07, 2008 - 23:29:
Author: bugman
Date: Tue Oct  7 23:29:38 2008
New Revision: 7576

URL: http://svn.gna.org/viewcvs/relax?rev=7576&view=rev
Log:
Deleted the return_value() method as the base class method is sufficient.


Modified:
    1.3/specific_fns/noe.py

Modified: 1.3/specific_fns/noe.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/specific_fns/noe.py?rev=7576&r1=7575&r2=7576&view=diff
==============================================================================
--- 1.3/specific_fns/noe.py (original)
+++ 1.3/specific_fns/noe.py Tue Oct  7 23:29:38 2008
@@ -198,35 +198,6 @@
         return None
 
 
-    def return_value(self, run, i, data_type='noe'):
-        """Function for returning the NOE value and error."""
-
-        # Arguments.
-        self.run = run
-
-        # Remap the data structure 'ds.res[run][i]'.
-        data = ds.res[run][i]
-
-        # Get the object.
-        object_name = self.return_data_name(data_type)
-        if not object_name:
-            raise RelaxError, "The NOE calculation 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_error(self, error=0.0, spectrum_type=None, spin_id=None):
         """Set the peak intensity errors.
 




Related Messages


Powered by MHonArc, Updated Wed Oct 08 00:00:04 2008