def find_card(self, group, name):

        group_id = self.groups.index(group)

        for card in self.cards[group_id]:
            if card.name == name:
                return card.value

        msg = "Variable %s" % name + \
              " not found in namelist %s." % group
        raise RuntimeError(msg)
Return a QuerySet with the correct filter applied based on the request.
dataset/ETHPy150Open OpenMDAO/OpenMDAO/openmdao/util/namelist_util.py/Namelist.find_card--crossover with--dataset/ETHPy150Open 2buntu/2buntu-blog/twobuntu/articles/models.py/Article.apply_filter