165207a79dafcf658f483d26ccffd9e982389dcc,niftynet/io/image_reader.py,ImageReader,initialise,#ImageReader#Any#Any#Any#,78

Before Change


            tf.logging.fatal("Please specify data input keywords, this should "
                             "be a subset of SUPPORTED_INPUT provided "
                             "in application file.")
            raise ValueError
        filtered_names = [name for name in self.names
                          if vars(task_param).get(name, None)]
        if not filtered_names:
            tf.logging.fatal("Reader requires task input keywords %s, but "

After Change


        elif isinstance(task_param, ParserNamespace):
            task_param = vars(task_param)
        try:
            task_param = dict(task_param)
        except ValueError:
            tf.logging.fatal(
                "To concatenate multiple input data arrays,\n"
                "task_param should be a dictionary in the form:\n"
                "{"new_modality_name": ["modality_1", "modality_2",...]}.")
            raise
        if file_list is None:
            // defaulting to all files detected by the input specification
            file_list = ImageSetsPartitioner().initialise(data_param).all_files
        if not self.names:
            // defaulting to load all sections defined in the task_param
            self.names = list(task_param)
        filtered_names = [name for name in self.names
                          if task_param.get(name, None)]
        if not filtered_names:
            tf.logging.fatal("Reader requires task input keywords %s, but "
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: NifTK/NiftyNet
Commit Name: 165207a79dafcf658f483d26ccffd9e982389dcc
Time: 2018-05-01
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/io/image_reader.py
Class Name: ImageReader
Method Name: initialise


Project Name: microsoft/nni
Commit Name: 10d7ece1c34c5533262a54d20d974a3d04f0b7ce
Time: 2020-09-15
Author: 40699903+liuzhe-lz@users.noreply.github.com
File Name: src/sdk/pynni/nni/compression/tensorflow/compressor.py
Class Name: Compressor
Method Name: __init__


Project Name: deepmipt/DeepPavlov
Commit Name: 76bedc874bc399c4171086d7fce4121e3fc8f860
Time: 2017-12-07
Author: yoptar@gmail.com
File Name: deeppavlov/data/dataset.py
Class Name: Dataset
Method Name: batch_generator