Fix syntax errors in hooke.plugin.curve
authorW. Trevor King <wking@drexel.edu>
Tue, 18 May 2010 02:04:06 +0000 (22:04 -0400)
committerW. Trevor King <wking@drexel.edu>
Tue, 18 May 2010 02:04:06 +0000 (22:04 -0400)
hooke/plugin/curve.py

index 594f158c5d8462da398580060c01f7e1ab25d725..af427d6734ddcc65411eed43089728533b0ed4c1 100644 (file)
@@ -183,7 +183,7 @@ Column of data block to differentiate.
     def _run(self, hooke, inqueue, outqueue, params):
         a = params['curve'].data[params['block one']]
         b = params['curve'].data[params['block two']]
-        assert a[:,params['x column']] == b[:,params['x column']]:
+        assert a[:,params['x column']] == b[:,params['x column']]
         out = Data((a.shape[0],2), dtype=a.dtype)
         out[:,0] = a[:,params['x column']]
         out[:,1] = a[:,params['f column']] - b[:,params['f column']]
@@ -245,7 +245,7 @@ Column of data block to differentiate with respect to.
                          help="""
 Sampling frequency.
 """.strip()),
-                Argument(name='chunk size', type='int', 2048,
+                Argument(name='chunk size', type='int', default=2048,
                          help="""
 Number of samples per chunk.  Use a power of two.
 """.strip()),