コード例 #1
0
ファイル: spglib.py プロジェクト: georgeyumnam/phonopy
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
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
ファイル: spglib.py プロジェクト: vanceeasleaf/phonopy
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'))
コード例 #4
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'))