polaris.Step.add_output_file

Step.add_output_file(filename, validate_vars=None)[source]

Add the output file that must be produced by this step and may be made available as an input to steps, perhaps in other tasks. This file must exist after the task has run or an exception will be raised.

Optionally, a list of variables can be provided for validation against a baseline (if one is provided), once the step has been run.

Parameters
  • filename (str) – The relative path of the output file within the step’s work directory

  • validate_vars (list, optional) – A list of variable names to compare with a baseline (if one is provided)