original_docstring: Decode and prepare operational options.
docstring: Decode and prepare operational options.
docstring_tokens: Decode and prepare operational options .
code: def load_yadage_operational_options(ctx, param, operational_options):
      """Decode and prepare operational options."""
      operational_options = load_json(ctx, param, operational_options)
      workflow_workspace = ctx.params.get("workflow_workspace")
      workflow_workspace = "{0}/{1}".format(SHARED_VOLUME_PATH, workflow_workspace)
      toplevel = operational_options.get("toplevel", "")
      if not toplevel.startswith("github:"):
          toplevel = os.path.join(workflow_workspace, toplevel)
      operational_options["toplevel"] = toplevel
  
      operational_options["initdir"] = os.path.join(
          workflow_workspace, operational_options.get("initdir", "")
      )
  
      operational_options["initfiles"] = [
          os.path.join(workflow_workspace, initfile)
          for initfile in operational_options.get("initfiles", [])
      ]
  
      return operational_options
code_tokens: def load_yadage_operational_options ( ctx , param , operational_options ) : operational_options = load_json ( ctx , param , operational_options ) workflow_workspace = ctx . params . get ( "workflow_workspace" ) workflow_workspace = "{0}/{1}" . format ( SHARED_VOLUME_PATH , workflow_workspace ) toplevel = operational_options . get ( "toplevel" , "" ) if not toplevel . startswith ( "github:" ) : toplevel = os . path . join ( workflow_workspace , toplevel ) operational_options [ "toplevel" ] = toplevel operational_options [ "initdir" ] = os . path . join ( workflow_workspace , operational_options . get ( "initdir" , "" ) ) operational_options [ "initfiles" ] = [ os . path . join ( workflow_workspace , initfile ) for initfile in operational_options . get ( "initfiles" , [ ] ) ] return operational_options
short_docstring: Decode and prepare operational options.
short_docstring_tokens: Decode and prepare operational options .
comment: """Decode and prepare operational options."""