params['curve'] = curve
inq = Queue()
outq = Queue()
- filt_command = [c for c in hooke.commands
- if c.name=='flat filter peaks'][0]
+ filt_command = hooke.command_by_name['flat filter peaks']
filt_command.run(hooke, inq, outq, **params)
peaks = outq.get()
if isinstance(peaks, UncaughtException) \