9b638935feccbb0fce928b5e9e38616c74960394,niftynet/engine/image_window.py,,_read_window_sizes,#Any#Any#,179

Before Change


            "with different window sizes: %s", window_sizes)
        raise NotImplementedError
    if uniq_window_set:
        return tuple(map(int, uniq_window_set.pop()))
    return ()


def _complete_partial_window_sizes(win_size, img_size):

After Change


        by param. parser
    :return: spatial window size
    
    try:
        window_sizes = [input_data_param[input_name].spatial_window_size
                        for input_name in input_mod_list]
    except (AttributeError, TypeError, KeyError):
        tf.logging.fatal("unknown input_data_param format %s %s",
                         input_mod_list, input_data_param)
        raise
    if not all(window_sizes):
        window_sizes = filter(None, window_sizes)
    uniq_window_set = set(window_sizes)
    if len(uniq_window_set) > 1:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: NifTK/NiftyNet
Commit Name: 9b638935feccbb0fce928b5e9e38616c74960394
Time: 2017-08-30
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/engine/image_window.py
Class Name:
Method Name: _read_window_sizes


Project Name: NifTK/NiftyNet
Commit Name: d8c6f621ebb4f7d73564a62cab8f7a9b5761dd8e
Time: 2017-09-05
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/layer/discrete_label_normalisation.py
Class Name:
Method Name: find_set_of_labels


Project Name: NifTK/NiftyNet
Commit Name: 31fd5e11806c319b493b47fe029a48811445d9e8
Time: 2017-08-24
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/engine/application_driver.py
Class Name: ApplicationDriver
Method Name: _randomly_init_or_restore_variables