polaris.ModelStep.add_streams_file

ModelStep.add_streams_file(package, streams, template_replacements=None)[source]

Add a streams file to the step to be parsed when generating a complete streams file if and when the step gets set up.

Parameters:
  • package (Package) – The package name or module object that contains the streams file

  • streams (str) – The name of the streams file to read from

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