tedana.selection.component_selector.load_config

load_config(tree: str, out_dir: str = '.') Dict[source]

Load the json file with the decision tree and validate the fields in the decision tree.

Parameters:
  • tree (str) – The named tree or path to a JSON file that defines one

  • out_dir :obj:`str`, optional – The output directory. Default is current working directory.

Returns:

tree (dict) – A validated decision tree for the component selection process.

Raises:

ValueError if the tree can't be loaded