mailr28136 - /trunk/specific_analyses/model_free/api.py


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

Header


Content

Posted by edward on November 30, 2015 - 18:33:
Author: bugman
Date: Mon Nov 30 18:33:36 2015
New Revision: 28136

URL: http://svn.gna.org/viewcvs/relax?rev=28136&view=rev
Log:
Another fix for bug #24131 (https://gna.org/bugs/?24131).

This is the BMRB export failure when the SpinContainer object has no s2 
attribute.  Now no data is
stored in the BMRB file if a model-free model has not been set up for the 
spin.  This allows the
test suite to pass.


Modified:
    trunk/specific_analyses/model_free/api.py

Modified: trunk/specific_analyses/model_free/api.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/specific_analyses/model_free/api.py?rev=28136&r1=28135&r2=28136&view=diff
==============================================================================
--- trunk/specific_analyses/model_free/api.py   (original)
+++ trunk/specific_analyses/model_free/api.py   Mon Nov 30 18:33:36 2015
@@ -238,6 +238,11 @@
                 warn(RelaxWarning("Skipping the proton spin '%s'." % 
spin_id))
                 continue
 
+            # No model setup.
+            if not hasattr(spin, 'model'):
+                warn(RelaxWarning("Skipping the spin '%s' as no model-free 
model has been set up." % spin_id))
+                continue
+
             # Check the data for None (not allowed in BMRB!).
             if res_num == None:
                 raise RelaxError("For the BMRB, the residue of spin '%s' 
must be numbered." % spin_id)




Related Messages


Powered by MHonArc, Updated Mon Nov 30 18:40:06 2015