Example #1
0
def get_value_dct(recipe: MyRecipe) -> tp.Dict[str, float]:
    """Get the values in the recipe in a dictionary."""
    return dict(zip(recipe.getNames(), recipe.getValues()))
Example #2
0
def get_bound_dct(recipe: MyRecipe) -> tp.Dict[str, tp.List[float]]:
    """Get the bounds in the recipe in a dictionary."""
    return dict(zip(recipe.getNames(), recipe.getBounds()))