mailr2712 - in /branches/tensor_pdb: errors.py generic_fns/pymol.py


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

Header


Content

Posted by edward . dauvergne on October 31, 2006 - 09:03:
Author: bugman
Date: Tue Oct 31 09:03:15 2006
New Revision: 2712

URL: http://svn.gna.org/viewcvs/relax?rev=2712&view=rev
Log:
Added RelaxImplementError for raising an error when code is executed which 
hasn't been implemented.

The PyMOL macro functions now call this error.


Modified:
    branches/tensor_pdb/errors.py
    branches/tensor_pdb/generic_fns/pymol.py

Modified: branches/tensor_pdb/errors.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/tensor_pdb/errors.py?rev=2712&r1=2711&r2=2712&view=diff
==============================================================================
--- branches/tensor_pdb/errors.py (original)
+++ branches/tensor_pdb/errors.py Tue Oct 31 09:03:15 2006
@@ -93,6 +93,15 @@
             self.save_state()
 
 
+    # Code implementation errors.
+    #############################
+
+    # Not implemented yet.
+    class RelaxImplementError(BaseError):
+        def __init__(self):
+            self.text = "This function has not yet been implement."
+
+
     # Program errors.
     #################
 

Modified: branches/tensor_pdb/generic_fns/pymol.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/tensor_pdb/generic_fns/pymol.py?rev=2712&r1=2711&r2=2712&view=diff
==============================================================================
--- branches/tensor_pdb/generic_fns/pymol.py (original)
+++ branches/tensor_pdb/generic_fns/pymol.py Tue Oct 31 09:03:15 2006
@@ -102,7 +102,7 @@
         self.colour_list = colour_list
 
         # No coded yet.
-        raise RelaxError, "This function has not yet been implemented."
+        raise RelaxImplementError
 
         # Test if the run exists.
         if not self.run in self.relax.data.run_names:
@@ -231,7 +231,7 @@
         self.colour_list = colour_list
 
         # No coded yet.
-        raise RelaxError, "This function has not yet been implemented."
+        raise RelaxImplementError
 
         # Test if the run exists.
         if not self.run in self.relax.data.run_names:




Related Messages


Powered by MHonArc, Updated Tue Oct 31 09:20:05 2006