Author: tlinnet Date: Fri Aug 15 17:38:05 2014 New Revision: 25032 URL: http://svn.gna.org/viewcvs/relax?rev=25032&view=rev Log: Fix for systemtest Relax_disp.test_bug_22477_grace_write_k_AB_mixed_analysis. bug #22477(https://gna.org/bugs/?22477): Not possible to perform grace.write() on k_AB parameter for mixed CPMG analysis. Modified: trunk/lib/software/grace.py Modified: trunk/lib/software/grace.py URL: http://svn.gna.org/viewcvs/relax/trunk/lib/software/grace.py?rev=25032&r1=25031&r2=25032&view=diff ============================================================================== --- trunk/lib/software/grace.py (original) +++ trunk/lib/software/grace.py Fri Aug 15 17:38:05 2014 @@ -177,8 +177,12 @@ # The dx and dy errors. if graph_type in ['xydx', 'xydy', 'xydxdy']: + # Catch if graph is a mix with and without error. + if len(point) < 3: + error = None + else: + error = point[2] # Catch x or y-axis errors of None. - error = point[2] if error == None: error = 0.0