pierogis.ingredients.recipe module

class pierogis.ingredients.recipe.Recipe(opacity: int = 100, mask: Optional[numpy.ndarray] = None, **kwargs)[source]

Bases: pierogis.ingredients.ingredient.Ingredient

ingredient used to coordinate cooking of several ingredients

when a recipe is cooked, its ingredients are cooked in order

add(ingredient: pierogis.ingredients.ingredient.Ingredient)[source]

Add an ingredient

cook(pixels: numpy.ndarray)[source]

sequentially cooks each ingredient uses the pixels resulting from the previous cook

prep(ingredients: Optional[list] = None, **kwargs)[source]

provide a list of ingredients to cook in sequence

Parameters

ingredients – list of Ingredient objects