params['curve'] = curve
inq = Queue()
outq = Queue()
- conv_command = [c for c in self.hooke.commands
- if c.name=='convolution peaks'][0]
+ conv_command = self.hooke.command_by_name['convolution peaks']
conv_command.run(hooke, inq, outq, **params)
peaks = outq.get()
if isinstance(peaks, UncaughtException) \
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) \
def _run(self, hooke, inqueue, outqueue, params):
data = self._block(hooke, params)
- fit_command = [c for c in hooke.commands
- if c.name=='polymer fit'][0]
+ fit_command = hooke.command_by_name['polymer fit']
inq = Queue()
outq = Queue()
curve = params['curve']