mailr17716 - /trunk/generic_fns/grace.py


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

Header


Content

Posted by edward on October 07, 2012 - 16:38:
Author: bugman
Date: Sun Oct  7 16:38:01 2012
New Revision: 17716

URL: http://svn.gna.org/viewcvs/relax?rev=17716&view=rev
Log:
For consistency between Python 2 and 3, the grace.write user function outputs 
to 15 decimal places.

This increased precision will only be of use in the relax test suite.


Modified:
    trunk/generic_fns/grace.py

Modified: trunk/generic_fns/grace.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/generic_fns/grace.py?rev=17716&r1=17715&r2=17716&view=diff
==============================================================================
--- trunk/generic_fns/grace.py (original)
+++ trunk/generic_fns/grace.py Sun Oct  7 16:38:01 2012
@@ -468,7 +468,7 @@
                     continue
 
                 # X and Y data.
-                file.write("%-30s %-30s" % (point[0], point[1]/norm_fact))
+                file.write("%-30s %-30.15f" % (point[0], point[1]/norm_fact))
 
                 # The dx and dy errors.
                 if graph_type in ['xydx', 'xydy', 'xydxdy']:
@@ -478,7 +478,7 @@
                         error = 0.0
 
                     # Write the error.
-                    file.write(" %-30s" % (error/norm_fact))
+                    file.write(" %-30.15f" % (error/norm_fact))
 
                 # The dy errors of xydxdy.
                 if graph_type == 'xydxdy':
@@ -488,7 +488,7 @@
                         error = 0.0
 
                     # Write the error.
-                    file.write(" %-30s" % (error/norm_fact))
+                    file.write(" %-30.15f" % (error/norm_fact))
 
                 # The comment if given.
                 try:




Related Messages


Powered by MHonArc, Updated Sun Oct 07 16:40:02 2012