mailr21089 - /trunk/specific_analyses/api_common.py


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

Header


Content

Posted by edward on October 14, 2013 - 14:16:
Author: bugman
Date: Mon Oct 14 14:16:28 2013
New Revision: 21089

URL: http://svn.gna.org/viewcvs/relax?rev=21089&view=rev
Log:
Bug fix for the specific analysis API _data_init_spin() method.

This is used for the API init_spin() method.  This is a latent bug which does 
not affect any of the
current analyses in relax.  It was discovered in the relaxation dispersion 
branch.


Modified:
    trunk/specific_analyses/api_common.py

Modified: trunk/specific_analyses/api_common.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/specific_analyses/api_common.py?rev=21089&r1=21088&r2=21089&view=diff
==============================================================================
--- trunk/specific_analyses/api_common.py (original)
+++ trunk/specific_analyses/api_common.py Mon Oct 14 14:16:28 2013
@@ -103,6 +103,10 @@
             if name not in data_cont.params:
                 continue
 
+            # The value already exists.
+            if hasattr(data_cont, name):
+                continue
+
             # The default value.
             param_type = self.PARAMS.get_type(name)
             if param_type == dict:




Related Messages


Powered by MHonArc, Updated Mon Oct 14 14:40:01 2013