mailr11654 - /branches/bmrb/generic_fns/diffusion_tensor.py


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

Header


Content

Posted by edward on October 22, 2010 - 19:53:
Author: bugman
Date: Fri Oct 22 19:53:19 2010
New Revision: 11654

URL: http://svn.gna.org/viewcvs/relax?rev=11654&view=rev
Log:
Caught when no diffusion tensor data is yielded by the bmrblib loop() method.


Modified:
    branches/bmrb/generic_fns/diffusion_tensor.py

Modified: branches/bmrb/generic_fns/diffusion_tensor.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/bmrb/generic_fns/diffusion_tensor.py?rev=11654&r1=11653&r2=11654&view=diff
==============================================================================
--- branches/bmrb/generic_fns/diffusion_tensor.py (original)
+++ branches/bmrb/generic_fns/diffusion_tensor.py Fri Oct 22 19:53:19 2010
@@ -53,6 +53,10 @@
     # Get the diffusion tensor data.
     found = 0
     for data in star.tensor.loop():
+        # No data.
+        if data == None:
+            continue
+
         # Not a diffusion tensor.
         if data['tensor_type'] != 'diffusion':
             continue




Related Messages


Powered by MHonArc, Updated Fri Oct 22 22:20:01 2010