Author: bugman Date: Wed Oct 12 13:34:05 2011 New Revision: 14828 URL: http://svn.gna.org/viewcvs/relax?rev=14828&view=rev Log: Updated the relax data store alignment tensor objects to allow for the per-tensor fixed flag. Modified: 1.3/data/align_tensor.py Modified: 1.3/data/align_tensor.py URL: http://svn.gna.org/viewcvs/relax/1.3/data/align_tensor.py?rev=14828&r1=14827&r2=14828&view=diff ============================================================================== --- 1.3/data/align_tensor.py (original) +++ 1.3/data/align_tensor.py Wed Oct 12 13:34:05 2011 @@ -1024,12 +1024,21 @@ 'Axz', 'Axz_sim', 'Axz_err', 'Ayz', 'Ayz_sim', 'Ayz_err', 'domain', - 'red'] - - def __init__(self, name): - """Function for placing the tensor name in the class namespace.""" - + 'red', + 'fixed'] + + def __init__(self, name, fixed=False): + """Set up the tensor data. + + @param name: The tensor ID string. + @type name: str + @keyword fixed: The optimisation flag. + @type fixed: bool + """ + + # Store the values. self.name = name + self.fixed = fixed def __setattr__(self, name, value):