woom.workflow.Workflow.get_task_inputs

woom.workflow.Workflow.get_task_inputs#

Workflow.get_task_inputs(task_name, cycle=None, member=None, extra_params=None)[source]#

Get the params dictionary used to format a task command line and environment variables

Order with the last crushing the first:

  • [params] scalars

  • [app] scalars prepended with the “app_” prefix

  • [cycles] scalars prepended with the “cycles_” prefix

  • Ensemble member

  • App path and task path

  • Host specific params included directories appended with the “dir” sufffix

  • Extra

Parameters:
  • task_name (str) – A valid task name

  • cycle (woom.util.Cycle, str, None) – Current cycle or None

  • member (None, woom.iters.Member) – Member number of the ensemble, starting from 1

  • extra_params (dict) – Extra parameters to include in params

Returns:

  • dict – Parameters for substitutions

  • dict – Environement variables