polaris.Step.add_dependency

Step.add_dependency(step, name=None)[source]

Add step as a dependency of this step (i.e. this step can’t run until the dependency has finished). A dependency should be used when the names of the files produced by the dependency aren’t known at setup (e.g. because they depend on config options or data read in from files). Under other circumstances, a dependency can be established by indicating that an output (added with the add_output_file() method) from another step is an input (added with add_input_file()) of this step .

Parameters:
  • step (polaris.Step) – The step that is a dependency

  • name (str, optional) – The name of the step used to access it in the dependencies dictionary. By default, it is step.name but another name may be required if 2 dependencies have the same step.name.