Fix self.hooke -> hooke typo in hooke.plugin.flatfilt.FlatFilterCommand.filter
authorW. Trevor King <wking@drexel.edu>
Wed, 19 May 2010 06:46:44 +0000 (02:46 -0400)
committerW. Trevor King <wking@drexel.edu>
Wed, 19 May 2010 06:46:44 +0000 (02:46 -0400)
hooke/plugin/flatfilt.py

index ea1ddf9fe923749a872203eb4ca7a26540290a81..a904557bd1f3a785448f6d84c82295d98289a049 100644 (file)
@@ -185,7 +185,7 @@ class FlatFilterCommand (FilterCommand):
     def filter(self, curve, hooke, inqueue, outqueue, params):
         inq = Queue()
         outq = Queue()
-        conv_command = [c for c in self.hooke.commands
+        conv_command = [c for c in hooke.commands
                         if c.name=='flat filter peaks'][0]
         conv_command.run(hooke, inq, outq, **params)
         peaks = outq.get()
@@ -195,4 +195,3 @@ class FlatFilterCommand (FilterCommand):
         if not isinstance(ret, Success):
             raise ret
         return len(peaks) >= params['min peaks']
-