Author: bugman Date: Mon Jul 7 15:20:59 2008 New Revision: 6798 URL: http://svn.gna.org/viewcvs/relax?rev=6798&view=rev Log: Reverted all bond_vector references to xh_vector. Modified: 1.3/generic_fns/angles.py Modified: 1.3/generic_fns/angles.py URL: http://svn.gna.org/viewcvs/relax/1.3/generic_fns/angles.py?rev=6798&r1=6797&r2=6798&view=diff ============================================================================== --- 1.3/generic_fns/angles.py (original) +++ 1.3/generic_fns/angles.py Mon Jul 7 15:20:59 2008 @@ -82,7 +82,7 @@ # Spin loop. for spin, mol_name, res_num, res_name in spin_loop(full_info=True): # Test if the vector exists. - if not hasattr(spin, 'bond_vect'): + if not hasattr(spin, 'xh_vect'): # Get the spin id string. spin_id = generate_spin_id(mol_name, res_num, res_name, spin.num, spin.name) @@ -93,8 +93,8 @@ continue # dz and dx direction cosines. - dz = dot(Dz, spin.bond_vect) - dx = dot(Dx, spin.bond_vect) + dz = dot(Dz, spin.xh_vect) + dx = dot(Dx, spin.xh_vect) # Calculate the polar angle theta. spin.theta = acos(dz) @@ -112,7 +112,7 @@ # Loop over the sequence. for spin, mol_name, res_num, res_name in spin_loop(full_info=True): # Test if the vector exists. - if not hasattr(spin, 'bond_vect'): + if not hasattr(spin, 'xh_vect'): # Get the spin id string. spin_id = generate_spin_id(mol_name, res_num, res_name, spin.num, spin.name) @@ -123,7 +123,7 @@ continue # Calculate alpha. - spin.alpha = acos(dot(cdp.diff_tensor.Dpar_unit, spin.bond_vect)) + spin.alpha = acos(dot(cdp.diff_tensor.Dpar_unit, spin.xh_vect)) def wrap_angles(angle, lower, upper):