[prev in list] [next in list] [prev in thread] [next in thread] 

List:       relax-commits
Subject:    r2712 - in /branches/tensor_pdb: errors.py generic_fns/pymol.py
From:       edward.dauvergne () domain ! hid
Date:       2006-10-31 8:03:16
Message-ID: E1Geoaa-0004yL-TA () subversion ! gna ! org
[Download RAW message or body]

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:


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic