mailr24562 - /trunk/specific_analyses/parameter_object.py


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

Header


Content

Posted by edward on July 18, 2014 - 10:58:
Author: bugman
Date: Fri Jul 18 10:58:56 2014
New Revision: 24562

URL: http://svn.gna.org/viewcvs/relax?rev=24562&view=rev
Log:
Bug fix for the parameter units descriptions.

This only affects a few rare parameters.  The specific analysis API parameter 
object units() method
was incorrectly checking if the units value is a function - it was checking 
the parameter conversion
factor instead.


Modified:
    trunk/specific_analyses/parameter_object.py

Modified: trunk/specific_analyses/parameter_object.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/specific_analyses/parameter_object.py?rev=24562&r1=24561&r2=24562&view=diff
==============================================================================
--- trunk/specific_analyses/parameter_object.py (original)
+++ trunk/specific_analyses/parameter_object.py Fri Jul 18 10:58:56 2014
@@ -703,7 +703,7 @@
         self.check_param(name)
 
         # Function.
-        if isinstance(self._conv_factor[name], FunctionType) or 
isinstance(self._conv_factor[name], MethodType):
+        if isinstance(self._units[name], FunctionType) or 
isinstance(self._units[name], MethodType):
             return self._units[name]()
 
         # Return the value.




Related Messages


Powered by MHonArc, Updated Fri Jul 18 11:00:03 2014