55a0700a659abde74acd0972922ef563c30e8e2c,pynets/plotting/plot_graphs.py,,plot_conn_mat,#Any#Any#Any#Any#Any#Any#,17

Before Change


    conn_matrix_plt = np.nan_to_num(np.multiply(conn_matrix, conn_matrix_bin))

    try:
        with open(
            pkg_resources.resource_filename("pynets", "runconfig.yaml"), "r"
        ) as stream:
            hardcoded_params = yaml.load(stream)
            try:
                labeling_atlas = \
                hardcoded_params["plotting"]["labeling_atlas"][0]
            except KeyError as e:
                print(e,
                    "Plotting configuration not successfully extracted"
                    " from runconfig.yaml"
                )
                sys.exit(1)
        stream.close()
        labels = [i[0][labeling_atlas] for i in labels]
    except BaseException:
        pass

After Change


        )
        sys.exit(1)

    if any(isinstance(sub, dict) for sub in labels):
        labels = [i[0][labeling_atlas] for i in labels]

    try:
        plot_matrix(
            conn_matrix_plt,
            figure=(10, 10),
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: dPys/PyNets
Commit Name: 55a0700a659abde74acd0972922ef563c30e8e2c
Time: 2020-10-26
Author: dpisner@utexas.edu
File Name: pynets/plotting/plot_graphs.py
Class Name:
Method Name: plot_conn_mat


Project Name: dPys/PyNets
Commit Name: 55a0700a659abde74acd0972922ef563c30e8e2c
Time: 2020-10-26
Author: dpisner@utexas.edu
File Name: pynets/plotting/plot_graphs.py
Class Name:
Method Name: plot_community_conn_mat


Project Name: facebookresearch/pytext
Commit Name: fc52f79ed3dda250875b3ce9f3c241b80d643ef3
Time: 2020-07-07
Author: mikaell@fb.com
File Name: pytext/models/module.py
Class Name:
Method Name: create_module