How to use tofu - 1 common examples

To help you get started, we’ve selected a few tofu examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ufo-kit / concert / concert / ext / ufo.py View on Github external
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)

tofu

A python library for Tomography for Fusion

MIT
Latest version published 2 months ago

Package Health Score

69 / 100
Full package analysis

Popular tofu functions