Author: bugman Date: Tue May 12 11:09:24 2009 New Revision: 9049 URL: http://svn.gna.org/viewcvs/relax?rev=9049&view=rev Log: Added 3 new RelaxErrors for sequence matching. Modified: 1.3/relax_errors.py Modified: 1.3/relax_errors.py URL: http://svn.gna.org/viewcvs/relax/1.3/relax_errors.py?rev=9049&r1=9048&r2=9049&view=diff ============================================================================== --- 1.3/relax_errors.py (original) +++ 1.3/relax_errors.py Tue May 12 11:09:24 2009 @@ -413,6 +413,21 @@ def __init__(self, pipe1, pipe2): self.text = "The sequences for the data pipes " + `pipe1` + " and " + `pipe2` + " are not the same." +# The number of molecules are different. +class RelaxDiffMolNumError(BaseError): + def __init__(self, pipe1, pipe2): + self.text = "The number of molecules do not match between pipes '%s' and '%s'." % (pipe1, pipe2) + +# The number of residues are different. +class RelaxDiffResNumError(BaseError): + def __init__(self, pipe1, pipe2): + self.text = "The number of residues do not match between pipes '%s' and '%s'." % (pipe1, pipe2) + +# The number of spins are different. +class RelaxDiffSpinNumError(BaseError): + def __init__(self, pipe1, pipe2): + self.text = "The number of spins do not match between pipes '%s' and '%s'." % (pipe1, pipe2) + # Cannot find the residue in the sequence. class RelaxNoResError(BaseError): def __init__(self, number, name=None):