projects
/
parallel_computing.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b4a3b7
)
Fix XYZ.shape() -> XYZ.shape typo in plot_image.py's read_data_3d.
author
W. Trevor King
<wking@drexel.edu>
Sat, 21 Jan 2012 18:43:24 +0000
(13:43 -0500)
committer
W. Trevor King
<wking@drexel.edu>
Sat, 21 Jan 2012 18:43:24 +0000
(13:43 -0500)
src/plot_image/plot_image.py
patch
|
blob
|
history
diff --git
a/src/plot_image/plot_image.py
b/src/plot_image/plot_image.py
index a62cbc322c5233aacf45b4020bdc8021c27097fa..9eaaa205d30cbcbdf75ef91b9e338d172aa99c7b 100755
(executable)
--- 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)