mailr3977 - /1.3/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 November 25, 2007 - 23:15:
Author: bugman
Date: Sun Nov 25 23:15:53 2007
New Revision: 3977

URL: http://svn.gna.org/viewcvs/relax?rev=3977&view=rev
Log:
Bug fix for the generic_fns.diffusion_tensor.diff_data_exists() function.

The function now works properly.


Modified:
    1.3/generic_fns/diffusion_tensor.py

Modified: 1.3/generic_fns/diffusion_tensor.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/generic_fns/diffusion_tensor.py?rev=3977&r1=3976&r2=3977&view=diff
==============================================================================
--- 1.3/generic_fns/diffusion_tensor.py (original)
+++ 1.3/generic_fns/diffusion_tensor.py Sun Nov 25 23:15:53 2007
@@ -151,17 +151,11 @@
     # White list objects.
     white_list = []
 
-    # Loop over the objects in the data structure.
-    for name in dir(cdp.diff_tensor):
-        # White list names.
-        if name in white_list:
-            continue
-
-        # Data exists.
+    # Test if tm exists.
+    if hasattr(cdp.diff_tensor, 'tm'):
         return True
-
-    # No data.
-    return False
+    else:
+        return False
 
 
 def display(run=None):




Related Messages


Powered by MHonArc, Updated Sun Nov 25 23:20:19 2007