Author: bugman Date: Mon Jul 19 17:36:43 2010 New Revision: 11318 URL: http://svn.gna.org/viewcvs/relax?rev=11318&view=rev Log: Fix for the print_frame_order_2nd_degree() fn, sys.stdout overwriting now works. Modified: 1.3/generic_fns/frame_order.py Modified: 1.3/generic_fns/frame_order.py URL: http://svn.gna.org/viewcvs/relax/1.3/generic_fns/frame_order.py?rev=11318&r1=11317&r2=11318&view=diff ============================================================================== --- 1.3/generic_fns/frame_order.py (original) +++ 1.3/generic_fns/frame_order.py Mon Jul 19 17:36:43 2010 @@ -25,7 +25,7 @@ # Python module imports. from numpy import array, matrix -from sys import stdout +import sys # relax module imports. from float import isNaN @@ -53,8 +53,8 @@ name = 'Frame Order matrix, 2nd degree' # Header and first row start. - stdout.write("\n%s:\n" % name) - stdout.write('[[') + sys.stdout.write("\n%s:\n" % name) + sys.stdout.write('[[') # Convert to an array, if necessary. if isinstance(daeg, matrix): @@ -64,7 +64,7 @@ for i in range(len(daeg)): # 2nd to last row start. if i != 0: - stdout.write(' [') + sys.stdout.write(' [') # Row end character. char2 = '' @@ -119,4 +119,4 @@ val = '0' # Write. - stdout.write(format % (val, char1)) + sys.stdout.write(format % (val, char1))