mailr27602 - /trunk/specific_analyses/relax_disp/data.py


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

Header


Content

Posted by edward on February 06, 2015 - 15:17:
Author: bugman
Date: Fri Feb  6 15:17:51 2015
New Revision: 27602

URL: http://svn.gna.org/viewcvs/relax?rev=27602&view=rev
Log:
Fix for the backend of the relax_disp.plot_disp_curves user function.

The lib.plotting.api functions write_xy_data() and write_xy_header() require 
the format argument.


Modified:
    trunk/specific_analyses/relax_disp/data.py

Modified: trunk/specific_analyses/relax_disp/data.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/specific_analyses/relax_disp/data.py?rev=27602&r1=27601&r2=27602&view=diff
==============================================================================
--- trunk/specific_analyses/relax_disp/data.py  (original)
+++ trunk/specific_analyses/relax_disp/data.py  Fri Feb  6 15:17:51 2015
@@ -2236,13 +2236,13 @@
     sets = []
     for gi in range(graph_num):
         sets.append(len(data[gi]))
-    write_xy_header(file=file, graph_num=graph_num, sets=sets, 
set_names=[set_labels]*graph_num, axis_labels=[axis_labels]*graph_num, 
norm=[norm]*graph_num)
+    write_xy_header(format='grace', file=file, graph_num=graph_num, 
sets=sets, set_names=[set_labels]*graph_num, 
axis_labels=[axis_labels]*graph_num, norm=[norm]*graph_num)
 
     # Write the data.
     graph_type = 'xy'
     if err:
         graph_type = 'xydy'
-    write_xy_data(data, file=file, graph_type=graph_type, 
norm=[norm]*graph_num)
+    write_xy_data(format='grace', data=data, file=file, 
graph_type=graph_type, norm=[norm]*graph_num)
 
     # Close the file.
     file.close()




Related Messages


Powered by MHonArc, Updated Fri Feb 06 15:40:02 2015