<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_decdel_rts(self):
 """Figure out the decimal seperator and rows to skip and set corresponding attributes. """


        lnr = max(self.rows2skip(','), self.rows2skip('.')) + 1
        # If EQUAL_CNT_REQ was not met, raise error. Implement!
        if self.cnt > EQUAL_CNT_REQ:
            raise PatternError('Did not find ' + str(EQUAL_CNT_REQ) +
                               ' data rows with equal data pattern in file: ' +
                               self.fn)
        elif self.cnt < EQUAL_CNT_REQ:  # Too few rows
            raise PatternError('Less than', str(EQUAL_CNT_REQ) +
                               'data rows in', self.fn + '?',
                               '\nTry lower the EQUAL_CNT_REQ')
        if self.matches_p[lnr] <= self.matches_c[lnr]:
            self.decdel = '.'   # If equal, assume decimal point is used.
            self.datrx = DATPRX
        else:
            self.decdel = ','        # Assume the lesser count is correct.
            self.datrx = DATCRX

        self.rts = self.rows2skip(self.decdel)