mailr12511 - /branches/bmrb/generic_fns/mol_res_spin.py


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

Header


Content

Posted by edward on February 03, 2011 - 13:03:
Author: bugman
Date: Thu Feb  3 13:03:58 2011
New Revision: 12511

URL: http://svn.gna.org/viewcvs/relax?rev=12511&view=rev
Log:
Fix for generic_fns.mol_res_spin.bmrb_read() for when no molecule name is 
present.


Modified:
    branches/bmrb/generic_fns/mol_res_spin.py

Modified: branches/bmrb/generic_fns/mol_res_spin.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/bmrb/generic_fns/mol_res_spin.py?rev=12511&r1=12510&r2=12511&view=diff
==============================================================================
--- branches/bmrb/generic_fns/mol_res_spin.py (original)
+++ branches/bmrb/generic_fns/mol_res_spin.py Thu Feb  3 13:03:58 2011
@@ -506,8 +506,9 @@
     for data in star.entity.loop():
         # Remove brackets from the molecule name.
         mol_name = data['mol_name']
-        mol_name = replace(mol_name, '(', '')
-        mol_name = replace(mol_name, ')', '')
+        if mol_name:
+            mol_name = replace(mol_name, '(', '')
+            mol_name = replace(mol_name, ')', '')
 
         # Add the residues.
         for i in range(len(data['res_nums'])):




Related Messages


Powered by MHonArc, Updated Thu Feb 03 13:40:03 2011