示例#1
0
文件: core.py 项目: jnmeza/message_ix
    def cat_list(self, name):
        """return a list of all categories for a set

        Parameters
        ----------
        name : string
            name of the set
        """
        return ixmp.to_pylist(self._jobj.getTypeList(name))
示例#2
0
文件: core.py 项目: jnmeza/message_ix
    def cat(self, name, cat):
        """return a list of all set elements mapped to a category

        Parameters
        ----------
        name : string
            name of the set
        cat : string
            name of the category
        """
        return ixmp.to_pylist(self._jobj.getCatEle(name, cat))