示例#1
0
def grid(self, index):
    """Get Grid of a given index. Returns a rips Grid object

    Arguments:
        index (int): The grid index

    Returns: Grid object
    """
    return Grid(index, self, self.channel())
示例#2
0
文件: case.py 项目: vxd00/ResInsight
def grids(self):
    """Get a list of all rips Grid objects in the case

    Returns: 
        List of :class:`rips.grid.Grid`
    """
    grid_list = []
    for i in range(0, self.__grid_count()):
        grid_list.append(Grid(i, self, self.channel()))
    return grid_list
示例#3
0
文件: case.py 项目: vxd00/ResInsight
def grid(self, index):
    """Get Grid of a given index

    Arguments:
        index (int): The grid index

    Returns: 
        :class:`rips.grid.Grid`
    """
    return Grid(index, self, self.channel())
示例#4
0
文件: case.py 项目: zewain/ResInsight
 def grids(self):
     """Get a list of all rips Grid objects in the case"""
     grid_list = []
     for i in range(0, self.__grid_count()):
         grid_list.append(Grid(i, self, self.__channel))
     return grid_list