def _rebuild_blknos_and_blklocs(self):
new_blknos = np.empty(self.shape[<NUM_LIT:0>], dtype=np.int64)<EOL>new_blklocs = np.empty(self.shape[<NUM_LIT:0>], dtype=np.int64)<EOL>new_blknos.fill(-<NUM_LIT:1>)<EOL>new_blklocs.fill(-<NUM_LIT:1>)<EOL>for blkno, blk in enumerate(self.blocks):<EOL><INDENT>rl = blk.mgr_locs<EOL>new_blknos[rl.indexer] = blkno<EOL>new_blklocs[rl.indexer] = np.arange(len(rl))<EOL><DEDENT>if (new_blknos == -<NUM_LIT:1>).any():<EOL><INDENT>raise AssertionError("<STR_LIT>")<EOL><DEDENT>self._blknos = new_blknos<EOL>self._blklocs = new_blklocs<EOL>
Update mgr._blknos / mgr._blklocs.