From 2afc79c63765bdeab9a2b96c25e7975e52a93e21 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sat, 21 Jan 2012 13:43:24 -0500 Subject: [PATCH] Fix XYZ.shape() -> XYZ.shape typo in plot_image.py's read_data_3d. --- src/plot_image/plot_image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plot_image/plot_image.py b/src/plot_image/plot_image.py index a62cbc3..9eaaa20 100755 --- a/src/plot_image/plot_image.py +++ b/src/plot_image/plot_image.py @@ -116,7 +116,7 @@ def read_data_3d(stream): [ 5., 6., 7., 8., 9.]]) """ XYZ = numpy.loadtxt(stream) - assert len(XYZ.shape) == 2 and XYZ.shape[1] == 3, XYZ.shape() + assert len(XYZ.shape) == 2 and XYZ.shape[1] == 3, XYZ.shape Xs = numpy.array(sorted(set(XYZ[:,0]))) Ys = numpy.array(sorted(set(XYZ[:,1]))) Z = numpy.ndarray((len(Ys), len(Xs)), dtype=float) -- 2.26.2