mailr9221 - /1.3/specific_fns/consistency_tests.py


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

Header


Content

Posted by edward on July 14, 2009 - 11:49:
Author: bugman
Date: Tue Jul 14 11:49:22 2009
New Revision: 9221

URL: http://svn.gna.org/viewcvs/relax?rev=9221&view=rev
Log:
Fix for the return_units() method.  The spin and spin_id args are now 
accepted.


Modified:
    1.3/specific_fns/consistency_tests.py

Modified: 1.3/specific_fns/consistency_tests.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/specific_fns/consistency_tests.py?rev=9221&r1=9220&r2=9221&view=diff
==============================================================================
--- 1.3/specific_fns/consistency_tests.py (original)
+++ 1.3/specific_fns/consistency_tests.py Tue Jul 14 11:49:22 2009
@@ -420,12 +420,22 @@
             return '\\q\\xt\\f{}c\\Q'
 
 
-    def return_units(self, data_type):
+    def return_units(self, data_type, spin=None, spin_id=None):
         """Function for returning a string representing the parameters units.
 
         For example, the internal representation of te is in seconds, 
whereas the external
         representation is in picoseconds, therefore this function will 
return the string
         'picoseconds' for te.
+
+        @param data_type:   The name of the parameter to return the units 
string for.
+        @type data_type:    str
+        @param spin:        The spin container.
+        @type spin:         SpinContainer instance
+        @param spin_id:     The spin identification string (ignored if the 
spin container is
+                            supplied).
+        @type spin_id:      str
+        @return:            The string representation of the units.
+        @rtype:             str
         """
 
         # Get the object name.




Related Messages


Powered by MHonArc, Updated Tue Jul 14 12:20:02 2009