Author: bugman Date: Fri Jul 22 16:30:29 2011 New Revision: 13835 URL: http://svn.gna.org/viewcvs/relax?rev=13835&view=rev Log: Fix for the model-free _determine_model_type() method when the spin container has no 'local_tm'. This code was failing in certain rare circumstances (when the setting up of the diffusion tensor was forgotten). Modified: 1.3/specific_fns/model_free/main.py Modified: 1.3/specific_fns/model_free/main.py URL: http://svn.gna.org/viewcvs/relax/1.3/specific_fns/model_free/main.py?rev=13835&r1=13834&r2=13835&view=diff ============================================================================== --- 1.3/specific_fns/model_free/main.py (original) +++ 1.3/specific_fns/model_free/main.py Fri Jul 22 16:30:29 2011 @@ -738,7 +738,7 @@ if not diffusion_tensor.diff_data_exists(): # Catch when the local tm value is set but not in the parameter list. for spin in spin_loop(): - if spin.local_tm != None and not 'local_tm' in spin.params: + if hasattr(spin, 'local_tm') and spin.local_tm != None and not 'local_tm' in spin.params: raise RelaxError("The local tm value is set but not located in the model parameter list.") # Normal error.