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:
78b87e4
)
Print the number of steps read in by plot_image.py (for sanity checks).
author
W. Trevor King
<wking@drexel.edu>
Thu, 23 Feb 2012 20:05:57 +0000
(15:05 -0500)
committer
W. Trevor King
<wking@drexel.edu>
Thu, 23 Feb 2012 20:05:57 +0000
(15:05 -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 dd772a0476c21d4d6cd8786666101956d27c1a46..11a3a9787b4a8b0aadf2b6718570a28b951008ff 100755
(executable)
--- a/
src/plot_image/plot_image.py
+++ b/
src/plot_image/plot_image.py
@@
-204,8
+204,8
@@
def main(argv=None):
Title: Some like it hot
Image size: 5 2
False color
Title: Some like it hot
Image size: 5 2
False color
- X range: 0 4
- X range: 0 1
+ X range: 0 4
(6 steps)
+ Y range: 0 1 (3 steps)
Z range: 0.0 9.0
>>> img = o.read()
>>> img.startswith('\\x89PNG')
Z range: 0.0 9.0
>>> img = o.read()
>>> img.startswith('\\x89PNG')
@@
-286,8
+286,10
@@
def main(argv=None):
Z_min = numpy.min(Z.flat)
Z_max = numpy.max(Z.flat)
Z_min = numpy.min(Z.flat)
Z_max = numpy.max(Z.flat)
- print 'X range: ', X[0,0], X[0,-2]
- print 'X range: ', Y[0,0], Y[-2,0]
+ print 'X range: {} {} ({} steps)'.format(
+ X[0,0], X[0,-2], X.shape[1])
+ print 'Y range: {} {} ({} steps)'.format(
+ Y[0,0], Y[-2,0], Y.shape[0])
print 'Z range: ', Z_min, Z_max
fig = plot(X, Y, Z, full=options.full, title=options.title,
print 'Z range: ', Z_min, Z_max
fig = plot(X, Y, Z, full=options.full, title=options.title,