mailr17741 - in /branches/tensor_data: data/diff_tensor.py 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 08, 2012 - 11:37:
Author: bugman
Date: Mon Oct  8 11:37:54 2012
New Revision: 17741

URL: http://svn.gna.org/viewcvs/relax?rev=17741&view=rev
Log:
The new diffusion tensor fixed() method has been created to allow the fixed 
flag to be changed.


Modified:
    branches/tensor_data/data/diff_tensor.py
    branches/tensor_data/generic_fns/diffusion_tensor.py

Modified: branches/tensor_data/data/diff_tensor.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/tensor_data/data/diff_tensor.py?rev=17741&r1=17740&r2=17741&view=diff
==============================================================================
--- branches/tensor_data/data/diff_tensor.py (original)
+++ branches/tensor_data/data/diff_tensor.py Mon Oct  8 11:37:54 2012
@@ -953,6 +953,16 @@
                         self.__dict__[target+'_sim'][i] = value
 
 
+    def fixed(self, flag):
+        """Set if the diffusion tensor should be fixed during optimisation 
or not.
+
+        @param flag:    The fixed flag.
+        @type flag:     bool
+        """
+
+        self.__dict__['fixed'] = flag
+
+
     def from_xml(self, diff_tensor_node, file_version=1):
         """Recreate the diffusion tensor data structure from the XML 
diffusion tensor node.
 

Modified: branches/tensor_data/generic_fns/diffusion_tensor.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/tensor_data/generic_fns/diffusion_tensor.py?rev=17741&r1=17740&r2=17741&view=diff
==============================================================================
--- branches/tensor_data/generic_fns/diffusion_tensor.py (original)
+++ branches/tensor_data/generic_fns/diffusion_tensor.py Mon Oct  8 11:37:54 
2012
@@ -797,7 +797,7 @@
     cdp.diff_tensor = DiffTensorData()
 
     # Set the fixed flag.
-    cdp.diff_tensor.fixed = fixed
+    cdp.diff_tensor.fixed(fixed)
 
     # Spherical diffusion.
     if isinstance(params, float):




Related Messages


Powered by MHonArc, Updated Mon Oct 08 12:00:02 2012