RecipeRunner

Recipe execution engine.

Runs recipe scripts in Slicer with the Adaptive Brush effect.

Classes

class RecipeResult

Result of executing a recipe.

class RecipeRunner

Execute segmentation recipes in Slicer.

Example:

recipe = Recipe.load(“recipes/brain_tumor_1.py”) runner = RecipeRunner(recipe) result = runner.run()

Methods:

__init__()

Initialize runner with a recipe.

run()

Execute the recipe.

Functions

run()

Execute the recipe.

Args:

clear_scene: Whether to clear the scene before starting.

Returns:

RecipeResult with execution details.

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.