From 5192f4d4e8f65af4e7659150042d7ba5f0472730 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 26 Apr 2012 13:06:36 -0400 Subject: [PATCH] Fix conversion to physical in cmd.py demo ('float32' is not defined). --- doc/demo/cmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.26.2