mailr25871 - /branches/frame_order_cleanup/specific_analyses/frame_order/optimisation.py


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

Header


Content

Posted by edward on September 17, 2014 - 17:11:
Author: bugman
Date: Wed Sep 17 17:11:26 2014
New Revision: 25871

URL: http://svn.gna.org/viewcvs/relax?rev=25871&view=rev
Log:
Fix for the percentage calculation for the frame order count_sobol_points() 
function.

Modified:
    branches/frame_order_cleanup/specific_analyses/frame_order/optimisation.py

Modified: 
branches/frame_order_cleanup/specific_analyses/frame_order/optimisation.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/frame_order_cleanup/specific_analyses/frame_order/optimisation.py?rev=25871&r1=25870&r2=25871&view=diff
==============================================================================
--- 
branches/frame_order_cleanup/specific_analyses/frame_order/optimisation.py  
(original)
+++ 
branches/frame_order_cleanup/specific_analyses/frame_order/optimisation.py  
Wed Sep 17 17:11:26 2014
@@ -159,11 +159,11 @@
 
     # Printout.
     format = "    %-30s %20s\n"
+    percent = "%s" % (float(count)/float(cdp.sobol_max_points)*100) + '%'
     sys.stdout.write(format % ("Maximum number of points:", 
cdp.sobol_max_points))
     sys.stdout.write(format % ("Oversampling factor:", cdp.sobol_oversample))
     sys.stdout.write(format % ("Total points:", total_num))
     sys.stdout.write(format % ("Used points:", count))
-    percent = "%s" % (float(count)/float(total_num)*100) + '%'
     sys.stdout.write(format % ("Percentage:", percent))
     sys.stdout.write('\n')
 




Related Messages


Powered by MHonArc, Updated Wed Sep 17 17:20:03 2014