From: W. Trevor King Date: Sat, 21 Jan 2012 18:43:24 +0000 (-0500) Subject: Fix XYZ.shape() -> XYZ.shape typo in plot_image.py's read_data_3d. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2afc79c63765bdeab9a2b96c25e7975e52a93e21;p=assignment-template.git Fix XYZ.shape() -> XYZ.shape typo in plot_image.py's read_data_3d. --- 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)