Author: bugman Date: Thu Apr 10 11:31:15 2008 New Revision: 5527 URL: http://svn.gna.org/viewcvs/relax?rev=5527&view=rev Log: Variable name fixes for the load_spins() function. Modified: 1.3/generic_fns/structure/main.py Modified: 1.3/generic_fns/structure/main.py URL: http://svn.gna.org/viewcvs/relax/1.3/generic_fns/structure/main.py?rev=5527&r1=5526&r2=5527&view=diff ============================================================================== --- 1.3/generic_fns/structure/main.py (original) +++ 1.3/generic_fns/structure/main.py Thu Apr 10 11:31:15 2008 @@ -92,15 +92,15 @@ res_cont = mol_cont.res[-1] # Add the atom number to the ID string (atom name is ignored because only the number is unique). - id = id + '@' + `spin_num` + id = id + '@' + `atom_num` # Get the corresponding spin container. spin_cont = return_spin(id) # Add the spin if it doesn't exist. - if spin_name and spin_cont == None: + if atom_name and spin_cont == None: # Add the spin. - res_cont.spin.add_item(spin_name=spin_name, spin_num=spin_num) + res_cont.spin.add_item(spin_name=atom_name, spin_num=atom_num) # Get the container. spin_cont = res_cont.spin[-1]