mailr5809 - /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 April 16, 2008 - 23:07:
Author: bugman
Date: Wed Apr 16 22:37:18 2008
New Revision: 5809

URL: http://svn.gna.org/viewcvs/relax?rev=5809&view=rev
Log:
Prepared for a new structural API method, num_str(), for counting the number 
of structures.


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=5809&r1=5808&r2=5809&view=diff
==============================================================================
--- 1.3/generic_fns/structure/main.py (original)
+++ 1.3/generic_fns/structure/main.py Wed Apr 16 22:37:18 2008
@@ -222,12 +222,9 @@
     if heteronuc == proton:
         raise RelaxError, "The proton and heteronucleus are set to the same 
atom."
 
-    # Number of structures.
-    num_str = len(cdp.structure.structures)
-
     # Print out.
     if verbosity:
-        if num_str > 1:
+        if cdp.structure.num_str() > 1:
             print "\nCalculating and averaging the unit XH vectors from all 
structures."
         else:
             print "\nCalculating the unit XH vectors from the structure."




Related Messages


Powered by MHonArc, Updated Thu Apr 17 00:20:30 2008