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) _______________________________________________ relax (http://www.nmr-relax.com) This is the relax-commits mailing list relax-commits@gna.org To unsubscribe from this list, get a password reminder, or change your subscription options, visit the list information page at https://mail.gna.org/listinfo/relax-commits