Author: bugman Date: Mon Feb 7 19:07:19 2011 New Revision: 12518 URL: http://svn.gna.org/viewcvs/relax?rev=12518&view=rev Log: Fix for the calls to RelaxError in the N-state model return_error() method. 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=12518&r1=12517&r2=12518&view=diff ============================================================================== --- 1.3/specific_fns/n_state_model.py (original) +++ 1.3/specific_fns/n_state_model.py Mon Feb 7 19:07:19 2011 @@ -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'." % data_id[0]) + 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'." % data_id[0]) + 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'." % data_id[0]) + raise RelaxError("The NOESY errors are missing for spin '%s'." % data_id[0]) # Append the data. mc_errors.append(spin.noesy_err)