mailr4590 - /branches/N_state_model/data/align_tensor.py


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

Header


Content

Posted by edward on January 10, 2008 - 16:08:
Author: bugman
Date: Thu Jan 10 16:08:25 2008
New Revision: 4590

URL: http://svn.gna.org/viewcvs/relax?rev=4590&view=rev
Log:
Recreated the AlignTensorData.__init__() method to allow the tensor name to 
be set.


Modified:
    branches/N_state_model/data/align_tensor.py

Modified: branches/N_state_model/data/align_tensor.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/N_state_model/data/align_tensor.py?rev=4590&r1=4589&r2=4590&view=diff
==============================================================================
--- branches/N_state_model/data/align_tensor.py (original)
+++ branches/N_state_model/data/align_tensor.py Thu Jan 10 16:08:25 2008
@@ -551,6 +551,12 @@
 class AlignTensorData(Element):
     """An empty data container for the alignment tensor elements."""
 
+    def __init__(self, name):
+        """Function for placing the tensor name in the class namespace."""
+
+        self.name = name
+
+
     def __setattr__(self, name, value):
         """Function for calculating the parameters, unit vectors, and 
tensors on the fly.
 




Related Messages


Powered by MHonArc, Updated Thu Jan 10 16:20:12 2008