synthpic2.recipe.utilities

Module for recipe utilities.

Module Contents

Functions

parse_recipe(→ None)

Parse builtin namespace placeholder in recipe and infer item names from

parse_plugin_namespaces(→ None)

Parse plugin namespace placeholder in recipe.

parse_builtin_namespaces(→ None)

Parse builtin namespace placeholder in recipe.

infer_names(→ None)

Iterate certain nodes of the recipe and set the name attribute of the node items

_infer_item_names_from_keys(→ None)

synthpic2.recipe.utilities.parse_recipe(recipe: synthpic2.recipe.recipe.Recipe) None
Parse builtin namespace placeholder in recipe and infer item names from

dictionary keys.

Args:

recipe (Recipe): Recipe to parse.

synthpic2.recipe.utilities.parse_plugin_namespaces(recipe: synthpic2.recipe.recipe.Recipe) None

Parse plugin namespace placeholder in recipe.

Uses the following regex: https://regex101.com/r/gVHrlX/1

Args:

recipe (Recipe): Recipe to parse.

synthpic2.recipe.utilities.parse_builtin_namespaces(recipe: synthpic2.recipe.recipe.Recipe) None

Parse builtin namespace placeholder in recipe.

Args:

recipe (Recipe): Recipe to parse.

synthpic2.recipe.utilities.infer_names(recipe: synthpic2.recipe.recipe.Recipe) None

Iterate certain nodes of the recipe and set the name attribute of the node items to the key that was used for the item in the recipe.

Args:

recipe (Recipe): Recipe to parse.

synthpic2.recipe.utilities._infer_item_names_from_keys(node: omegaconf.DictConfig) None