a8b170f3391e1fc6cb667a8a0db694bdacd5ce3b,niftynet/utilities/filename_matching.py,KeywordsMatching,matching_subjects_and_filenames,#KeywordsMatching#,73

Before Change



        :return: filename_list, subjectname_list
        
        path_file = [(p, filename)
                     for p in self.path_to_search
                     for filename in sorted(os.listdir(p))]
        matching_path_file = list(filter(self.__is_a_candidate, path_file))
        filename_list = \
            [os.path.join(p, filename) for p, filename in matching_path_file]
        subjectname_list = [self.__extract_subject_id_from(filename)
                            for p, filename in matching_path_file]
        if not filename_list or not subjectname_list:
            raise IOError("no file matched based on this matcher: {}".format(
                self.__dict__))

After Change



        :return: filename_list, subjectname_list
        
        path_file = [(p, filename)
                     for p in self.path_to_search
                     for filename in os.listdir(p)]
        matching_path_file = list(filter(self.__is_a_candidate, path_file))
        filename_list = \
            [os.path.join(p, filename) for p, filename in matching_path_file]
        subjectname_list = [self.__extract_subject_id_from(filename)
                            for p, filename in matching_path_file]
        if not filename_list or not subjectname_list:
            raise IOError("no file matched based on this matcher: {}".format(
                self.__dict__))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: NifTK/NiftyNet
Commit Name: a8b170f3391e1fc6cb667a8a0db694bdacd5ce3b
Time: 2018-05-15
Author: d.shakir@ucl.ac.uk
File Name: niftynet/utilities/filename_matching.py
Class Name: KeywordsMatching
Method Name: matching_subjects_and_filenames


Project Name: NifTK/NiftyNet
Commit Name: 63369babed857a3c7c5b830aa8e27ffd41d80f55
Time: 2018-01-25
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/utilities/filename_matching.py
Class Name: KeywordsMatching
Method Name: matching_subjects_and_filenames


Project Name: NifTK/NiftyNet
Commit Name: 5c4bd4405916fc5cbea18f576869a308656e1332
Time: 2018-01-26
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/utilities/filename_matching.py
Class Name: KeywordsMatching
Method Name: matching_subjects_and_filenames