def load_table(self, table):
items,  data_keys = [], None<EOL>for key, filename in table.items():<EOL><INDENT>data_dict = self.filetype.data(filename[<NUM_LIT:0>])<EOL>current_keys = tuple(sorted(data_dict.keys()))<EOL>values = [data_dict[k] for k in current_keys]<EOL>if data_keys is None:<EOL><INDENT>data_keys = current_keys<EOL><DEDENT>elif data_keys != current_keys:<EOL><INDENT>raise Exception("<STR_LIT>")<EOL><DEDENT>items.append((key, values))<EOL><DEDENT>return Table(items, kdims=table.kdims, vdims=data_keys)<EOL>
Load the file contents into the supplied Table using the
specified key and filetype. The input table should have the
filenames as values which will be replaced by the loaded
data. If data_key is specified, this key will be used to index
the loaded data to retrive the specified item.