mailr11253 - /1.3/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 June 28, 2010 - 17:56:
Author: bugman
Date: Mon Jun 28 17:55:59 2010
New Revision: 11253

URL: http://svn.gna.org/viewcvs/relax?rev=11253&view=rev
Log:
Fix for the Grace write_xy_data() function for when data values of None are 
passed in.


Modified:
    1.3/generic_fns/grace.py

Modified: 1.3/generic_fns/grace.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/generic_fns/grace.py?rev=11253&r1=11252&r2=11253&view=diff
==============================================================================
--- 1.3/generic_fns/grace.py (original)
+++ 1.3/generic_fns/grace.py Mon Jun 28 17:55:59 2010
@@ -376,6 +376,10 @@
 
             # Loop over the data points.
             for point in data[gi][si]:
+                # Bad data.
+                if point[0] == None or point[1] == None:
+                    continue
+
                 # X and Y data.
                 file.write("%-30s %-30s" % (point[0], point[1]/norm_fact))
 




Related Messages


Powered by MHonArc, Updated Tue Jun 29 10:00:02 2010