mailr4887 - in /1.3/specific_fns: __init__.py base_class.py


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

Header


Content

Posted by edward on January 25, 2008 - 15:50:
Author: bugman
Date: Fri Jan 25 15:31:19 2008
New Revision: 4887

URL: http://svn.gna.org/viewcvs/relax?rev=4887&view=rev
Log:
Implemented the is_spin_param() base class method.

This function always returns true.


Modified:
    1.3/specific_fns/__init__.py
    1.3/specific_fns/base_class.py

Modified: 1.3/specific_fns/__init__.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/specific_fns/__init__.py?rev=4887&r1=4886&r2=4887&view=diff
==============================================================================
--- 1.3/specific_fns/__init__.py (original)
+++ 1.3/specific_fns/__init__.py Fri Jan 25 15:31:19 2008
@@ -103,6 +103,10 @@
         if eqi == 'init_sim_values':
             function = inst.sim_init_values
 
+        # Spin specific parameter determining function.
+        if eqi == 'is_spin_param':
+            function = inst.is_spin_param
+
         # Map bounds function.
         if eqi == 'map_bounds':
             function = inst.map_bounds

Modified: 1.3/specific_fns/base_class.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/specific_fns/base_class.py?rev=4887&r1=4886&r2=4887&view=diff
==============================================================================
--- 1.3/specific_fns/base_class.py (original)
+++ 1.3/specific_fns/base_class.py Fri Jan 25 15:31:19 2008
@@ -66,6 +66,22 @@
 
         # No errors found.
         return False
+
+
+    def is_spin_param(self, name):
+        """Determine whether the given parameter is spin specific.
+
+        This base class method always returns true, hence all parameters 
will be considered
+        residents of a SpinContainer object unless this method is 
overwritten.
+
+        @param name:    The name of the parameter.
+        @type name:     str
+        @return:        True
+        @rtype:         bool
+        """
+
+        # Return the default of True.
+        return True
 
 
     def num_instances(self):




Related Messages


Powered by MHonArc, Updated Fri Jan 25 16:00:19 2008