class_docstr: Controls the setup and execution of a pipeline of processes.
class_docstr_tok: ["Controls","the","setup","and","execution","of","a","pipeline","of","processes","."]
docstr: Returns the inputs of a workflow
  
  This function does not return any input ports that are already
  connected
docstr_tok: ["Returns","the","inputs","of","a","workflow","This","function","does","not","return","any","input","ports","that","are","already","connected"]
code: def _get_inputs(self):
      """Returns the inputs of a workflow
  
      This function does not return any input ports that are already
      connected
      """
      inputdict = TraitedSpec()
      for node in self._graph.nodes():
          inputdict.add_trait(node.name, traits.Instance(TraitedSpec))
          if isinstance(node, Workflow):
              setattr(inputdict, node.name, node.inputs)
          else:
              taken_inputs = []
              for _, _, d in self._graph.in_edges(
                  nbunch=node, data=True
              ):
                  for cd in d["connect"]:
                      taken_inputs.append(cd[1])
              unconnectedinputs = TraitedSpec()
              for key, trait in list(node.inputs.items()):
                  if key not in taken_inputs:
                      unconnectedinputs.add_trait(
                          key, traits.Trait(trait, node=node)
                      )
                      value = getattr(node.inputs, key)
                      setattr(unconnectedinputs, key, value)
              setattr(inputdict, node.name, unconnectedinputs)
              getattr(inputdict, node.name).on_trait_change(
                  self._set_input
              )
      return inputdict
  
imports: import os
  import os.path
  import sys
  from datetime import datetime
  from copy import deepcopy
  import pickle
  import shutil
  import numpy
  from ...None import config, logging
  from ...utils.misc import str2bool
  from ...utils.functions import getsource, create_function_from_source
  from ...interfaces.base import traits, TraitedSpec, TraitDictObject, TraitListObject
  from ...utils.filemanip import save_json
  from .utils import generate_expanded_graph, export_graph, write_workflow_prov, write_workflow_resources, format_dot, topological_sort, get_print_name, merge_dict, format_node
  from .base import EngineBase
  from .nodes import MapNode
label_desc: Use image node_id 22 for calling the Workflow obj's underlying member method code with example usage: obj._get_inputs() and returns: inputdict