449bdd68c98d0a562686993885af40b920d6378d,niftynet/io/image_reader.py,,_create_image,#Any#Any#Any#Any#,336

Before Change


        interp_order = tuple(data_param[mod].interp_order
                             for mod in modalities)
        pixdim = tuple(data_param[mod].pixdim for mod in modalities)
        axcodes = tuple(data_param[mod].axcodes for mod in modalities)
        loader = tuple(data_param[mod].loader for mod in modalities)
    except KeyError:
        tf.logging.fatal(
            "Specified modality names %s "

After Change


            return None

        interp_order, pixdim, axcodes, loader = [], [], [], []
        for mod in modalities:
            try:
                interp_order.append(data_param[mod].interp_order)
            except AttributeError:
                interp_order = DEFAULT_INTERP_ORDER
            try:
                pixdim.append(data_param[mod].pixdim)
            except AttributeError:
                pixdim = None
            try:
                axcodes.append(data_param[mod].axcodes)
            except AttributeError:
                axcodes = None
            try:
                loader.append(data_param[mod].loader)
            except AttributeError:
                loader = None

    except KeyError:
        tf.logging.fatal(
            "Specified modality names %s "
            "not found in config: input sections %s.",
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: NifTK/NiftyNet
Commit Name: 449bdd68c98d0a562686993885af40b920d6378d
Time: 2018-05-01
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/io/image_reader.py
Class Name:
Method Name: _create_image


Project Name: OpenNMT/OpenNMT-py
Commit Name: 820ad912dda0b5cbe49c53762374deb6bedd1299
Time: 2019-02-01
Author: dylan.flaute@gmail.com
File Name: tools/embeddings_to_torch.py
Class Name:
Method Name: get_vocabs


Project Name: ray-project/ray
Commit Name: 2cf4c7253ce1fd01975fcf970e52434e44f6d71f
Time: 2021-03-04
Author: ekhliang@gmail.com
File Name: python/ray/util/client/worker.py
Class Name: Worker
Method Name: get