Fix XYZ.shape() -> XYZ.shape typo in plot_image.py's read_data_3d.
[parallel_computing.git] / src / plot_image / plot_image.py
index a62cbc322c5233aacf45b4020bdc8021c27097fa..9eaaa205d30cbcbdf75ef91b9e338d172aa99c7b 100755 (executable)
@@ -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)