Author: bugman Date: Tue Oct 11 10:59:39 2011 New Revision: 14822 URL: http://svn.gna.org/viewcvs/relax?rev=14822&view=rev Log: Bug fix for the grace.write user function for when the spin ID is specified. The spin ID was previously unused! Modified: 1.3/generic_fns/grace.py Modified: 1.3/generic_fns/grace.py URL: http://svn.gna.org/viewcvs/relax/1.3/generic_fns/grace.py?rev=14822&r1=14821&r2=14822&view=diff ============================================================================== --- 1.3/generic_fns/grace.py (original) +++ 1.3/generic_fns/grace.py Tue Oct 11 10:59:39 2011 @@ -126,7 +126,7 @@ spin_names = [] # Loop over the spins. - for spin, mol_name, res_num, res_name, spin_id in spin_loop(full_info=True, return_id=True): + for spin, mol_name, res_num, res_name, id in spin_loop(full_info=True, selection=spin_id, return_id=True): # Skip deselected spins. if not spin.select: continue @@ -159,7 +159,7 @@ if data_list or isinstance(x_val, list): # Append a new set structure and set the name to the spin ID. data[0].append([]) - set_labels.append("Spin %s" % spin_id) + set_labels.append("Spin %s" % id) # The set index. index = len(data[0]) - 1 @@ -177,7 +177,7 @@ if data_dict or isinstance(x_val, dict): # Append a new set structure and set the name to the spin ID. data[0].append([]) - set_labels.append("Spin %s" % spin_id) + set_labels.append("Spin %s" % id) # The set index. index = len(data[0]) - 1