Author: bugman Date: Fri May 25 09:23:58 2012 New Revision: 16451 URL: http://svn.gna.org/viewcvs/relax?rev=16451&view=rev Log: Made the bond vector extraction print out from structure.vectors more informative. This is in response to James Nyirenda's <jamesn7414 att yahoo dott com> post at https://mail.gna.org/public/relax-users/2012-05/msg00023.html (Message-id: <1337916876.99384.YahooMailNeo@xxxxxxxxxxxxxxxxxxxxxxxxxxx>). The number of vectors extracted is now being printed out. 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=16451&r1=16450&r2=16451&view=diff ============================================================================== --- 1.3/generic_fns/structure/main.py (original) +++ 1.3/generic_fns/structure/main.py Fri May 25 09:23:58 2012 @@ -827,10 +827,16 @@ # Print out of modified spins. if verbosity: + # The number of vectors. + num = len(bond_vectors) + plural = 's' + if num == 1: + plural = '' + if spin.name: - print(("Extracted " + spin.name + "-" + str(attached_name) + " vectors for " + repr(id) + '.')) + print("Extracted %s %s-%s vector%s for '%s'." % (num, spin.name, attached_name, plural, id)) else: - print(("Extracted " + str(spin.num) + "-" + str(attached_name) + " vectors for " + repr(id) + '.')) + print("Extracted %s %s-%s vector%s for '%s'." % (num, spin.num, attached_name, plural, id)) # Right, catch the problem of missing vectors to prevent massive user confusion! if no_vectors: