Author: bugman
Date: Fri Sep 26 09:55:10 2014
New Revision: 26045
URL: http://svn.gna.org/viewcvs/relax?rev=26045&view=rev
Log:
Created the RelaxNoFrqWarning warning class for warning that no spectrometer
information is present.
Modified:
trunk/lib/warnings.py
Modified: trunk/lib/warnings.py
URL:
http://svn.gna.org/viewcvs/relax/trunk/lib/warnings.py?rev=26045&r1=26044&r2=26045&view=diff
==============================================================================
--- trunk/lib/warnings.py (original)
+++ trunk/lib/warnings.py Fri Sep 26 09:55:10 2014
@@ -188,3 +188,18 @@
class RelaxDeselectWarning(BaseWarning):
def __init__(self, spin_id, reason):
self.text = "The spin '%s' has been deselected because of %s." %
(spin_id, reason)
+
+
+# Spectrometer information warnings.
+####################################
+
+# No frequency information.
+class RelaxNoFrqWarning(BaseWarning):
+ def __init__(self, pipe_name=None, id=None):
+ self.text = "No spectrometer frequency information"
+ if id != None:
+ self.text += " for the '%s' experiment ID" % id
+ self.text += " is present"
+ if pipe_name != None:
+ self.text += " in the '%s' data pipe" % pipe_name
+ self.text += "."
_______________________________________________
relax (http://www.nmr-relax.com)
This is the relax-commits mailing list
[email protected]
To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits