def _extract_rows(self, rows):
if rows is not None:<EOL><INDENT>rows = numpy.array(rows, ndmin=<NUM_LIT:1>, copy=False, dtype='<STR_LIT>')<EOL>rows = numpy.unique(rows)<EOL>maxrow = self._info['<STR_LIT>']-<NUM_LIT:1><EOL>if rows[<NUM_LIT:0>] < <NUM_LIT:0> or rows[-<NUM_LIT:1>] > maxrow:<EOL><INDENT>raise ValueError("<STR_LIT>" % (<NUM_LIT:0>, maxrow))<EOL><DEDENT><DEDENT>return rows<EOL>
Extract an array of rows from an input scalar or sequence