mailr5865 - /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 20, 2008 - 19:12:
Author: bugman
Date: Sun Apr 20 19:12:51 2008
New Revision: 5865

URL: http://svn.gna.org/viewcvs/relax?rev=5865&view=rev
Log:
Fix for the __molecule_loop() method.

Molecule names of None are now caught.


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=5865&r1=5864&r2=5865&view=diff
==============================================================================
--- 1.3/generic_fns/structure/scientific.py (original)
+++ 1.3/generic_fns/structure/scientific.py Sun Apr 20 19:12:51 2008
@@ -76,7 +76,7 @@
                     mol_name = None
 
                 # Skip non-matching molecules.
-                if sel_obj and '#' + mol_name not in sel_obj:
+                if sel_obj and mol_name and '#' + mol_name not in sel_obj:
                     continue
 
                 # Yield the molecule and its name.
@@ -94,7 +94,7 @@
                     mol_name = None
 
                 # Skip non-matching molecules.
-                if sel_obj and '#' + mol_name not in sel_obj:
+                if sel_obj and mol_name and '#' + mol_name not in sel_obj:
                     continue
 
                 # Yield the molecule and its name.




Related Messages


Powered by MHonArc, Updated Sun Apr 20 19:20:12 2008