Author: bugman Date: Mon Mar 2 17:21:04 2015 New Revision: 27728 URL: http://svn.gna.org/viewcvs/relax?rev=27728&view=rev Log: Added a printout to the sequence.attach_protons user function listing all the newly created spins. Modified: trunk/pipe_control/sequence.py Modified: trunk/pipe_control/sequence.py URL: http://svn.gna.org/viewcvs/relax/trunk/pipe_control/sequence.py?rev=27728&r1=27727&r2=27728&view=diff ============================================================================== --- trunk/pipe_control/sequence.py (original) +++ trunk/pipe_control/sequence.py Mon Mar 2 17:21:04 2015 @@ -74,9 +74,12 @@ res_names.append(res_name) # Create all protons (this must be done out of the spin loop, as it affects the looping!). + ids = [] for i in range(len(mol_names)): # Create the spin container. - create_spin(spin_name='H', res_name=res_names[i], res_num=res_nums[i], mol_name=mol_names[i]) + spin = create_spin(spin_name='H', res_name=res_names[i], res_num=res_nums[i], mol_name=mol_names[i]) + ids.append(generate_spin_id(mol_name=mol_names[i], res_num=res_nums[i], res_name=res_names[i], spin_name='H')) + print("Creating the spins %s." % ids) # Set the element and spin type. set_spin_element(spin_id='@H', element='H')