Author: bugman Date: Mon Feb 7 19:00:09 2011 New Revision: 12517 URL: http://svn.gna.org/viewcvs/relax?rev=12517&view=rev Log: Fix for the N-state model error returning method for when errors are not present. The spin_id variable was not defined. Modified: 1.3/specific_fns/n_state_model.py Modified: 1.3/specific_fns/n_state_model.py URL: http://svn.gna.org/viewcvs/relax/1.3/specific_fns/n_state_model.py?rev=12517&r1=12516&r2=12517&view=diff ============================================================================== --- 1.3/specific_fns/n_state_model.py (original) +++ 1.3/specific_fns/n_state_model.py Mon Feb 7 19:00:09 2011 @@ -1,6 +1,6 @@ ############################################################################### # # -# Copyright (C) 2007-2010 Edward d'Auvergne # +# Copyright (C) 2007-2011 Edward d'Auvergne # # # # This file is part of the program relax. # # # @@ -2230,7 +2230,7 @@ if data_id[1] == 'rdc' and hasattr(spin, 'rdc'): # Do errors exist? if not hasattr(spin, 'rdc_err'): - raise(RelaxError, "The RDC errors are missing for spin '%s'." % spin_id) + raise(RelaxError, "The RDC errors are missing for spin '%s'." % data_id[0]) # Append the data. mc_errors.append(spin.rdc_err[data_id[2]]) @@ -2239,7 +2239,7 @@ elif data_id[1] == 'pcs' and hasattr(spin, 'pcs'): # Do errors exist? if not hasattr(spin, 'pcs_err'): - raise(RelaxError, "The PCS errors are missing for spin '%s'." % spin_id) + raise(RelaxError, "The PCS errors are missing for spin '%s'." % data_id[0]) # Append the data. mc_errors.append(spin.pcs_err[data_id[2]]) @@ -2248,7 +2248,7 @@ elif hasattr(spin, 'noesy'): # Do errors exist? if not hasattr(spin, 'noesy_err'): - raise(RelaxError, "The NOESY errors are missing for spin '%s'." % spin_id) + raise(RelaxError, "The NOESY errors are missing for spin '%s'." % data_id[0]) # Append the data. mc_errors.append(spin.noesy_err)