예제 #1
0
def get_grid_point_from_address(grid_address, mesh):
    """
    Return grid point index by tranlating grid address
    """

    return spg.grid_point_from_address(np.array(grid_address, dtype='intc'),
                                       np.array(mesh, dtype='intc'))
예제 #2
0
파일: spglib.py 프로젝트: rknbeiv/cod-tools
def get_grid_point_from_address(grid_address, mesh):
    """
    Return grid point index by tranlating grid address
    """

    return spg.grid_point_from_address(np.array(grid_address, dtype='intc'),
                                       np.array(mesh, dtype='intc'))
예제 #3
0
def get_grid_point_from_address(grid_address,
                                mesh,
                                is_shift=np.zeros(3, dtype='intc')):
    """
    Return grid point index by tranlating grid address
    """

    return spg.grid_point_from_address(np.array(grid_address, dtype='intc'),
                                       np.array(mesh, dtype='intc'),
                                       np.array(is_shift, dtype='inct'))