mailr9265 - /1.3/data/diff_tensor.py


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

Header


Content

Posted by edward on July 21, 2009 - 22:32:
Author: bugman
Date: Tue Jul 21 22:32:04 2009
New Revision: 9265

URL: http://svn.gna.org/viewcvs/relax?rev=9265&view=rev
Log:
Bug fix for the __update_sim_append() method.

Now the diffusion tensor simulation structure appending works if the 
structure doesn't already exist.


Modified:
    1.3/data/diff_tensor.py

Modified: 1.3/data/diff_tensor.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/data/diff_tensor.py?rev=9265&r1=9264&r2=9265&view=diff
==============================================================================
--- 1.3/data/diff_tensor.py (original)
+++ 1.3/data/diff_tensor.py Tue Jul 21 22:32:04 2009
@@ -658,6 +658,10 @@
 
             # Only update the MC simulation object if its dependencies exist.
             if not missing_dep:
+                # Initialise an empty array to store the MC simulation 
object elements (if it doesn't already exist).
+                if not target+'_sim' in self.__dict__:
+                    self.__dict__[target+'_sim'] = DiffTensorSimList(target, 
self)
+
                 # Get the target object.
                 target_obj = getattr(self, target+'_sim')
 




Related Messages


Powered by MHonArc, Updated Wed Jul 22 01:20:07 2009