From cc8a68780a14802b4e856866cac886b128c6832a Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 19 May 2010 02:46:44 -0400 Subject: [PATCH] Fix self.hooke -> hooke typo in hooke.plugin.flatfilt.FlatFilterCommand.filter --- hooke/plugin/flatfilt.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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'] - -- 2.26.2