From: W. Trevor King Date: Wed, 19 May 2010 06:46:44 +0000 (-0400) Subject: Fix self.hooke -> hooke typo in hooke.plugin.flatfilt.FlatFilterCommand.filter X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cc8a68780a14802b4e856866cac886b128c6832a;p=hooke.git Fix self.hooke -> hooke typo in hooke.plugin.flatfilt.FlatFilterCommand.filter --- diff --git a/hooke/plugin/flatfilt.py b/hooke/plugin/flatfilt.py index ea1ddf9..a904557 100644 --- a/hooke/plugin/flatfilt.py +++ b/hooke/plugin/flatfilt.py @@ -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'] -