Fix conversion to physical in cmd.py demo ('float32' is not defined).
authorW. Trevor King <wking@tremily.us>
Thu, 26 Apr 2012 17:06:36 +0000 (13:06 -0400)
committerW. Trevor King <wking@tremily.us>
Thu, 26 Apr 2012 17:06:36 +0000 (13:06 -0400)
doc/demo/cmd.py

index e2be286f656a8615576316cd85cc2c06112375b7..b8508e92004bfca8614c0b12524e68d04a12ca17 100755 (executable)
@@ -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