def _load_file(self): """ load dataset filename """ self.data_dict = commonlib.load_dict(self.data_list) for data_type in self.data_dict: for i in range(len(self.data_dict[data_type])): self.data_dict[data_type][i] = os.path.join(self.src_dir, self.data_dict[data_type][i])
def _load_file(self): """ load dataset filename """ self.data_dict = commonlib.load_dict(self.data_list) self.file_dict = {} child_dir = commonlib.get_dir_list(self.src_dir) for chd in child_dir: file_list, file_path = commonlib.get_file_list(chd) for i in range(len(file_list)): name = file_list[i] keyword = "sw%s" % name.split('.')[0].split('_')[-1] self.file_dict[keyword] = file_path[i]
def _load_file(self): """ load dataset filename """ self.dadb_dict = {} self.trans_dict = {} self.data_dict = commonlib.load_dict(self.data_list) file_list, file_path = commonlib.get_file_list(self.src_dir) for i in range(len(file_list)): name = file_list[i] keyword = name.split('.')[0] if 'dadb' in name: self.dadb_dict[keyword] = file_path[i] if 'trans' in name: self.trans_dict[keyword] = file_path[i]