From 36e02207c1a82fe669531dd24ec799eca2989c80 Mon Sep 17 00:00:00 2001 From: Alan McIntyre Date: Sat, 5 Jul 2008 14:26:16 +0000 Subject: Use the implicit "import numpy as np" made available to all doctests instead of explicit imports or dependency on the local scope where the doctest is defined.. --- numpy/lib/io.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'numpy/lib/io.py') diff --git a/numpy/lib/io.py b/numpy/lib/io.py index db4e73358..36723f1d8 100644 --- a/numpy/lib/io.py +++ b/numpy/lib/io.py @@ -344,9 +344,9 @@ def savetxt(fname, X, fmt='%.18e',delimiter=' '): Examples -------- - >>> savetxt('test.out', x, delimiter=',') # X is an array - >>> savetxt('test.out', (x,y,z)) # x,y,z equal sized 1D arrays - >>> savetxt('test.out', x, fmt='%1.4e') # use exponential notation + >>> np.savetxt('test.out', x, delimiter=',') # X is an array + >>> np.savetxt('test.out', (x,y,z)) # x,y,z equal sized 1D arrays + >>> np.savetxt('test.out', x, fmt='%1.4e') # use exponential notation Notes on fmt ------------ -- cgit v1.2.1