def _join_summary_file(data, summary_filename="<STR_LIT>"):
msd = h5py.File(summary_filename)<EOL>track_lookup = dict((t.encode("<STR_LIT:utf8>"), i) for i, t in enumerate(data['<STR_LIT>'].cat.categories))<EOL>track_info = np.empty(shape=(len(track_lookup), <NUM_LIT:4>), dtype=np.object)<EOL>with tqdm.tqdm(total=len(track_info)) as progress:<EOL><INDENT>for song in msd['<STR_LIT>']['<STR_LIT>']:<EOL><INDENT>trackid = song[<NUM_LIT>]<EOL>if trackid in track_lookup:<EOL><INDENT>pos = track_lookup[trackid]<EOL>track_info[pos] = [x.decode("<STR_LIT:utf8>") for x in (trackid, song[<NUM_LIT:9>], song[<NUM_LIT>], song[<NUM_LIT>])]<EOL>progress.update(<NUM_LIT:1>)<EOL><DEDENT><DEDENT><DEDENT>return track_info<EOL>
Gets the trackinfo array by joining taste profile to the track summary file