Date: July 26, 2011 6:47:49 PM GMT+02:00
Subject: r13900 - /branches/xyz/generic_fns/structure/main.py
Author: han87
Date: Tue Jul 26 18:47:49 2011
New Revision: 13900
Log:
Changing the code in the generic_fns/structure/main.py
For printing out of modified spins, a test to check whether the spin_name exists or not is added.
Modified:
branches/xyz/generic_fns/structure/main.py
Modified: branches/xyz/generic_fns/structure/main.py
==============================================================================
--- branches/xyz/generic_fns/structure/main.py (original)
+++ branches/xyz/generic_fns/structure/main.py Tue Jul 26 18:47:49 2011
@@ -602,7 +602,10 @@
# Print out of modified spins.
if verbosity:
- print(("Extracted " + str(spin.num) + "-" + str(attached_name) + " vectors for " + repr(id) + '.'))
+ if spin.name:
+ print(("Extracted " + spin.name + "-" + str(attached_name) + " vectors for " + repr(id) + '.'))
+ else:
+ print(("Extracted " + str(spin.num) + "-" + str(attached_name) + " vectors for " + repr(id) + '.'))
# Right, catch the problem of missing vectors to prevent massive user confusion!
if no_vectors:
_______________________________________________
This is the relax-commits mailing list
To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at