RecipeRunner ============ Recipe execution engine. Runs recipe scripts in Slicer with the Adaptive Brush effect. Classes ------- .. py:class:: RecipeResult Result of executing a recipe. .. py:class:: RecipeRunner Execute segmentation recipes in Slicer. Example: recipe = Recipe.load("recipes/brain_tumor_1.py") runner = RecipeRunner(recipe) result = runner.run() **Methods:** .. py:method:: __init__() Initialize runner with a recipe. .. py:method:: run() Execute the recipe. Functions --------- .. py:function:: run() Execute the recipe. Args: clear_scene: Whether to clear the scene before starting. Returns: RecipeResult with execution details. .. py:function:: run_recipe() Convenience function to load and run a recipe. Args: recipe_path: Path to recipe file. clear_scene: Whether to clear scene first. Returns: RecipeResult with execution details.