Author: bugman Date: Thu Jul 15 15:26:00 2010 New Revision: 11301 URL: http://svn.gna.org/viewcvs/relax?rev=11301&view=rev Log: Initialising and alignment tensor now adds the ID to the alignment ID list. Modified: 1.3/generic_fns/align_tensor.py Modified: 1.3/generic_fns/align_tensor.py URL: http://svn.gna.org/viewcvs/relax/1.3/generic_fns/align_tensor.py?rev=11301&r1=11300&r2=11301&view=diff ============================================================================== --- 1.3/generic_fns/align_tensor.py (original) +++ 1.3/generic_fns/align_tensor.py Thu Jul 15 15:26:00 2010 @@ -604,6 +604,11 @@ if not angle_units in valid_types: raise RelaxError("The alignment tensor 'angle_units' argument " + repr(angle_units) + " should be either 'deg' or 'rad'.") + # Add the tensor ID to the current data pipe. + if not hasattr(cdp, 'align_ids'): + cdp.align_ids = [] + cdp.align_ids.append(tensor) + # Add the align_tensors object to the data pipe. if not errors: # Initialise the super structure.