projects
/
pycomedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
662b2eb
)
Fix conversion to physical in cmd.py demo ('float32' is not defined).
author
W. Trevor King
<wking@tremily.us>
Thu, 26 Apr 2012 17:06:36 +0000
(13:06 -0400)
committer
W. Trevor King
<wking@tremily.us>
Thu, 26 Apr 2012 17:06:36 +0000
(13:06 -0400)
doc/demo/cmd.py
patch
|
blob
|
history
diff --git
a/doc/demo/cmd.py
b/doc/demo/cmd.py
index e2be286f656a8615576316cd85cc2c06112375b7..b8508e92004bfca8614c0b12524e68d04a12ca17 100755
(executable)
--- a/
doc/demo/cmd.py
+++ b/
doc/demo/cmd.py
@@
-83,7
+83,7
@@
test_command.__test__ = False # test_command is not a Nose test
def write_data(stream, channels, data, physical=False):
if physical:
converters = [c.get_converter() for c in channels]
- physical_data = _numpy.zeros(data.shape, dtype=float32)
+ physical_data = _numpy.zeros(data.shape, dtype=
_numpy.
float32)
for i,c in enumerate(converters):
physical_data[:,i] = c.to_physical(data[:,i])
data = physical_data