polaris.ModelStep.add_yaml_file

ModelStep.add_yaml_file(package, yaml, template_replacements=None)[source]

Add a file with updates to yaml config options to the step to be parsed when generating a complete yaml file if and when the step gets set up.

Parameters:
  • package (Package) – The package name or module object that contains yaml

  • yaml (str) – The name of the yaml file with replacement config options to read

  • template_replacements (dict, optional) – A dictionary of replacements, in which case yaml must be a Jinja2 template to be rendered with these replacements