mailr8008 - /branches/spectral_errors/relax_warnings.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on November 21, 2008 - 10:50:
Author: bugman
Date: Fri Nov 21 10:50:20 2008
New Revision: 8008

URL: http://svn.gna.org/viewcvs/relax?rev=8008&view=rev
Log:
Created a new warning class, RelaxDeselectWarning.

This is to be used by all overfit_deselect methods!


Modified:
    branches/spectral_errors/relax_warnings.py

Modified: branches/spectral_errors/relax_warnings.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/spectral_errors/relax_warnings.py?rev=8008&r1=8007&r2=8008&view=diff
==============================================================================
--- branches/spectral_errors/relax_warnings.py (original)
+++ branches/spectral_errors/relax_warnings.py Fri Nov 21 10:50:20 2008
@@ -113,6 +113,15 @@
         self.text = "The PDB file %s cannot be found, no structures will be 
loaded." % file
 
 
+# Misc.
+#######
+
+# Deselection warnings
+class RelaxDeselectWarning(BaseWarning):
+    def __init__(self, spin_id, reason):
+        self.text = "The spin '%s' has been deselected because of %s." % 
(spin_id, reason)
+
+
 
 # Format warning messages.
 warnings.formatwarning = format




Related Messages


Powered by MHonArc, Updated Fri Nov 21 11:00:04 2008