Author: bugman Date: Mon Sep 2 14:45:59 2013 New Revision: 20743 URL: http://svn.gna.org/viewcvs/relax?rev=20743&view=rev Log: Modified the create_mc_data() method to partly fix bug #21079 (https://gna.org/bugs/?21079). Some spins with local tm models remain selected despite not containing any data. These are handled explicitly. Instead of a RelaxNoModelError being raised, the method returns None to indicate that something went wrong. Modified: trunk/specific_analyses/model_free/main.py Modified: trunk/specific_analyses/model_free/main.py URL: http://svn.gna.org/viewcvs/relax/trunk/specific_analyses/model_free/main.py?rev=20743&r1=20742&r2=20743&view=diff ============================================================================== --- trunk/specific_analyses/model_free/main.py (original) +++ trunk/specific_analyses/model_free/main.py Mon Sep 2 14:45:59 2013 @@ -1264,9 +1264,9 @@ if not spin.select: return - # Test if the model is set. + # Test if the model is set, returning None to signal that the spin should be skipped. if not hasattr(spin, 'model') or not spin.model: - raise RelaxNoModelError + return None # Loop over the relaxation data. for ri_id in cdp.ri_ids: