leaf_focus/pipeline/prefect_flow/construct.py
def run_ocr(
        self,
        base_dir: Path,
        threshold: int,
        serial: bool = False,
    ):
        """Run the ocr Prefect flow."""
        flow = self.build_ocr(
            base_dir,
        )
        if not serial:
            dask_executor = DaskExecutor()
            flow.run(executor=dask_executor, threshold=threshold)
        else:
            flow.run()
Run the ocr Prefect flow.
Run the ocr Prefect flow.
Run the ocr Prefect flow .
def run_ocr(
        self,
        base_dir: Path,
        threshold: int,
        serial: bool = False,
    ):
        flow = self.build_ocr(
            base_dir,
        )
        if not serial:
            dask_executor = DaskExecutor()
            flow.run(executor=dask_executor, threshold=threshold)
        else:
            flow.run()
def run_ocr ( self , base_dir : Path , threshold : int , serial : bool = False , ) : flow = self . build_ocr ( base_dir , ) if not serial : dask_executor = DaskExecutor ( ) flow . run ( executor = dask_executor , threshold = threshold ) else : flow . run ( )
Run the ocr Prefect flow.
Run the ocr Prefect flow .
"""Run the ocr Prefect flow."""
self
base_dir
Path
threshold
int
serial
bool