mailr12499 - /branches/bmrb/specific_fns/model_free/bmrb.py


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

Header


Content

Posted by edward on February 01, 2011 - 20:59:
Author: bugman
Date: Tue Feb  1 20:59:41 2011
New Revision: 12499

URL: http://svn.gna.org/viewcvs/relax?rev=12499&view=rev
Log:
Atom names can now be missing from the model-free saveframes.


Modified:
    branches/bmrb/specific_fns/model_free/bmrb.py

Modified: branches/bmrb/specific_fns/model_free/bmrb.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/bmrb/specific_fns/model_free/bmrb.py?rev=12499&r1=12498&r2=12499&view=diff
==============================================================================
--- branches/bmrb/specific_fns/model_free/bmrb.py (original)
+++ branches/bmrb/specific_fns/model_free/bmrb.py Tue Feb  1 20:59:41 2011
@@ -142,6 +142,10 @@
             # The molecule names.
             mol_names = bmrb.molecule_names(data, N)
 
+            # Missing atom names.
+            if 'atom_names' not in keys or data['atom_names'] == None:
+                data['atom_names'] = [None] * N
+
             # Generate the sequence if needed.
             bmrb.generate_sequence(N, spin_names=data['atom_names'], 
res_nums=data['res_nums'], res_names=data['res_names'], mol_names=mol_names)
 




Related Messages


Powered by MHonArc, Updated Tue Feb 01 21:20:02 2011