Hi Troels, The spin ID is ok, though it should be an optional flag as this change will cause problems for users and all other elements are optional. But the selection should not be printed. The reason is because you are duplicating the exact functionality of the select.display user function (http://www.nmr-relax.com/manual/select_display.html). If you want the spin ID for that user function, introduce it as an argument.
Regards, Edward On 8 September 2014 18:49, <[email protected]> wrote: > Author: tlinnet > Date: Mon Sep 8 18:49:34 2014 > New Revision: 25685 > > URL: http://svn.gna.org/viewcvs/relax?rev=25685&view=rev > Log: > For the user function, spin.display(), added the print out of spin id, and > status for selection. > > This is to help with showing the spin id string for selection, and the > current status of selection. > > task #7826(https://gna.org/task/index.php?7826): Write an python class for > the repeated analysis of dispersion data. > > Modified: > trunk/pipe_control/mol_res_spin.py > > Modified: trunk/pipe_control/mol_res_spin.py > URL: > http://svn.gna.org/viewcvs/relax/trunk/pipe_control/mol_res_spin.py?rev=25685&r1=25684&r2=25685&view=diff > ============================================================================== > --- trunk/pipe_control/mol_res_spin.py (original) > +++ trunk/pipe_control/mol_res_spin.py Mon Sep 8 18:49:34 2014 > @@ -1141,12 +1141,12 @@ > """ > > # Print a header. > - print("\n\n%-15s %-15s %-15s %-15s %-15s" % ("Molecule", "Res number", > "Res name", "Spin number", "Spin name")) > + print("\n\n%-15s %-15s %-15s %-15s %-15s %-15s %-15s" % ("Molecule", > "Res number", "Res name", "Spin number", "Spin name", "Spin id", "Selected")) > > # Spin loop. > - for spin, mol_name, res_num, res_name in spin_loop(spin_id, > full_info=True): > + for spin, mol_name, res_num, res_name, spin_id in spin_loop(spin_id, > full_info=True, return_id=True, skip_desel=False): > # Print the residue data. > - print("%-15s %-15s %-15s %-15s %-15s" % (mol_name, repr(res_num), > res_name, repr(spin.num), spin.name)) > + print("%-15s %-15s %-15s %-15s %-15s %-15s %-15s" % (mol_name, > repr(res_num), res_name, repr(spin.num), spin.name, spin_id, spin.select)) > > > def exists_mol_res_spin_data(pipe=None): > > > _______________________________________________ > relax (http://www.nmr-relax.com) > > This is the relax-commits mailing list > [email protected] > > To unsubscribe from this list, get a password > reminder, or change your subscription options, > visit the list information page at > https://mail.gna.org/listinfo/relax-commits _______________________________________________ relax (http://www.nmr-relax.com) This is the relax-devel mailing list [email protected] To unsubscribe from this list, get a password reminder, or change your subscription options, visit the list information page at https://mail.gna.org/listinfo/relax-devel

