c89d274b734d5a3be34607ccc8e4f54507121a09,pynets/workflows.py,,rsn_functional_connectometry,#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,269

Before Change


    res = rsn_functional_connectometry_wf.run(plugin="MultiProc")
    //res = rsn_functional_connectometry_wf.run()

    try:
        thr=list(res.nodes())[-1].result.outputs.thr
        est_path=list(res.nodes())[-1].result.outputs.est_path
    except AttributeError:
        try:
            thr=list(res.nodes())[-2].result.outputs.thr
            est_path=list(res.nodes())[-2].result.outputs.est_path
        except AttributeError:
            thr=list(res.nodes())[-3].result.outputs.thr
            est_path=list(res.nodes())[-3].result.outputs.est_path
    return est_path, thr

def wb_structural_connectometry(ID, atlas_select, network, node_size, mask, parlistfile, plot_switch, parc, ref_txt, procmem, dir_path, bedpostx_dir, label_names, anat_loc):
    from nipype.pipeline import engine as pe

After Change


    rsn_functional_connectometry_wf.config["execution"]["plugin"]="MultiProc"
    res = rsn_functional_connectometry_wf.run(plugin="MultiProc")

    out_node = [x for x in list(res.nodes()) if str(x) == [x for x in [str(i) for i in list(res.nodes())] if "outputnode" in x][-1]][0]
    try:
        thr=out_node.result.outputs.thr
        est_path=out_node.result.outputs.est_path
    except AttributeError:
        print("Workflow failed!")
    return est_path, thr

def wb_structural_connectometry(ID, atlas_select, network, node_size, mask, parlistfile, plot_switch, parc, ref_txt, procmem, dir_path, bedpostx_dir, label_names, anat_loc):
    from nipype.pipeline import engine as pe
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 36

Instances


Project Name: dPys/PyNets
Commit Name: c89d274b734d5a3be34607ccc8e4f54507121a09
Time: 2018-01-19
Author: dpisner@utexas.edu
File Name: pynets/workflows.py
Class Name:
Method Name: rsn_functional_connectometry


Project Name: dPys/PyNets
Commit Name: c89d274b734d5a3be34607ccc8e4f54507121a09
Time: 2018-01-19
Author: dpisner@utexas.edu
File Name: pynets/workflows.py
Class Name:
Method Name: rsn_structural_connectometry


Project Name: dPys/PyNets
Commit Name: c89d274b734d5a3be34607ccc8e4f54507121a09
Time: 2018-01-19
Author: dpisner@utexas.edu
File Name: pynets/workflows.py
Class Name:
Method Name: rsn_functional_connectometry


Project Name: dPys/PyNets
Commit Name: c89d274b734d5a3be34607ccc8e4f54507121a09
Time: 2018-01-19
Author: dpisner@utexas.edu
File Name: pynets/workflows.py
Class Name:
Method Name: wb_structural_connectometry


Project Name: dPys/PyNets
Commit Name: c89d274b734d5a3be34607ccc8e4f54507121a09
Time: 2018-01-19
Author: dpisner@utexas.edu
File Name: pynets/workflows.py
Class Name:
Method Name: wb_functional_connectometry