Source code for pypesto.engine.base

from typing import List
import abc

from .task import Task

[docs]class Engine(abc.ABC): """ Abstract engine base class. """
[docs] def __init__(self): pass
[docs] @abc.abstractmethod def execute(self, tasks: List[Task], progress_bar: bool = True): """Execute tasks. Parameters ---------- tasks: List of tasks to execute. progress_bar: Whether to display a progress bar. """ raise NotImplementedError( "This engine is not intended to be called.")