mailr6319 - /1.3/generic_fns/structure/scientific.py


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

Header


Content

Posted by edward on June 07, 2008 - 01:48:
Author: bugman
Date: Sat Jun  7 01:48:13 2008
New Revision: 6319

URL: http://svn.gna.org/viewcvs/relax?rev=6319&view=rev
Log:
Added a test for the Scientific PDB parser availability when initialising the 
structural object.


Modified:
    1.3/generic_fns/structure/scientific.py

Modified: 1.3/generic_fns/structure/scientific.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/generic_fns/structure/scientific.py?rev=6319&r1=6318&r2=6319&view=diff
==============================================================================
--- 1.3/generic_fns/structure/scientific.py (original)
+++ 1.3/generic_fns/structure/scientific.py Sat Jun  7 01:48:13 2008
@@ -49,6 +49,16 @@
 
     # Identification string.
     id = 'scientific'
+
+    def __init__(self):
+        """Initialise the class."""
+
+        # Test for the PDB parser availability.
+        if not module_avail:
+            raise RelaxError, "The Scientific python PDB module 
Scientific.IO.PDB could not be imported."
+
+        # The parser specific data object.
+        self.structural_data = []
 
 
     def __find_bonded_atom(self, attached_atom, mol_type, res):




Related Messages


Powered by MHonArc, Updated Sat Jun 07 19:40:11 2008