mailr6397 - /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 June 22, 2008 - 15:54:
Author: bugman
Date: Sun Jun 22 15:38:59 2008
New Revision: 6397

URL: http://svn.gna.org/viewcvs/relax?rev=6397&view=rev
Log:
The 'type' variable is now initialised within the __init__ method.


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=6397&r1=6396&r2=6397&view=diff
==============================================================================
--- 1.3/data/diff_tensor.py (original)
+++ 1.3/data/diff_tensor.py Sun Jun 22 15:38:59 2008
@@ -553,9 +553,6 @@
 class DiffTensorData(Element):
     """An empty data container for the diffusion tensor elements."""
 
-    # Set the initial diffusion type to None.
-    type = None
-
     # List of modifiable attributes.
     __mod_attr__ = ['type',
                     'fixed',
@@ -568,6 +565,12 @@
                     'alpha',
                     'beta',
                     'gamma']
+
+    def __init__(self):
+        """Initialise a few instance variables."""
+
+        # Set the initial diffusion type to None.
+        self.type = None
 
 
     def __setattr__(self, name, value):




Related Messages


Powered by MHonArc, Updated Sun Jun 22 16:00:20 2008