Author: han87 Date: Fri Jun 24 11:55:46 2011 New Revision: 13215 URL: http://svn.gna.org/viewcvs/relax?rev=13215&view=rev Log: Debugging the user function load_spins(). Debugging the user function load_spins() in generic_fns/structure/main.py by using the residue number instead of the residue name for a proper residue check as suggest in: https://mail.gna.org/public/relax-devel/2011-06/msg00235.html. Modified: branches/xyz/generic_fns/structure/main.py Modified: branches/xyz/generic_fns/structure/main.py URL: http://svn.gna.org/viewcvs/relax/branches/xyz/generic_fns/structure/main.py?rev=13215&r1=13214&r2=13215&view=diff ============================================================================== --- branches/xyz/generic_fns/structure/main.py (original) +++ branches/xyz/generic_fns/structure/main.py Fri Jun 24 11:55:46 2011 @@ -230,9 +230,9 @@ # Add the residue number to the ID string (residue name is ignored because only the number is unique). res_cont = None - if res_name: + if res_num: # Update the ID string - id = id + ':' + res_name + id = id + ':' + res_num # Get the corresponding residue container. res_cont = return_residue(id)