mailr22873 - /trunk/specific_analyses/relax_disp/optimisation.py


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

Header


Content

Posted by tlinnet on April 29, 2014 - 15:04:
Author: tlinnet
Date: Tue Apr 29 15:04:00 2014
New Revision: 22873

URL: http://svn.gna.org/viewcvs/relax?rev=22873&view=rev
Log:
Python 3 fix.

Feature request: #3151, (https://gna.org/support/index.php?3151) - User 
function to set the R20 parameters in the default grid search using the 
minimum R2eff value.

Modified:
    trunk/specific_analyses/relax_disp/optimisation.py

Modified: trunk/specific_analyses/relax_disp/optimisation.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/specific_analyses/relax_disp/optimisation.py?rev=22873&r1=22872&r2=22873&view=diff
==============================================================================
--- trunk/specific_analyses/relax_disp/optimisation.py  (original)
+++ trunk/specific_analyses/relax_disp/optimisation.py  Tue Apr 29 15:04:00 
2014
@@ -396,7 +396,7 @@
                 upper[param_index] = val
 
             # Test if the value is a dict, for example for r2.
-            if type(val) == dict:
+            if isinstance(val, dict):
                     # Test if r20_key exists.
                     if r20_key != None:
                         try:




Related Messages


Powered by MHonArc, Updated Tue Apr 29 15:20:02 2014