mailr8906 - /branches/bmrb/generic_fns/relax_data.py


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

Header


Content

Posted by edward on March 05, 2009 - 11:48:
Author: bugman
Date: Thu Mar  5 11:48:09 2009
New Revision: 8906

URL: http://svn.gna.org/viewcvs/relax?rev=8906&view=rev
Log:
Added a catch for spins with no relaxation data in bmrb_write().


Modified:
    branches/bmrb/generic_fns/relax_data.py

Modified: branches/bmrb/generic_fns/relax_data.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/bmrb/generic_fns/relax_data.py?rev=8906&r1=8905&r2=8906&view=diff
==============================================================================
--- branches/bmrb/generic_fns/relax_data.py (original)
+++ branches/bmrb/generic_fns/relax_data.py Thu Mar  5 11:48:09 2009
@@ -229,6 +229,10 @@
     for spin, mol_name, res_num, res_name in spin_loop(full_info=True):
         # Skip deselected spins.
         if not spin.select:
+            continue
+
+        # Skip spins with no relaxation data.
+        if not hasattr(spin, 'relax_data'):
             continue
 
         # The molecule/R1residue/spin info.




Related Messages


Powered by MHonArc, Updated Thu Mar 05 15:20:05 2009