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')
 


_______________________________________________
relax (http://www.nmr-relax.com)

This is the relax-commits mailing list
[email protected]

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits

Reply via email to