Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __call__(self, consumer):
"""Get a sinogram, do filtered backprojection and send it to *consumer*."""
sinogram = yield
setup_padding(self.pad, self.crop, sinogram.shape[1], sinogram.shape[0])
if not self._started:
self.start()
self._process(sinogram, consumer)
while True:
sinogram = yield
self._process(sinogram, consumer)