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


            task_param = {mod:(mod,) for mod in list(data_param)}
        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:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

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: NifTK/NiftyNet
Commit Name: 1c0a56060278fa9c0601e4d5eceeff39573a05a9
Time: 2017-10-03
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/engine/sampler_weighted.py
Class Name:
Method Name: weighted_spatial_coordinates


Project Name: NifTK/NiftyNet
Commit Name: 9db50ab9ed6bf6b4e462c84e2c38fedd36e7467a
Time: 2017-11-08
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/io/image_sets_partitioner.py
Class Name: ImageSetsPartitioner
Method Name: randomly_split_dataset