mailr5581 - /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 April 11, 2008 - 14:40:
Author: bugman
Date: Fri Apr 11 14:40:55 2008
New Revision: 5581

URL: http://svn.gna.org/viewcvs/relax?rev=5581&view=rev
Log:
Readded the condition to catch if no molecules can be identified in 
atom_loop().


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=5581&r1=5580&r2=5581&view=diff
==============================================================================
--- 1.3/generic_fns/structure/scientific.py (original)
+++ 1.3/generic_fns/structure/scientific.py Fri Apr 11 14:40:55 2008
@@ -106,8 +106,12 @@
                     molecule.append('nucleic acid')
 
             # Other molecules.
+            elif struct.molecules:
+                pass  # for now.
+
+            # We have a problem!
             else:
-                pass  # for now.
+                raise RelaxNoPdbChainError
 
             # Loop over each individual molecules.
             for mol in comps:




Related Messages


Powered by MHonArc, Updated Fri Apr 11 15:00:17 2008