mailr6789 - /1.3/generic_fns/structure/main.py


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

Header


Content

Posted by edward on July 07, 2008 - 13:56:
Author: bugman
Date: Mon Jul  7 13:56:17 2008
New Revision: 6789

URL: http://svn.gna.org/viewcvs/relax?rev=6789&view=rev
Log:
Improved the vectors() function print 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=6789&r1=6788&r2=6789&view=diff
==============================================================================
--- 1.3/generic_fns/structure/main.py (original)
+++ 1.3/generic_fns/structure/main.py Mon Jul  7 13:56:17 2008
@@ -245,14 +245,17 @@
 
     # Print out.
     if verbosity:
+        # Number of structures.
+        num = cdp.structure.num_structures()
+
         # Multiple structures loaded.
-        if cdp.structure.num_structures() > 1:
+        if num > 1:
             if struct_index:
                 print "Extracting vectors for structure " + `struct_index` + 
"."
             else:
-                print "Extracting vectors for all structures."
+                print "Extracting vectors for all " + `num` + " structures."
                 if ave:
-                    print "\nAveraging all vectors."
+                    print "Averaging all vectors."
 
         # Single structure loaded.
         else:
@@ -260,7 +263,7 @@
 
         # Unit vectors.
         if unit:
-            print "Calculating the unit vector."
+            print "Calculating the unit vectors."
 
     # Header print out.
     write_header(sys.stdout, mol_name_flag=True, res_num_flag=True, 
res_name_flag=True, spin_num_flag=True, spin_name_flag=True)




Related Messages


Powered by MHonArc, Updated Mon Jul 07 14:20:21 2008