mailr13900 - /branches/xyz/generic_fns/structure/main.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by hasu on July 26, 2011 - 18:47:
Author: han87
Date: Tue Jul 26 18:47:49 2011
New Revision: 13900

URL: http://svn.gna.org/viewcvs/relax?rev=13900&view=rev
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
URL: 
http://svn.gna.org/viewcvs/relax/branches/xyz/generic_fns/structure/main.py?rev=13900&r1=13899&r2=13900&view=diff
==============================================================================
--- 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:




Related Messages


Powered by MHonArc, Updated Tue Jul 26 19:00:02 2011