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



    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

After Change


    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: 3

Non-data size: 6

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: wb_functional_connectometry


Project Name: scikit-learn-contrib/categorical-encoding
Commit Name: 3ad234f30b3958752df3060b3e8ab751bffeec6c
Time: 2018-11-19
Author: contact@againstthecurrent.ch
File Name: category_encoders/hashing.py
Class Name: HashingEncoder
Method Name: fit