def __init__(self, groups=None):
        super(GroupedRequirements, self).__init__(NamedRequirements)
        self.groups = groups or self.default_groups
        self.filename = None
        self.create_default_groups()
def dec_r(self, ind):
        r, c = self.row_col(ind)
        r -= 1
        if r < 0:
            r = self.nr - 1
        if r == (self.nr - 1) and c == (self.nc - 1):
            r = self.nr - 2
        return self.indx(r, c)