mailr3014 - /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 February 17, 2007 - 10:59:
Author: bugman
Date: Sat Feb 17 10:58:58 2007
New Revision: 3014

URL: http://svn.gna.org/viewcvs/relax?rev=3014&view=rev
Log:
Small changes to the 'DiffTensorSimList' object.


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=3014&r1=3013&r2=3014&view=diff
==============================================================================
--- 1.3/data/diff_tensor.py (original)
+++ 1.3/data/diff_tensor.py Sat Feb 17 10:58:58 2007
@@ -322,12 +322,19 @@
 
 
 class DiffTensorSimList(ListType):
-    def __init__(self):
-        """Empty data container for Monte Carlo simulation diffusion tensor 
data."""
-
-    def __setitem__(self):
+    """Empty data container for Monte Carlo simulation diffusion tensor 
data."""
+
+    def __setitem__(self, index, value):
         """Set the value."""
-        print "Setitem"
+        print "index: " + `index`
+        print "value: " + `value`
 
     def append(self, value):
+        """Replacement function for the normal self.append() method."""
+
+        print
         print "append: " + `value`
+
+        # Append the value to the list.
+        self[len(self):len(self)] = [value]
+        print self




Related Messages


Powered by MHonArc, Updated Sun Feb 18 00:40:07 2007