Author: bugman Date: Tue Mar 1 18:13:01 2011 New Revision: 12660 URL: http://svn.gna.org/viewcvs/relax?rev=12660&view=rev Log: Converted RelaxNoRiError and RelaxRiError to the new ID string design. Modified: branches/relax_data/relax_errors.py Modified: branches/relax_data/relax_errors.py URL: http://svn.gna.org/viewcvs/relax/branches/relax_data/relax_errors.py?rev=12660&r1=12659&r2=12660&view=diff ============================================================================== --- branches/relax_data/relax_errors.py (original) +++ branches/relax_data/relax_errors.py Tue Mar 1 18:13:01 2011 @@ -590,13 +590,13 @@ # No relaxation data. class RelaxNoRiError(BaseError): - def __init__(self, ri_label, frq_label): - self.text = "Relaxation data corresponding to ri_label = " + repr(ri_label) + " and frq_label = " + repr(frq_label) + " does not exist." + def __init__(self, ri_id): + self.text = "Relaxation data corresponding to the ID string '%s' does not exist." % ri_id # Relaxation data already exists. class RelaxRiError(BaseError): - def __init__(self, ri_label, frq_label): - self.text = "Relaxation data corresponding to ri_label = " + repr(ri_label) + " and frq_label = " + repr(frq_label) + " already exists." + def __init__(self, ri_id): + self.text = "Relaxation data corresponding to the ID string '%s' already exists." % ri_id # RDC and PCS data errors.