[ 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)