From: W. Trevor King Date: Thu, 26 Apr 2012 17:06:36 +0000 (-0400) Subject: Fix conversion to physical in cmd.py demo ('float32' is not defined). X-Git-Tag: 0.5~8 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5192f4d4e8f65af4e7659150042d7ba5f0472730;p=pycomedi.git Fix conversion to physical in cmd.py demo ('float32' is not defined). --- diff --git a/doc/demo/cmd.py b/doc/demo/cmd.py index e2be286..b8508e9 100755 --- 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