def _unpack_v2(h5file, stage):
points = np.array(h5file['<STR_LIT>' % stage])<EOL>groups_stage = stage if stage != '<STR_LIT>' else '<STR_LIT>'<EOL>groups = np.array(h5file['<STR_LIT>' % groups_stage])<EOL>stypes = np.array(h5file['<STR_LIT>'])<EOL>groups = np.hstack([groups, stypes])<EOL>groups[:, [<NUM_LIT:1>, <NUM_LIT:2>]] = groups[:, [<NUM_LIT:2>, <NUM_LIT:1>]]<EOL>return points, groups<EOL>
Unpack groups from HDF5 v2 file